diff --git a/README.md b/README.md index 593b989f..b933776e 100644 --- a/README.md +++ b/README.md @@ -73,9 +73,8 @@ the platform name (Android or iOS). You can click on its icon to expand it. - An existing Unity project (if there is none, you can [create a new one](https://learn.unity.com/tutorial/create-your-first-unity-project)). -- A [`FlutterUnityPackage.unitypackage`](https://raw.githubusercontent.com/juicycleff/flutter-unity-view-widget/master/unitypackages/fuw-2022.1.1.unitypackage) - file (you can access the Unity packages in the [*unitypackages*](https://github.com/juicycleff/flutter-unity-view-widget/tree/master/unitypackages) folder too) - Remeber to always check the match unitypackage for your project. +- A `fuw-XXXX.unitypackage` file, found in the [*unitypackages*](https://github.com/juicycleff/flutter-unity-view-widget/tree/master/unitypackages) folder. +Try to use the most recent unitypackage available. #### NDK @@ -99,9 +98,9 @@ That's it! You don't need to tell your Android App in your `app/build.gradle` th > The expected path is *unity/__project-name__/...* -2. Copy the *FlutterUnityPackage.unitypackage* file into the Unity project folder. +2. Copy the *fuw-XXXX.unitypackage* file into the Unity project folder. -> The expected path is *unity/__project-name__/FlutterUnityPackage.unitypackage* +> The expected path is *unity/__project-name__/fuw-XXXX.unitypackage* 3. Using Unity, open the Unity project, go to **File > Build Settings > Player Settings** and change the following under the **Configuration** section: @@ -121,7 +120,7 @@ That's it! You don't need to tell your Android App in your `app/build.gradle` th > Be sure you have at least one scene added to your build. 4. Go to **Assets > Import Package > Custom Package** and select the - *FlutterUnityPackage.unitypackage* file. Click on **Import**. + *fuw-XXXX.unitypackage* file. Click on **Import**. 5. After importing, click on **Flutter** and select the **Export Android Debug** or **Export Android Release** option (will export to *android/unityLibrary*) or the **Export iOS Debug** or **Export iOS Release** option (will export to *ios/UnityLibrary*). diff --git a/example/unity/DemoApp/Assets/FlutterUnityIntegration/README.txt b/example/unity/DemoApp/Assets/FlutterUnityIntegration/README.txt index 02895430..553a2959 100644 --- a/example/unity/DemoApp/Assets/FlutterUnityIntegration/README.txt +++ b/example/unity/DemoApp/Assets/FlutterUnityIntegration/README.txt @@ -1,3 +1,5 @@ DOCUMENTATION -Visit https://github.com/juicycleff/flutter-unity-view-widget \ No newline at end of file +Visit https://github.com/juicycleff/flutter-unity-view-widget + +unitypackage version: fuw-2022.2.0 \ No newline at end of file diff --git a/unitypackages/README.md b/unitypackages/README.md new file mode 100644 index 00000000..33f4b4b5 --- /dev/null +++ b/unitypackages/README.md @@ -0,0 +1,65 @@ +# Unitypackages +Documentation of the unitypackage for `flutter_unity_widget`. + +These packages are generated from the `FlutterUnityIntegration`folder in the example project. +Using the files from the example project ensures you have the latest version. + + +### Which one do I pick? +Try the newest one first. + +Package versions do not indicate supported unity versions. +For example `fuw-2022.1.7f1.unitypackage` will work in Unity 2021 and even Unity 2019. + +If you really can't get it to work try to match version numbers. +e.g if you use an older plugin version in the 4.x range, you might have to try unitypackages with 4.x versions. + + +### NewtonSoft errors +You might run into one of the following errors: + +- `The type or namespace name 'Newtonsoft' could not be found` + You need to add or enable the dll file. +- `Multiple precompiled assemblies`. +You need to remove or disable the dll file. + +For Android, iOS and Web this file shoud be +`Assets\FlutterUnityIntegration\JsonDotNet\Assemblies\AOT\Newtonsoft.Json.dll.txt` + +Using a wrong extension like `.dll.txt` will disable it. + +# CHANGELOG +Changes for `2022.1.7f1` and earlier were collected retroactively and might not be complete. + +## 2022.2.0 +>fuw-2022.2.0.unitypackage +* Restore newtonsoft.json.dll import. +* Improve file appending during iOS export. +* Disable bitcode for Xcode 14 +* (Android) Fix proguard linebreak bug +* Fix a debugger crash in Unity 2022 +* Demo: Fix float parsing for localizations not using a dot as separator. + +## 2022.1.7f1 +>fuw-2022.1.7f1.unitypackage +* Add separate Debug and Release exports options. + +## 2022.1.1-v2 +>fuw-2022.1.1-v2.unitypackage +* Add missing using statements in `NativeAPI.cs`. +* Add success logs at the end of an export. +* Add Android proguard rule `-keep class com.unity3d.plugin.* { *; }";` +* Improve web exports. + +## 2022.1.1 +>fuw-2022.1.1.unitypackage +* Rename newtonsoft.json `.dll` to `.dll.txt` to avoid assembly errors. + +## 2022.1.0 +>fuw-2022.1.0.unitypackage +* iOS export fixes. +* WIP webGL export + +## v4.1 + >FlutterUnityIntegration-v4.1.0.unitypackage +* Enable bitcode for iOS. diff --git a/unitypackages/fuw-2022.2.0.unitypackage b/unitypackages/fuw-2022.2.0.unitypackage new file mode 100644 index 00000000..ee87202a Binary files /dev/null and b/unitypackages/fuw-2022.2.0.unitypackage differ diff --git a/unitypackages/FlutterUnityIntegration-v4-WithDemo.unitypackage b/unitypackages/legacy/FlutterUnityIntegration-v4-WithDemo.unitypackage similarity index 100% rename from unitypackages/FlutterUnityIntegration-v4-WithDemo.unitypackage rename to unitypackages/legacy/FlutterUnityIntegration-v4-WithDemo.unitypackage diff --git a/unitypackages/FlutterUnityIntegration-v4.1.0-WithDemo.unitypackage b/unitypackages/legacy/FlutterUnityIntegration-v4.1.0-WithDemo.unitypackage similarity index 100% rename from unitypackages/FlutterUnityIntegration-v4.1.0-WithDemo.unitypackage rename to unitypackages/legacy/FlutterUnityIntegration-v4.1.0-WithDemo.unitypackage diff --git a/unitypackages/FlutterUnityIntegration-v4.1.0.unitypackage b/unitypackages/legacy/FlutterUnityIntegration-v4.1.0.unitypackage similarity index 100% rename from unitypackages/FlutterUnityIntegration-v4.1.0.unitypackage rename to unitypackages/legacy/FlutterUnityIntegration-v4.1.0.unitypackage diff --git a/unitypackages/FlutterUnityIntegration-v4.unitypackage b/unitypackages/legacy/FlutterUnityIntegration-v4.unitypackage similarity index 100% rename from unitypackages/FlutterUnityIntegration-v4.unitypackage rename to unitypackages/legacy/FlutterUnityIntegration-v4.unitypackage diff --git a/unitypackages/fuw-2022.1.0.unitypackage b/unitypackages/legacy/fuw-2022.1.0.unitypackage similarity index 100% rename from unitypackages/fuw-2022.1.0.unitypackage rename to unitypackages/legacy/fuw-2022.1.0.unitypackage diff --git a/unitypackages/fuw-2022.1.1.unitypackage b/unitypackages/legacy/fuw-2022.1.1.unitypackage similarity index 100% rename from unitypackages/fuw-2022.1.1.unitypackage rename to unitypackages/legacy/fuw-2022.1.1.unitypackage