Skip to content

Commit

Permalink
Simplifies proguard rules, by using IDriveConnectKitAndroid rules
Browse files Browse the repository at this point in the history
  • Loading branch information
hufman committed Feb 11, 2024
1 parent 7e8b9b9 commit 2c6532c
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 8 deletions.
74 changes: 74 additions & 0 deletions .idea/androidTestResultsUserPreferences.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions .idea/deploymentTargetDropDown.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/migrations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ dependencies {
implementation 'io.bimmergestalt:IDriveConnectKitAndroid:0.5'
testImplementation 'io.bimmergestalt:IDriveConnectKit:0.6'
androidTestImplementation 'io.bimmergestalt:IDriveConnectKit:0.6'
androidTestImplementation 'io.bimmergestalt:IDriveConnectKitAndroid:0.2'
androidTestImplementation 'io.bimmergestalt:IDriveConnectKitAndroid:proguard-SNAPSHOT'
androidTestImplementation "org.bouncycastle:bcmail-jdk16:1.46"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlin_coroutines_version"
testImplementation "org.powermock:powermock-core:2.0.9"
Expand Down
15 changes: 8 additions & 7 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,17 @@
-keep public class * extends android.content.ContentProvider

# randomly hardcoding things to make connected tests pass
-keep class kotlin.collections.** { *; }
-keep class kotlin.coroutines.** { *; }
-keep class androidx.drawerlayout.widget.** { *; }
-keep class com.google.** { *; }
-keep class kotlin.collections.CollectionsKt
-keep class kotlin.collections.MapsKt
-keep class kotlin.coroutines.intrinsics.IntrinsicsKt
-keep class io.wax911.emojify.model.Emoji { *; }
-keep class io.bimmergestalt.idriveconnectkit.rhmi.* { *; }
-keep class io.bimmergestalt.idriveconnectkit.android.security.* { *; }
-keep public class * extends org.apache.etch.bindings.java.transport.FormatFactory
-keep class me.hufman.androidautoidrive.** { *; }

# remove the null pointer checking https://stackoverflow.com/questions/33547643/how-to-use-kotlin-with-proguard
-assumenosideeffects class kotlin.jvm.internal.Intrinsics {
static void checkParameterIsNotNull(java.lang.Object, java.lang.String);
}

-keepclasseswithmembernames class * {
native <methods>;
}
Expand Down

0 comments on commit 2c6532c

Please sign in to comment.