Skip to content

Commit 1fcb8df

Browse files
authored
Merge pull request #4 from Flyclops/tickets/FL-871
Fix compatibility with Flutter 3.22.2
2 parents b731208 + 40edfb1 commit 1fcb8df

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

android/build.gradle

+12-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ buildscript {
99
}
1010

1111
dependencies {
12-
classpath 'com.android.tools.build:gradle:4.1.0'
12+
classpath 'com.android.tools.build:gradle:7.4.1'
1313
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1414
}
1515
}
@@ -33,7 +33,7 @@ apply plugin: 'com.android.library'
3333
apply plugin: 'kotlin-android'
3434

3535
android {
36-
compileSdkVersion 29
36+
compileSdk 33
3737

3838
sourceSets {
3939
main.java.srcDirs += 'src/main/kotlin'
@@ -46,8 +46,16 @@ android {
4646
}
4747

4848
compileOptions {
49-
sourceCompatibility 1.8
50-
targetCompatibility 1.8
49+
sourceCompatibility JavaVersion.VERSION_1_8
50+
targetCompatibility JavaVersion.VERSION_1_8
51+
}
52+
53+
kotlinOptions {
54+
jvmTarget = '1.8'
55+
}
56+
57+
if (project.android.hasProperty('namespace')) {
58+
namespace 'com.xraph.plugin.flutter_unity_widget'
5159
}
5260
}
5361

android/gradle/wrapper/gradle-wrapper.properties

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Mon Jul 15 17:33:14 EDT 2024
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
35
zipStoreBase=GRADLE_USER_HOME
46
zipStorePath=wrapper/dists
5-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip

example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Demonstrates how to use the flutter_unity_widget plugin.
66
publish_to: "none" # Remove this line if you wish to publish to pub.dev
77

88
environment:
9-
sdk: ">=2.7.0 <3.0.0"
9+
sdk: ">=2.12.0 <3.0.0"
1010

1111
dependencies:
1212
cupertino_icons: ^1.0.0

0 commit comments

Comments
 (0)