Skip to content

Commit 5fc72da

Browse files
committed
Updated README with #21, rev version to 1.2.1 to publish change to pub.dev
1 parent ccd2312 commit 5fc72da

File tree

6 files changed

+36
-6
lines changed

6 files changed

+36
-6
lines changed

flutter_embed_unity/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.2.1
2+
3+
22 July 2024
4+
5+
* Updated README to note issue [#21](https://github.com/learntoflutter/flutter_embed_unity/issues/21): AR not supported when using Flutter 3.22 on Android API 32 or less (thanks [@timbotimbo](https://github.com/timbotimbo))
6+
17
## 1.2.0
28

39
4 July 2024

flutter_embed_unity/README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,15 @@ Due to various issues in Flutter support for native platform views, only certain
9090

9191
This is being tracked in [#12](https://github.com/learntoflutter/flutter_embed_unity/issues/12) and [#14](https://github.com/learntoflutter/flutter_embed_unity/issues/14) (many thanks to [@timbotimbo](https://github.com/timbotimbo))
9292

93-
## Android 22+, iOS 12.0+
9493

95-
Unity 2022.3 LTS [only supports Android 5.1 “Lollipop” (API level 22) and above](https://docs.unity3d.com/Manual/android-requirements-and-compatibility.html) and [iOS 12 and above](https://docs.unity3d.com/Manual/ios-requirements-and-compatibility.html) so your app must also observe these limitations.
94+
## AR not supported on Flutter 3.22 with Android API 32 (version 12 / Snow Cone) or earlier
95+
96+
Due to [Issue #21](https://github.com/learntoflutter/flutter_embed_unity/issues/21), AR will crash when using Flutter 3.22 on Android API 32 or earlier (thanks [@timbotimbo](https://github.com/timbotimbo))
97+
98+
99+
## Requires Android API 22+ (version 5.1 / Android Lollipop), iOS 12.0+
100+
101+
Unity 2022.3 LTS [only supports Android API 22 and above](https://docs.unity3d.com/Manual/android-requirements-and-compatibility.html) and [iOS 12 and above](https://docs.unity3d.com/Manual/ios-requirements-and-compatibility.html) so your app must also observe these limitations.
96102

97103
In `<your flutter app>/android/app/build.gradle` check your `minSdkVersion` is at least 22:
98104

@@ -637,6 +643,24 @@ This build error can arise when using Firebase packages in your Unity project. T
637643
For further info see [#8](https://github.com/learntoflutter/flutter_embed_unity/issues/8)
638644

639645

646+
## java.lang.NoClassDefFoundError: Failed resolution of: Landroid/window/OnBackInvokedCallback
647+
648+
Since Flutter 3.22, Unity will crash on certain Android versions when ARFoundation is activated. This only happens on Android <13. See [#21](https://github.com/learntoflutter/flutter_embed_unity/issues/21)
649+
650+
651+
> E/Unity ( 7029): AndroidJavaException: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/window/OnBackInvokedCallback;
652+
>E/Unity ( 7029): java.lang.NoClassDefFoundError: Failed resolution of: Landroid/window/OnBackInvokedCallback;
653+
>E/Unity ( 7029): at java.lang.reflect.Executable.getMethodReturnTypeInternal(Native Method)
654+
>E/Unity ( 7029): at java.lang.reflect.Method.getReturnType(Method.java:148)
655+
E/Unity ( 7029): at java.lang.Class.getDeclaredMethods(Class.java:1880)
656+
E/Unity ( 7029): at com.unity3d.player.ReflectionHelper.getMethodID(Unknown Source:26)
657+
E/Unity ( 7029): at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
658+
E/Unity ( 7029): at com.unity3d.player.UnityPlayer.-$$Nest$mnativeRender(Unknown Source:0)
659+
E/Unity ( 7029): at com.unity3d.player.UnityPlayer$F$a.handleMessage(Unknown Source:122)
660+
E/Unity ( 7029): at android.os.Handler.dispatchMessage(Handler.java:102)
661+
E/Unity ( 7029): at android.os.Looper.loop(Looper.java:214)
662+
E/Unity ( 7029): at com.unity3d.player.UnityPlayer$F.run(Unknown Source:24)
663+
E/Unity ( 7029): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.window.OnBackInvokedCallback" on path: DexPathList[[zip file "/data/app/com.learntoflutter.flutter_embed_uni
640664

641665
# Plugin developers / contributors
642666

flutter_embed_unity/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
flutter:
1212
sdk: flutter
1313

14-
flutter_embed_unity: ^1.2.0
14+
flutter_embed_unity: ^1.2.1
1515
intl: any
1616

1717

flutter_embed_unity/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_embed_unity
22
description: Harness the power of Unity 3D in your Flutter app by embedding Unity as a widget. Useful for adding 3D, gaming or augmented reality (AR) to your app.
3-
version: 1.2.0
3+
version: 1.2.1
44
homepage: https://learntoflutter.com
55
repository: https://github.com/learntoflutter/flutter_embed_unity/tree/main/flutter_embed_unity
66
issue_tracker: https://github.com/learntoflutter/flutter_embed_unity/issues

flutter_embed_unity_2022_3_android/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
sdk: flutter
1212

1313
flutter_embed_unity_2022_3_android: ^1.1.0
14-
flutter_embed_unity: ^1.2.0
14+
flutter_embed_unity: ^1.2.1
1515
intl: any
1616

1717

flutter_embed_unity_2022_3_ios/example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ dependencies:
1111
sdk: flutter
1212

1313
flutter_embed_unity_2022_3_ios: ^1.0.1
14-
flutter_embed_unity: ^1.2.0
14+
flutter_embed_unity: ^1.2.1
1515
intl: any
1616

1717

0 commit comments

Comments
 (0)