Skip to content

Commit 48888de

Browse files
tool4EvErtool4EvEr
authored andcommitted
Proguard + tinylog again
1 parent b04077e commit 48888de

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

forge-gui-android/proguard.cfg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@
6969
# classes it considers unused, which removes the logging provider.
7070
-keep class org.tinylog.** { *; }
7171

72+
-keep class org.slf4j.** { *; }
73+
7274
-keep class forge.** { *; }
7375
-keep class com.thoughtworks.xstream.** { *; }
7476
-keep class org.apache.commons.lang3.** { *; }

forge-gui-android/src/forge/app/Main.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,6 @@ public AndroidAudio createAudio(Context context, AndroidApplicationConfiguration
162162
@Override
163163
protected void onCreate(Bundle savedInstanceState) {
164164
super.onCreate(savedInstanceState);
165-
// Register tinylog provider explicitly — the android-maven-plugin strips
166-
// META-INF/services/ from dependency JARs, so ServiceLoader discovery fails.
167-
org.tinylog.configuration.Configuration.set("provider", "org.tinylog.core.TinylogLoggingProvider");
168165
try {
169166
PackageInfo pInfo = getContext().getPackageManager().getPackageInfo(getContext().getPackageName(), 0);
170167
versionString = pInfo.versionName;

0 commit comments

Comments
 (0)