# JniLibsTestedComponentPackaging

# JniLibsTestedComponentPackaging

[View Source](https://cs.android.com/search?q=file:com/android/build/api/variant/JniLibsTestedComponentPackaging.kt+class:com.android.build.api.variant.JniLibsTestedComponentPackaging)  
Added in 8.4.2  


```
@Incubating
interface JniLibsTestedComponentPackaging : JniLibsPackaging
```

<br />

Known direct subclasses  
[JniLibsTestedApkPackaging](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/JniLibsTestedApkPackaging)  

|---------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [JniLibsTestedApkPackaging](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/JniLibsTestedApkPackaging) | Build-time properties for packaging native libraries (.so) inside a tested APK [Component](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/Component). |

*** ** * ** ***

Build-time properties for packaging native libraries (.so) inside a tested [Component](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/Component).

This is accessed via [TestedComponentPackaging.jniLibs](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/TestedComponentPackaging#jniLibs())

## Summary

|                                                                                 ### Public properties                                                                                 |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [SetProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/SetProperty.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>` | [testOnly](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/JniLibsTestedComponentPackaging#testOnly()) The set of test-only patterns. |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ### Inherited properties                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From [com.android.build.api.variant.JniLibsPackaging](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/JniLibsPackaging) |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [SetProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/SetProperty.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>` | [excludes](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/JniLibsPackaging#excludes()) The set of excluded patterns.                                                                          | | [SetProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/SetProperty.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>` | [keepDebugSymbols](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/JniLibsPackaging#keepDebugSymbols()) The set of patterns for native libraries that should not be stripped of debug symbols. | | [SetProperty](https://docs.gradle.org/current/javadoc/org/gradle/api/provider/SetProperty.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`>` | [pickFirsts](https://developer.android.com/reference/tools/gradle-api/8.4/com/android/build/api/variant/JniLibsPackaging#pickFirsts()) The set of patterns for which the first occurrence is packaged in the APK.                         | |

## Public properties

### testOnly

Added in 8.4.2  

```
val testOnly: SetProperty<String>
```

The set of test-only patterns. Native libraries matching any of these patterns do not get packaged in the main APK or AAR, but they are included in the test APK.

Example: `packaging.jniLibs.testOnly.add("**`/`testOnly.so")`