Skip to content

Commit 1db8bfe

Browse files
authored
Release New unitypackage (#795)
* 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.
1 parent 6146dd2 commit 1db8bfe

10 files changed

+73
-7
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,8 @@ the platform name (Android or iOS). You can click on its icon to expand it.
7373

7474
- An existing Unity project (if there is none, you can [create a new one](https://learn.unity.com/tutorial/create-your-first-unity-project)).
7575

76-
- A [`FlutterUnityPackage.unitypackage`](https://raw.githubusercontent.com/juicycleff/flutter-unity-view-widget/master/unitypackages/fuw-2022.1.1.unitypackage)
77-
file (you can access the Unity packages in the [*unitypackages*](https://github.com/juicycleff/flutter-unity-view-widget/tree/master/unitypackages) folder too)
78-
Remeber to always check the match unitypackage for your project.
76+
- A `fuw-XXXX.unitypackage` file, found in the [*unitypackages*](https://github.com/juicycleff/flutter-unity-view-widget/tree/master/unitypackages) folder.
77+
Try to use the most recent unitypackage available.
7978

8079
#### NDK
8180

@@ -99,9 +98,9 @@ That's it! You don't need to tell your Android App in your `app/build.gradle` th
9998

10099
> The expected path is *unity/__project-name__/...*
101100
102-
2. Copy the *FlutterUnityPackage.unitypackage* file into the Unity project folder.
101+
2. Copy the *fuw-XXXX.unitypackage* file into the Unity project folder.
103102

104-
> The expected path is *unity/__project-name__/FlutterUnityPackage.unitypackage*
103+
> The expected path is *unity/__project-name__/fuw-XXXX.unitypackage*
105104
106105
3. Using Unity, open the Unity project, go to **File > Build Settings > Player Settings**
107106
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
121120
> Be sure you have at least one scene added to your build.
122121
123122
4. Go to **Assets > Import Package > Custom Package** and select the
124-
*FlutterUnityPackage.unitypackage* file. Click on **Import**.
123+
*fuw-XXXX.unitypackage* file. Click on **Import**.
125124

126125
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**
127126
option (will export to *ios/UnityLibrary*).
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
DOCUMENTATION
22

3-
Visit https://github.com/juicycleff/flutter-unity-view-widget
3+
Visit https://github.com/juicycleff/flutter-unity-view-widget
4+
5+
unitypackage version: fuw-2022.2.0

unitypackages/README.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Unitypackages
2+
Documentation of the unitypackage for `flutter_unity_widget`.
3+
4+
These packages are generated from the `FlutterUnityIntegration`folder in the example project.
5+
Using the files from the example project ensures you have the latest version.
6+
7+
8+
### Which one do I pick?
9+
Try the newest one first.
10+
11+
Package versions do not indicate supported unity versions.
12+
For example `fuw-2022.1.7f1.unitypackage` will work in Unity 2021 and even Unity 2019.
13+
14+
If you really can't get it to work try to match version numbers.
15+
e.g if you use an older plugin version in the 4.x range, you might have to try unitypackages with 4.x versions.
16+
17+
18+
### NewtonSoft errors
19+
You might run into one of the following errors:
20+
21+
- `The type or namespace name 'Newtonsoft' could not be found`
22+
You need to add or enable the dll file.
23+
- `Multiple precompiled assemblies`.
24+
You need to remove or disable the dll file.
25+
26+
For Android, iOS and Web this file shoud be
27+
`Assets\FlutterUnityIntegration\JsonDotNet\Assemblies\AOT\Newtonsoft.Json.dll.txt`
28+
29+
Using a wrong extension like `.dll.txt` will disable it.
30+
31+
# CHANGELOG
32+
Changes for `2022.1.7f1` and earlier were collected retroactively and might not be complete.
33+
34+
## 2022.2.0
35+
>fuw-2022.2.0.unitypackage
36+
* Restore newtonsoft.json.dll import.
37+
* Improve file appending during iOS export.
38+
* Disable bitcode for Xcode 14
39+
* (Android) Fix proguard linebreak bug
40+
* Fix a debugger crash in Unity 2022
41+
* Demo: Fix float parsing for localizations not using a dot as separator.
42+
43+
## 2022.1.7f1
44+
>fuw-2022.1.7f1.unitypackage
45+
* Add separate Debug and Release exports options.
46+
47+
## 2022.1.1-v2
48+
>fuw-2022.1.1-v2.unitypackage
49+
* Add missing using statements in `NativeAPI.cs`.
50+
* Add success logs at the end of an export.
51+
* Add Android proguard rule `-keep class com.unity3d.plugin.* { *; }";`
52+
* Improve web exports.
53+
54+
## 2022.1.1
55+
>fuw-2022.1.1.unitypackage
56+
* Rename newtonsoft.json `.dll` to `.dll.txt` to avoid assembly errors.
57+
58+
## 2022.1.0
59+
>fuw-2022.1.0.unitypackage
60+
* iOS export fixes.
61+
* WIP webGL export
62+
63+
## v4.1
64+
>FlutterUnityIntegration-v4.1.0.unitypackage
65+
* Enable bitcode for iOS.
611 KB
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)