diff --git a/examples/agdk-mainloop/.gitignore b/examples/agdk-mainloop/.gitignore
index 24ad84c..9f8412d 100644
--- a/examples/agdk-mainloop/.gitignore
+++ b/examples/agdk-mainloop/.gitignore
@@ -1,12 +1,8 @@
*.iml
+.idea
.gradle
/local.properties
-/.idea/caches
-/.idea/libraries
-/.idea/modules.xml
-/.idea/workspace.xml
-/.idea/navEditor.xml
-/.idea/assetWizardSettings.xml
+/.idea
.DS_Store
/build
/captures
diff --git a/examples/agdk-mainloop/.idea/.gitignore b/examples/agdk-mainloop/.idea/.gitignore
deleted file mode 100644
index 26d3352..0000000
--- a/examples/agdk-mainloop/.idea/.gitignore
+++ /dev/null
@@ -1,3 +0,0 @@
-# Default ignored files
-/shelf/
-/workspace.xml
diff --git a/examples/agdk-mainloop/.idea/compiler.xml b/examples/agdk-mainloop/.idea/compiler.xml
deleted file mode 100644
index fb7f4a8..0000000
--- a/examples/agdk-mainloop/.idea/compiler.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/examples/agdk-mainloop/.idea/gradle.xml b/examples/agdk-mainloop/.idea/gradle.xml
deleted file mode 100644
index a2d7c21..0000000
--- a/examples/agdk-mainloop/.idea/gradle.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/examples/agdk-mainloop/.idea/misc.xml b/examples/agdk-mainloop/.idea/misc.xml
index 2a4d5b5..fb0d77e 100644
--- a/examples/agdk-mainloop/.idea/misc.xml
+++ b/examples/agdk-mainloop/.idea/misc.xml
@@ -1,9 +1,6 @@
-
+
-
-
-
\ No newline at end of file
diff --git a/examples/agdk-mainloop/.idea/vcs.xml b/examples/agdk-mainloop/.idea/vcs.xml
deleted file mode 100644
index fdf1fc8..0000000
--- a/examples/agdk-mainloop/.idea/vcs.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/examples/agdk-mainloop/Cargo.toml b/examples/agdk-mainloop/Cargo.toml
index 6971468..536146f 100644
--- a/examples/agdk-mainloop/Cargo.toml
+++ b/examples/agdk-mainloop/Cargo.toml
@@ -14,4 +14,4 @@ ndk = "0.7"
[lib]
name="main"
-crate_type=["cdylib"]
\ No newline at end of file
+crate_type=["cdylib"]
diff --git a/examples/agdk-mainloop/app/build.gradle b/examples/agdk-mainloop/app/build.gradle
index cce660e..386a484 100644
--- a/examples/agdk-mainloop/app/build.gradle
+++ b/examples/agdk-mainloop/app/build.gradle
@@ -12,8 +12,6 @@ android {
targetSdk 31
versionCode 1
versionName "1.0"
-
- testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
@@ -38,12 +36,10 @@ android {
dependencies {
- implementation 'androidx.appcompat:appcompat:1.4.1'
- implementation 'com.google.android.material:material:1.5.0'
- implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
- testImplementation 'junit:junit:4.13.2'
- androidTestImplementation 'androidx.test.ext:junit:1.1.3'
- androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
+ implementation "androidx.core:core:1.5.0"
+ implementation "androidx.constraintlayout:constraintlayout:2.0.4"
+ implementation 'androidx.fragment:fragment:1.2.5'
+ implementation 'com.google.oboe:oboe:1.5.0'
// To use the Android Frame Pacing library
//implementation "androidx.games:games-frame-pacing:1.9.1"
@@ -52,12 +48,12 @@ dependencies {
//implementation "androidx.games:games-performance-tuner:1.5.0"
// To use the Games Activity library
- implementation "androidx.games:games-activity:1.1.0"
+ implementation "androidx.games:games-activity:2.0.2"
// To use the Games Controller Library
- //implementation "androidx.games:games-controller:1.1.0"
+ //implementation "androidx.games:games-controller:2.0.2"
// To use the Games Text Input Library
- //implementation "androidx.games:games-text-input:1.1.0"
+ //implementation "androidx.games:games-text-input:2.0.2"
}
diff --git a/examples/agdk-mainloop/app/src/main/java/co/realfit/agdkmainloop/MainActivity.java b/examples/agdk-mainloop/app/src/main/java/co/realfit/agdkmainloop/MainActivity.java
index 831dd48..6dea50d 100644
--- a/examples/agdk-mainloop/app/src/main/java/co/realfit/agdkmainloop/MainActivity.java
+++ b/examples/agdk-mainloop/app/src/main/java/co/realfit/agdkmainloop/MainActivity.java
@@ -63,6 +63,11 @@ public class MainActivity extends GameActivity {
super.onCreate(savedInstanceState);
}
+ protected void onResume() {
+ super.onResume();
+ hideSystemUI();
+ }
+
public boolean isGooglePlayGames() {
PackageManager pm = getPackageManager();
return pm.hasSystemFeature("com.google.android.play.feature.HPE_EXPERIENCE");
diff --git a/examples/agdk-mainloop/app/src/main/res/layout/activity_main.xml b/examples/agdk-mainloop/app/src/main/res/layout/activity_main.xml
deleted file mode 100644
index 4fc2444..0000000
--- a/examples/agdk-mainloop/app/src/main/res/layout/activity_main.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
-
\ No newline at end of file
diff --git a/examples/agdk-mainloop/app/src/main/res/values-night/themes.xml b/examples/agdk-mainloop/app/src/main/res/values-night/themes.xml
deleted file mode 100644
index 81c6873..0000000
--- a/examples/agdk-mainloop/app/src/main/res/values-night/themes.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/examples/agdk-mainloop/app/src/main/res/values/themes.xml b/examples/agdk-mainloop/app/src/main/res/values/themes.xml
index 83a6c4a..96e0241 100644
--- a/examples/agdk-mainloop/app/src/main/res/values/themes.xml
+++ b/examples/agdk-mainloop/app/src/main/res/values/themes.xml
@@ -1,16 +1,3 @@
-
-
-
+
+
\ No newline at end of file