Skip to content

Commit

Permalink
Release New unitypackage (#795)
Browse files Browse the repository at this point in the history
* Add a readme for unitypackages

* Move some old unitypackages to a legacy folder.

* Update package readme formatting.

* Add new unitypackage.

* Remove outdated unitypackage link in the readme.
  • Loading branch information
timbotimbo committed Apr 12, 2023
1 parent 6146dd2 commit 1db8bfe
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 7 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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:
Expand All @@ -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*).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
DOCUMENTATION

Visit https://github.com/juicycleff/flutter-unity-view-widget
Visit https://github.com/juicycleff/flutter-unity-view-widget

unitypackage version: fuw-2022.2.0
65 changes: 65 additions & 0 deletions unitypackages/README.md
Original file line number Diff line number Diff line change
@@ -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.
Binary file added unitypackages/fuw-2022.2.0.unitypackage
Binary file not shown.
File renamed without changes.
File renamed without changes.

0 comments on commit 1db8bfe

Please sign in to comment.