Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix proguard/r8 rules for Android #300

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions android/composeui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ android {
consumerProguardFiles "consumer-rules.pro"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
Expand Down
21 changes: 0 additions & 21 deletions android/composeui/proguard-rules.pro

This file was deleted.

6 changes: 0 additions & 6 deletions android/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ android {
consumerProguardFiles "consumer-rules.pro"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
Expand Down
8 changes: 8 additions & 0 deletions android/core/consumer-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Ferrostar & JNA
# TODO: This needs validation from a publishing app. Ticket https://github.com/stadiamaps/ferrostar/issues/185
-keep class com.sun.jna.** { *; }
-keep class uniffi.ferrostar.** { *; }
-dontwarn java.awt.Component
-dontwarn java.awt.GraphicsEnvironment
-dontwarn java.awt.HeadlessException
-dontwarn java.awt.Window
30 changes: 0 additions & 30 deletions android/core/proguard-rules.pro

This file was deleted.

6 changes: 0 additions & 6 deletions android/google-play-services/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ android {
consumerProguardFiles "consumer-rules.pro"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
Expand Down
21 changes: 0 additions & 21 deletions android/google-play-services/proguard-rules.pro

This file was deleted.

6 changes: 0 additions & 6 deletions android/maplibreui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,6 @@ android {
consumerProguardFiles "consumer-rules.pro"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_1_8
Expand Down
21 changes: 0 additions & 21 deletions android/maplibreui/proguard-rules.pro

This file was deleted.

Loading