This commit is contained in:
rootVIII 2021-05-30 01:04:52 -04:00
parent 4bc9553571
commit c85c9d0454

View file

@ -30,8 +30,12 @@ alias pixel4='$ANDROID_HOME/emulator/emulator -avd "Pixel_4_API_30"'
// Navigate to skulls/ and generate the <code>.aar</code> binding:
ebitenmobile bind -target android -javapkg com.&lt;your-username&gt;.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/&lt;your username&gt;/MainActivity.java:
package com.&lt;your-username&gt;.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/&lt;your-username&gt;/EbitenViewWithErrorHandling.java
package com.solsticenet.skullsmobile;
@ -112,6 +118,7 @@ class EbitenViewWithErrorHandling extends EbitenView {
}
// Add the below into app/src/main/res/AndroidManifest.xml:
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"