Skip to content

Commit

Permalink
Simplifies proguard by using IDriveConnectKitAndroid
Browse files Browse the repository at this point in the history
  • Loading branch information
hufman committed Feb 13, 2024
1 parent 7e8b9b9 commit 3fcc72d
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 40 deletions.
22 changes: 22 additions & 0 deletions .idea/androidTestResultsUserPreferences.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/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.

4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -304,10 +304,10 @@ dependencies {
androidTestImplementation 'com.github.tmurakami:dexopener:2.0.5'
androidTestImplementation 'org.awaitility:awaitility-scala:3.1.5'
implementation 'io.bimmergestalt:IDriveConnectKit:0.6'
implementation 'io.bimmergestalt:IDriveConnectKitAndroid:0.5'
implementation 'io.bimmergestalt:IDriveConnectKitAndroid:0.6'
testImplementation 'io.bimmergestalt:IDriveConnectKit:0.6'
androidTestImplementation 'io.bimmergestalt:IDriveConnectKit:0.6'
androidTestImplementation 'io.bimmergestalt:IDriveConnectKitAndroid:0.2'
androidTestImplementation 'io.bimmergestalt:IDriveConnectKitAndroid:0.6'
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
46 changes: 8 additions & 38 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -24,45 +24,15 @@
-dontobfuscate
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable

-keep public class * extends android.app.Activity
-keep public class * extends android.app.Application
-keep public class * extends java.lang.Exception
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-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 com.google.maps.** { *; }
-keep class kotlin.collections.CollectionsKt
-keep class kotlin.collections.MapsKt
-keep class kotlin.collections.SetsKt
-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.** { *; }

-keepclasseswithmembernames class * {
native <methods>;
}

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet);
}

-keepclasseswithmembers class * {
public <init>(android.content.Context, android.util.AttributeSet, int);
}

-keepclassmembers class * extends android.app.Activity {
public void *(android.view.View);
}

-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}

-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
# Needed only for ConnectedTests
-keep class androidx.drawerlayout.widget.** { boolean isDrawer*(int); }
-keep class kotlin.reflect.jvm.internal.** { *; }

0 comments on commit 3fcc72d

Please sign in to comment.