From 3d52b2f9e2d3c9ce346d3e283886bb7ab4747e8c Mon Sep 17 00:00:00 2001 From: jintao Date: Sat, 21 Mar 2020 09:45:09 +0800 Subject: [PATCH 1/3] update README.md --- README.md | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 67eb3a7..d46a29d 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** From 7f9caac68921f228e74210353117bf66f2cf4075 Mon Sep 17 00:00:00 2001 From: sbeginner Date: Mon, 23 Mar 2020 17:10:26 +0800 Subject: [PATCH 2/3] The unity-classes directory is missing I solved by adding the unity-classes directory from another branch. --- example/android/settings.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() From ce120cbe38756177440245abb519ce0c6fd69748 Mon Sep 17 00:00:00 2001 From: sbeginner Date: Mon, 23 Mar 2020 17:21:18 +0800 Subject: [PATCH 3/3] Add files via upload --- example/android/unity-classes/build.gradle | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 example/android/unity-classes/build.gradle 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