Skip to content

Commit d8687e1

Browse files
committed
Update gradle files to match Gradle, Java and Kotlin versions used in the Unity 6000.0.8 export.
1 parent 9e06146 commit d8687e1

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

android/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ apply plugin: 'com.android.library'
3333
apply plugin: 'kotlin-android'
3434

3535
android {
36-
compileSdkVersion 29
36+
compileSdkVersion 34
3737

3838
// backwards compatible for old gradle versions without namespace
3939
if (project.android.hasProperty("namespace")) {
@@ -44,15 +44,15 @@ android {
4444
main.java.srcDirs += 'src/main/kotlin'
4545
}
4646
defaultConfig {
47-
minSdkVersion 19
47+
minSdkVersion 23
4848
}
4949
lintOptions {
5050
disable 'InvalidPackage'
5151
}
5252

5353
compileOptions {
54-
sourceCompatibility 1.8
55-
targetCompatibility 1.8
54+
sourceCompatibility JavaVersion.VERSION_17
55+
targetCompatibility JavaVersion.VERSION_17
5656
}
5757
}
5858

example/android/app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ android {
3030

3131
namespace 'com.xraph.plugin.flutter_unity_widget_example'
3232

33+
compileOptions {
34+
sourceCompatibility JavaVersion.VERSION_17
35+
targetCompatibility JavaVersion.VERSION_17
36+
}
37+
3338
sourceSets {
3439
main.java.srcDirs += 'src/main/kotlin'
3540
}

example/android/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
buildscript {
2-
ext.kotlin_version = '1.8.22'
2+
ext.kotlin_version = '1.9.10'
33
repositories {
44
google()
55
mavenCentral()
66
}
77

88
dependencies {
99
// Unity recommended gradle version https://docs.unity3d.com/Manual/android-gradle-overview.html (higher versions do often work)
10-
classpath 'com.android.tools.build:gradle:7.1.2'
10+
classpath 'com.android.tools.build:gradle:8.3.0'
1111
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1212
}
1313
}

example/android/gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip

0 commit comments

Comments
 (0)