Skip to content

Commit 0dc3935

Browse files
committed
Don't load resources package relative, as Proguard obfuscates the package
1 parent c5d43c6 commit 0dc3935

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

app/proguard-production.txt

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
-keep,includedescriptorclasses class li.klass.**$$serializer { *; }
1313
-keep class android.** { *; }
1414
-keep class li.klass.fhem.update.backend.device.configuration.DevicesConfiguration.**$* { *; }
15+
-keeppackagenames li.klass.fhem.update.backend.device.configuration
1516

1617
-keep public class com.google.android.gms.**
1718
-dontwarn com.google.android.gms.**

app/src/main/java/li/klass/fhem/update/backend/device/configuration/DeviceDescMapping.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class DeviceDescMapping {
4343
@Inject
4444
public DeviceDescMapping() {
4545
try {
46-
mapping = new JSONObject(Resources.toString(Resources.getResource(DeviceDescMapping.class, "deviceDescMapping.json"), Charsets.UTF_8));
46+
mapping = new JSONObject(Resources.toString(Resources.getResource(DeviceDescMapping.class, "/deviceDescMapping.json"), Charsets.UTF_8));
4747
} catch (Exception e) {
4848
throw new RuntimeException(e);
4949
}

app/whatsnew-de.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
TODO
1+
* Fix application crash

app/whatsnew-en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
TODO
1+
* Fix application crash

0 commit comments

Comments
 (0)