File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 44* [ Android] Add namespace for Android gradle plugin (AGP) 8 compatibility.
55* [ Android] Fix kotlin compilation error with Flutter 3.24 and newer. [ #973 ] ( https://github.com/juicycleff/flutter-unity-view-widget/issues/973 )
66* [ Android] Update documentation for new ` .gradle.kts ` files.
7+ * [ Android] Update some ancient build.gradle values to match Unity 2022.3. Like CompileSdk to 34 and Java to 11.
78* [ iOS] Add an empty privacy manifest.
89* [ Web] Don't crash on unknown event data from Unity.
910* Disable windows support in ` pubspec.yaml ` to avoid confusion. Windows support was never completed.
Original file line number Diff line number Diff line change 11group ' com.xraph.plugin.flutter_unity_widget'
2- version ' 4.0 -SNAPSHOT'
2+ version ' 2022.2.2 -SNAPSHOT'
33
44buildscript {
5- ext. kotlin_version = ' 1.6.20 '
5+ ext. kotlin_version = ' 1.8.10 '
66 repositories {
77 google()
88 mavenCentral()
99 }
1010
1111 dependencies {
12- classpath ' com.android.tools.build:gradle:4.1.0 '
12+ classpath ' com.android.tools.build:gradle:7.4.2 '
1313 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
1414 }
1515}
@@ -33,7 +33,7 @@ apply plugin: 'com.android.library'
3333apply plugin : ' kotlin-android'
3434
3535android {
36- compileSdkVersion 29
36+ compileSdkVersion 34
3737
3838 // backwards compatible for old gradle versions without namespace
3939 if (project. android. hasProperty(" namespace" )) {
@@ -51,12 +51,12 @@ android {
5151 }
5252
5353 compileOptions {
54- sourceCompatibility JavaVersion . VERSION_1_8
55- targetCompatibility JavaVersion . VERSION_1_8
54+ sourceCompatibility JavaVersion . VERSION_11
55+ targetCompatibility JavaVersion . VERSION_11
5656 }
5757
5858 kotlinOptions {
59- jvmTarget = JavaVersion . VERSION_1_8
59+ jvmTarget = JavaVersion . VERSION_11 . toString()
6060 }
6161}
6262
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ android {
1212 // ndkVersion = flutter.ndkVersion
1313
1414 compileOptions {
15- sourceCompatibility = JavaVersion . VERSION_1_8
16- targetCompatibility = JavaVersion . VERSION_1_8
15+ sourceCompatibility = JavaVersion . VERSION_11
16+ targetCompatibility = JavaVersion . VERSION_11
1717 }
1818
1919 kotlinOptions {
2020 // if you change this value, also change it in android/build.gradle subprojects{}
21- jvmTarget = JavaVersion . VERSION_1_8
21+ jvmTarget = JavaVersion . VERSION_11 . toString()
2222 }
2323
2424 defaultConfig {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ subprojects {
3434 }
3535 project. android. kotlinOptions {
3636 // if you change this value, also change it in android/app/build.gradle
37- jvmTarget = JavaVersion . VERSION_1_8
37+ jvmTarget = JavaVersion . VERSION_11 . toString()
3838 }
3939 }
4040 }
You can’t perform that action at this time.
0 commit comments