File tree Expand file tree Collapse file tree 8 files changed +68
-10
lines changed Expand file tree Collapse file tree 8 files changed +68
-10
lines changed Original file line number Diff line number Diff line change 1+ <!--
2+ Thanks for contributing!
3+
4+ Provide a description of your changes below and a general summary in the title
5+
6+ Please look at the following checklist to ensure that your PR can be accepted quickly:
7+ -->
8+
9+ ## Description
10+
11+ <!-- - Describe your changes in detail -->
12+
13+ ## Type of Change
14+
15+ <!-- - Put an `x` in all the boxes that apply: -->
16+
17+ - [ ] ✨ New feature (non-breaking change which adds functionality)
18+ - [ ] 🛠️ Bug fix (non-breaking change which fixes an issue)
19+ - [ ] ❌ Breaking change (fix or feature that would cause existing functionality to change)
20+ - [ ] 🧹 Code refactor
21+ - [ ] ✅ Build configuration change
22+ - [ ] 📝 Documentation
23+ - [ ] 🗑️ Chore
Original file line number Diff line number Diff line change 1+ name : genopets
2+
3+ on : [pull_request, push]
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - uses : actions/checkout@v2
11+
12+ - uses : subosito/flutter-action@v2
13+ with :
14+ flutter-version : ' 2.8.0'
15+ channel : ' stable'
16+
17+ - name : Clean Dependencies
18+ run : flutter clean
19+
20+ - name : Install Dependencies
21+ run : flutter packages get
22+
23+ - name : Format
24+ run : flutter format --set-exit-if-changed lib test
25+
26+ - name : Analyze
27+ run : flutter analyze lib test
28+
29+ - name : Run tests
30+ run : flutter test --no-pub --coverage --test-randomize-ordering-seed random
Original file line number Diff line number Diff line change 1+ ## 2020.3.25
2+
3+ * Fixed android freeze issue but only works with OpenGL3
4+ * Using unity versioning
5+
16## 4.2.5+1
27
38* Removed MultiWindowSupport due to issus on Windows machine export not containing the class
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ First depend on the library by adding this to your packages `pubspec.yaml`:
3030
3131``` yaml
3232dependencies :
33- flutter_unity_widget : ^4.2.5+1
33+ flutter_unity_widget : ^2020.3.25
3434` ` `
3535
3636Now inside your Dart code you can import it.
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ class UnityEvent<T> {
1515}
1616
1717class UnitySceneLoadedEvent extends UnityEvent <SceneLoaded ?> {
18- UnitySceneLoadedEvent (int unityId, SceneLoaded ? value) : super (unityId, value);
18+ UnitySceneLoadedEvent (int unityId, SceneLoaded ? value)
19+ : super (unityId, value);
1920}
2021
2122class UnityLoadedEvent extends UnityEvent <void > {
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ class UnityWidget extends StatefulWidget {
5757 this .onUnityUnloaded,
5858 this .gestureRecognizers,
5959 this .placeholder,
60- this .useAndroidView,
6160 this .useAndroidViewSurface,
6261 this .onUnitySceneLoaded,
6362 this .uiLevel = 1 ,
@@ -101,12 +100,7 @@ class UnityWidget extends StatefulWidget {
101100 /// This flag enables placeholder widget
102101 final bool printSetupLog;
103102
104- /// This flag allows you use AndroidView instead of PlatformViewLink for android. Deprecated
105- @deprecated
106- final bool ? useAndroidView;
107-
108- /// This flag allows you use AndroidView instead of PlatformViewLink for android
109- /// replace [useAndroidView] with [useAndroidViewSurface]
103+ /// This flag allows you use useAndroidViewSurface instead of PlatformViewLink for android (Default is true)
110104 final bool ? useAndroidViewSurface;
111105
112106 /// This is just a helper to render a placeholder widget
Original file line number Diff line number Diff line change 11name : flutter_unity_widget
22description : Flutter Unity 3D widget for embedding Unity game scenes in flutter. This library now supports Unity as a Library.
3- version : 4.2.5+1
3+ version : 2020.3.25
44# authors:
55# - Rex Raphael <rex.raphael@outlook.com>
66# - Thomas Stockx <thomas@stockxit.com>
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ class FakePlatformUnityWidget {
7070 'methodName' : methodName,
7171 'message' : message,
7272 });
73+ return null ;
7374 }
7475
7576 Future <void >? postJsonMessage (
@@ -79,14 +80,17 @@ class FakePlatformUnityWidget {
7980 'methodName' : methodName,
8081 'message' : message,
8182 });
83+ return null ;
8284 }
8385
8486 Future <void >? pause () {
8587 unityPaused = true ;
88+ return null ;
8689 }
8790
8891 Future <void >? resume () {
8992 unityPaused = false ;
93+ return null ;
9094 }
9195
9296 Future <void >? openInNativeProcess () {
@@ -95,6 +99,7 @@ class FakePlatformUnityWidget {
9599
96100 Future <void >? unload () {
97101 playerUnloaded = true ;
102+ return null ;
98103 }
99104
100105 Future <void >? quit () {
You can’t perform that action at this time.
0 commit comments