JniLibsApkPackaging

interface JniLibsApkPackaging : JniLibsPackaging


Defines an APK variant's packaging options for native library (.so) files.

Summary

Public properties

Provider<Boolean>

Whether to use the legacy convention of compressing all .so files in the APK.

Provider<Boolean>

Whether to use the legacy convention of compressing all .so files when generating APKs from the app bundle.

Inherited properties

From class com.android.build.api.variant.JniLibsPackaging
SetProperty<String>

The set of excluded patterns.

SetProperty<String>

The set of patterns for native libraries that should not be stripped of debug symbols.

SetProperty<String>

The set of patterns for which the first occurrence is packaged in the APK.

Public properties

useLegacyPackaging

val useLegacyPackagingProvider<Boolean>

Whether to use the legacy convention of compressing all .so files in the APK. This does not affect APKs generated from the app bundle; see useLegacyPackagingFromBundle.

useLegacyPackagingFromBundle

val useLegacyPackagingFromBundleProvider<Boolean>

Whether to use the legacy convention of compressing all .so files when generating APKs from the app bundle. If true, .so files will always be compressed when generating APKs from the app bundle, regardless of the API level of the target device. If false, .so files will be compressed only when targeting devices with API level < M.