Set consumer Proguard rules.
This commit is contained in:
Родитель
594b12d873
Коммит
8105b72202
|
@ -17,6 +17,7 @@ android {
|
|||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
consumerProguardFiles "$rootDir/proguard-rules-consumer-jna.pro"
|
||||
}
|
||||
|
||||
withoutLib {
|
||||
|
|
|
@ -17,6 +17,7 @@ android {
|
|||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
consumerProguardFiles "$rootDir/proguard-rules-consumer-jna.pro"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ android {
|
|||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
consumerProguardFiles "$rootDir/proguard-rules-consumer-jna.pro"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -17,6 +17,7 @@ android {
|
|||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
consumerProguardFiles "$rootDir/proguard-rules-consumer-jna.pro"
|
||||
}
|
||||
|
||||
withoutLib {
|
||||
|
|
|
@ -17,6 +17,7 @@ android {
|
|||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
||||
consumerProguardFiles "$rootDir/proguard-rules-consumer-jna.pro"
|
||||
}
|
||||
|
||||
withoutLib {
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
# ProGuard rules for consumers of this library.
|
||||
|
||||
# JNA specific rules
|
||||
# See https://github.com/java-native-access/jna/blob/master/www/FrequentlyAskedQuestions.md#jna-on-android
|
||||
-dontwarn java.awt.*
|
||||
-keep class com.sun.jna.* { *; }
|
||||
-keepclassmembers class * extends com.sun.jna.* { public *; }
|
Загрузка…
Ссылка в новой задаче