diff options
Diffstat (limited to 'android/app')
-rw-r--r-- | android/app/src/main/java/net/minetest/minetest/GameActivity.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/android/app/src/main/java/net/minetest/minetest/GameActivity.java b/android/app/src/main/java/net/minetest/minetest/GameActivity.java index 46fc9b1de..eeb90ea7f 100644 --- a/android/app/src/main/java/net/minetest/minetest/GameActivity.java +++ b/android/app/src/main/java/net/minetest/minetest/GameActivity.java @@ -34,10 +34,14 @@ import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; +import androidx.annotation.Keep; import androidx.appcompat.app.AlertDialog; import java.util.Objects; +// Native code finds these methods by name (see porting_android.cpp). +// This annotation prevents the minifier/Proguard from mangling them. +@Keep public class GameActivity extends NativeActivity { static { System.loadLibrary("c++_shared"); |