Skip to content

Commit ad2f726

Browse files
authored
Fix ClassNotFoundException when the app is minified (#38)
* add consumerProguardFile and fix proguard rules * update CHANGELOG
1 parent 777865a commit ad2f726

6 files changed

Lines changed: 6 additions & 2 deletions

File tree

Packages/MobileSupportStorage/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Bug Fixes :bug:
66
- Android: downgraded library's `compileSdkVersion` to 35 to reduce unnecessary SDK upgrades
7+
- Android: fixed `ClassNotFoundException` when the app is minified
78

89
## v1.0.1 - 2025/10/14
910

Packages/MobileSupportStorage/Runtime/Plugins/Android/MobileSupportStorage.androidlib/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ android {
77

88
defaultConfig {
99
minSdkVersion 19
10+
consumerProguardFiles 'proguard-rules.pro'
1011
}
1112

1213
buildTypes {

Packages/MobileSupportStorage/Runtime/Plugins/Android/MobileSupportStorage.androidlib/proguard-rules.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
2222

23-
-keep class jp.co.cyberagent.unitysupport.* { public *; }
23+
-keep class jp.co.cyberagent.unitysupport.storage.* { public *; }

Packages/MobileSupportThermal/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Bug Fixes :bug:
66
- Android: downgraded library's `compileSdkVersion` to 35 to reduce unnecessary SDK upgrades
7+
- Android: fixed `ClassNotFoundException` when the app is minified
78

89
## v2.0.1 - 2025/10/14
910

Packages/MobileSupportThermal/Runtime/Plugins/Android/MobileSupportThermal.androidlib/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ android {
77

88
defaultConfig {
99
minSdkVersion 19
10+
consumerProguardFiles 'proguard-rules.pro'
1011
}
1112

1213
buildTypes {

Packages/MobileSupportThermal/Runtime/Plugins/Android/MobileSupportThermal.androidlib/proguard-rules.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@
2020
# hide the original source file name.
2121
#-renamesourcefileattribute SourceFile
2222

23-
-keep class jp.co.cyberagent.unitysupport.* { public *; }
23+
-keep class jp.co.cyberagent.unitysupport.thermal.* { public *; }

0 commit comments

Comments
 (0)