Skip to content

Commit e3aa316

Browse files
authored
feat: add android code to proguard (#22)
1 parent 7276f83 commit e3aa316

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

Source/Immutable/Immutable_UPL_Android.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,19 @@
33
<prebuildCopies>
44
<copyDir src="$S(PluginDir)/Private/Immutable/Android/Java" dst="$S(BuildDir)/src/com/immutable/unreal" />
55
</prebuildCopies>
6+
<proguardAdditions>
7+
<insert>
8+
<!-- Disable obfuscation -->
9+
-dontwarn com.immutable.unreal
10+
-keep class com.immutable.unreal.** { *; }
11+
-keep interface com.immutable.unreal.** { *; }
12+
-keep public class com.immutable.unreal.ImmutableAndroid.** { public protected *; }
13+
14+
-dontwarn androidx.**
15+
-keep class androidx.** { *; }
16+
-keep interface androidx.** { *; }
17+
</insert>
18+
</proguardAdditions>
619
<androidManifestUpdates>
720
<addElements tag="queries">
821
<intent>

Source/Immutable/Private/Immutable/Android/Java/ImmutableAndroid.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
import java.util.ArrayList;
2424
import java.util.List;
2525

26-
import com.epicgames.unreal.GameActivity;
27-
2826
public class ImmutableAndroid {
2927
private static CustomTabsServiceConnection customTabsServiceConnection;
3028

0 commit comments

Comments
 (0)