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 4
4
* [ Android] Add namespace for Android gradle plugin (AGP) 8 compatibility.
5
5
* [ Android] Fix kotlin compilation error with Flutter 3.24 and newer. [ #973 ] ( https://github.com/juicycleff/flutter-unity-view-widget/issues/973 )
6
6
* [ 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.
7
8
* [ iOS] Add an empty privacy manifest.
8
9
* [ Web] Don't crash on unknown event data from Unity.
9
10
* Disable windows support in ` pubspec.yaml ` to avoid confusion. Windows support was never completed.
Original file line number Diff line number Diff line change 1
1
group ' com.xraph.plugin.flutter_unity_widget'
2
- version ' 4.0 -SNAPSHOT'
2
+ version ' 2022.2.2 -SNAPSHOT'
3
3
4
4
buildscript {
5
- ext. kotlin_version = ' 1.6.20 '
5
+ ext. kotlin_version = ' 1.8.10 '
6
6
repositories {
7
7
google()
8
8
mavenCentral()
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.2 '
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 34
37
37
38
38
// backwards compatible for old gradle versions without namespace
39
39
if (project. android. hasProperty(" namespace" )) {
@@ -51,12 +51,12 @@ android {
51
51
}
52
52
53
53
compileOptions {
54
- sourceCompatibility JavaVersion . VERSION_1_8
55
- targetCompatibility JavaVersion . VERSION_1_8
54
+ sourceCompatibility JavaVersion . VERSION_11
55
+ targetCompatibility JavaVersion . VERSION_11
56
56
}
57
57
58
58
kotlinOptions {
59
- jvmTarget = JavaVersion . VERSION_1_8
59
+ jvmTarget = JavaVersion . VERSION_11 . toString()
60
60
}
61
61
}
62
62
Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ android {
12
12
// ndkVersion = flutter.ndkVersion
13
13
14
14
compileOptions {
15
- sourceCompatibility = JavaVersion . VERSION_1_8
16
- targetCompatibility = JavaVersion . VERSION_1_8
15
+ sourceCompatibility = JavaVersion . VERSION_11
16
+ targetCompatibility = JavaVersion . VERSION_11
17
17
}
18
18
19
19
kotlinOptions {
20
20
// 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()
22
22
}
23
23
24
24
defaultConfig {
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ subprojects {
34
34
}
35
35
project. android. kotlinOptions {
36
36
// 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()
38
38
}
39
39
}
40
40
}
You can’t perform that action at this time.
0 commit comments