File tree 3 files changed +13
-4
lines changed
src/main/kotlin/com/xraph/plugin/flutter_unity_widget
3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ buildscript {
9
9
}
10
10
11
11
dependencies {
12
- classpath ' com.android.tools.build:gradle:4.1.0 '
12
+ classpath ' com.android.tools.build:gradle:7. 4.1'
13
13
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
14
14
}
15
15
}
@@ -33,7 +33,7 @@ apply plugin: 'com.android.library'
33
33
apply plugin : ' kotlin-android'
34
34
35
35
android {
36
- compileSdkVersion 29
36
+ compileSdkVersion 33
37
37
38
38
// backwards compatible for old gradle versions without namespace
39
39
if (project. android. hasProperty(" namespace" )) {
@@ -54,6 +54,10 @@ android {
54
54
sourceCompatibility 1.8
55
55
targetCompatibility 1.8
56
56
}
57
+
58
+ kotlinOptions {
59
+ jvmTarget = ' 1.8'
60
+ }
57
61
}
58
62
59
63
def lifecycle_version = ' 2.4.1'
Original file line number Diff line number Diff line change @@ -68,7 +68,11 @@ class FlutterUnityWidgetController(
68
68
69
69
if (UnityPlayerUtils .unityPlayer == null ) {
70
70
createPlayer()
71
- refocusUnity()
71
+ // Commented out to:
72
+ // - Fix possible 4 second delay caused by pausing Unity while in the Android splash screen.
73
+ // This could also be seen in logcat as "Timeout while trying to pause the Unity Engine."
74
+ // - Fix ANR caused by interacting with app during splash screen while Unity is waiting to pause itself
75
+ // refocusUnity()
72
76
} else if (! UnityPlayerUtils .unityLoaded) {
73
77
createPlayer()
74
78
attachToView()
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ A new Flutter plugin.
25
25
26
26
s . xcconfig = {
27
27
'FRAMEWORK_SEARCH_PATHS' => '"${PODS_ROOT}/../UnityLibrary" "${PODS_ROOT}/../.symlinks/flutter/ios-release" "${PODS_CONFIGURATION_BUILD_DIR}"' ,
28
- 'OTHER_LDFLAGS' => '$(inherited) -framework UnityFramework ${PODS_LIBRARIES}'
28
+ 'OTHER_LDFLAGS' => '$(inherited) -framework UnityFramework ${PODS_LIBRARIES}' ,
29
+ 'ENABLE_BITCODE' => 'NO'
29
30
}
30
31
31
32
s . resource_bundles = { 'flutter_unity_widget_privacy' => [ 'Resources/PrivacyInfo.xcprivacy' ] }
You can’t perform that action at this time.
0 commit comments