readme
This commit is contained in:
parent
4bc9553571
commit
c85c9d0454
1 changed files with 9 additions and 2 deletions
11
README.md
11
README.md
|
@ -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.<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"
|
||||
|
|
Loading…
Add table
Reference in a new issue