From c85c9d04541281188e1ac5113723ec79ff5b8bfd Mon Sep 17 00:00:00 2001 From: rootVIII Date: Sun, 30 May 2021 01:04:52 -0400 Subject: [PATCH] readme --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index be12e00..89fd9ec 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,12 @@ alias pixel4='$ANDROID_HOME/emulator/emulator -avd "Pixel_4_API_30"' // Navigate to skulls/ and generate the .aar binding: ebitenmobile bind -target android -javapkg com.<your-username>.skulls -o skulls.aar github.com/rootVIII/skulls/skullsebitenbind + + // Open an Empty Activity in Android Studio and name it SkullsMobile + + // Import the new .aar as a module: // Select File, New, New Module, Import .jar/.aar Package, select the previously built .aar named skulls.aar // In app/build.gradle, add this line to the dependencies: compile project(':skulls') @@ -44,11 +48,11 @@ dependencies { androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' compile project(':skulls') } -// Then synch the change to the build.gradle +// Then synch the change to the build.gradle for the project + // Place the following in app/src/main/java/<your username>/MainActivity.java: - package com.<your-username>.skullsmobile; import androidx.appcompat.app.AppCompatActivity; @@ -85,6 +89,8 @@ public class MainActivity extends AppCompatActivity { } } + + // Add a separate error handling class in app/src/main/java/<your-username>/EbitenViewWithErrorHandling.java package com.solsticenet.skullsmobile; @@ -112,6 +118,7 @@ class EbitenViewWithErrorHandling extends EbitenView { } + // Add the below into app/src/main/res/AndroidManifest.xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"