diff --git a/README.md b/README.md index fb0bbc4..61b6c7a 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ Be sure you have at least one scene added to your build. 3. Mark the following `Target Architectures` : - ARMv7 ✅ - ARM64 ✅ - - x86 ✅ + - x86 ✅ (In Unity Version 2019.2+, this feature is not avaliable due to the lack of Unity Official Support) @@ -119,6 +119,35 @@ project(":UnityExport").projectDir = file("./UnityExport") implementation project(':unity-classes') // the unity classes module you added from step 1 } ``` + 4. To build a release package, you need to add signconfig in `UnityExport/build.gradle`. The code below use the `debug` signConfig for all buildTypes, which can be changed as you well if you need specify signConfig. +``` + buildTypes { + release { + signingConfig signingConfigs.debug + } + debug { + signingConfig signingConfigs.debug + } + profile{ + signingConfig signingConfigs.debug + } + innerTest { + //... + matchingFallbacks = ['debug', 'release'] + } + } +``` + 5. If you found the duplicate app icons on your launcher after installing the app, you can just open `UnityExport` Manifest file and comment the codes below +```gradle + +// +// +// +// +// + + +``` **iOS Platform Only** diff --git a/example/android/settings.gradle b/example/android/settings.gradle index 5a2f14f..0682782 100644 --- a/example/android/settings.gradle +++ b/example/android/settings.gradle @@ -1,4 +1,4 @@ -include ':app' +include ':app', ':unity-classes' def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() diff --git a/example/android/unity-classes/build.gradle b/example/android/unity-classes/build.gradle new file mode 100644 index 0000000..d610285 --- /dev/null +++ b/example/android/unity-classes/build.gradle @@ -0,0 +1,2 @@ +configurations.maybeCreate("default") +artifacts.add("default", file('unity-classes.jar')) \ No newline at end of file