GameActivity as default
This commit is contained in:
parent
1cd519f0d9
commit
3f62dd1b10
2 changed files with 7 additions and 4 deletions
|
@ -30,7 +30,7 @@ openssl-sys = { version = "0.9.82", features = ["vendored"] }
|
||||||
#grin_wallet_util = "5.1.0"
|
#grin_wallet_util = "5.1.0"
|
||||||
|
|
||||||
egui = "0.21.0"
|
egui = "0.21.0"
|
||||||
egui-winit = "0.21.1"
|
egui-winit = { version = "0.21.1", features = ['default', 'bytemuck', 'android-game-activity'] }
|
||||||
wgpu = "0.15.1"
|
wgpu = "0.15.1"
|
||||||
egui_wgpu_backend = "0.22.0"
|
egui_wgpu_backend = "0.22.0"
|
||||||
epi = "0.17.0"
|
epi = "0.17.0"
|
||||||
|
@ -41,6 +41,9 @@ egui_demo_lib = "0.21.0"
|
||||||
## grin_servers
|
## grin_servers
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
|
|
||||||
|
[patch.crates-io]
|
||||||
|
egui-winit = { path = '../egui/crates/egui-winit' }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
built = { version = "0.6.0", features = ["git2"]}
|
built = { version = "0.6.0", features = ["git2"]}
|
||||||
|
|
||||||
|
@ -50,7 +53,7 @@ winit = { version = "0.28.3" }
|
||||||
|
|
||||||
[target.'cfg(target_os = "android")'.dependencies]
|
[target.'cfg(target_os = "android")'.dependencies]
|
||||||
android_logger = "0.13.1"
|
android_logger = "0.13.1"
|
||||||
winit = { version = "0.28.3", features = [ "android-native-activity" ] }
|
winit = { version = "0.28.3", features = [ "android-game-activity" ] }
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
name="grin_android"
|
name="grin_android"
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package mw.gri.android;
|
package mw.gri.android;
|
||||||
|
|
||||||
import android.app.NativeActivity;
|
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.system.ErrnoException;
|
import android.system.ErrnoException;
|
||||||
import android.system.Os;
|
import android.system.Os;
|
||||||
|
import com.google.androidgamesdk.GameActivity;
|
||||||
|
|
||||||
public class MainActivity extends NativeActivity {
|
public class MainActivity extends GameActivity {
|
||||||
|
|
||||||
static {
|
static {
|
||||||
System.loadLibrary("grin_android");
|
System.loadLibrary("grin_android");
|
||||||
|
|
Loading…
Reference in a new issue