Skip to content
This repository was archived by the owner on Jul 16, 2025. It is now read-only.

Commit e6520d7

Browse files
authored
fix: fix android proguard (#38)
1 parent da3c5dd commit e6520d7

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ android {
7070
}
7171
}
7272

73+
consumerProguardFiles 'proguard-rules.pro'
7374
}
7475

7576
buildFeatures {

android/proguard-rules.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
-keep class com.audioplayback.models.* {
2+
public *;
3+
}

example/android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ react {
5757
/**
5858
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
5959
*/
60-
def enableProguardInReleaseBuilds = false
60+
def enableProguardInReleaseBuilds = true
6161

6262
/**
6363
* The preferred build flavor of JavaScriptCore (JSC)
@@ -129,4 +129,4 @@ if (isNewArchitectureEnabled()) {
129129
commandLine "npx", "bob", "build", "--target", "codegen"
130130
}
131131
preBuild.dependsOn invokeLibraryCodegen
132-
}
132+
}

0 commit comments

Comments
 (0)