android: get GameActivity to launch

For some reason there are no touch inputs though

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-01-28 13:35:43 -08:00
parent 9ce2b4da2c
commit b21e39dea9
4 changed files with 5 additions and 5 deletions

View File

@@ -47,8 +47,8 @@ debug-interactive-widgets = []
[target.'cfg(target_os = "android")'.dependencies]
tracing-logcat = "0.1.0"
log = { workspace = true }
android-activity = { version = "0.4", features = [ "native-activity" ] }
winit = { version = "0.30.5", features = [ "android-native-activity" ] }
android-activity = { version = "0.4", features = [ "game-activity" ] }
winit = { version = "0.30.5", features = [ "android-game-activity" ] }
[package.metadata.bundle]
name = "Notedeck"

View File

@@ -18,7 +18,7 @@
<meta-data
android:name="android.app.lib_name"
android:value="main" />
android:value="notedeck_chrome" />
</activity>
</application>

View File

@@ -16,7 +16,7 @@ import com.google.androidgamesdk.GameActivity;
public class MainActivity extends GameActivity {
static {
System.loadLibrary("main");
System.loadLibrary("notedeck_chrome");
}
@Override