File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ group 'app.nubrick.flutter.nubrick_flutter'
22version ' 1.0-SNAPSHOT'
33
44buildscript {
5- ext. kotlin_version = ' 1.9.10 '
5+ ext. kotlin_version = ' 2.1.0 '
66 repositories {
77 google()
88 mavenCentral()
@@ -11,6 +11,7 @@ buildscript {
1111 dependencies {
1212 classpath ' com.android.tools.build:gradle:7.3.1'
1313 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
14+ classpath " org.jetbrains.kotlin.plugin.compose:org.jetbrains.kotlin.plugin.compose.gradle.plugin:$kotlin_version "
1415 }
1516}
1617
@@ -23,6 +24,7 @@ allprojects {
2324
2425apply plugin : ' com.android.library'
2526apply plugin : ' kotlin-android'
27+ apply plugin : ' org.jetbrains.kotlin.plugin.compose'
2628
2729android {
2830 if (project. android. hasProperty(" namespace" )) {
@@ -35,17 +37,13 @@ android {
3537 compose true
3638 }
3739
38- composeOptions {
39- kotlinCompilerExtensionVersion = " 1.5.3"
40- }
41-
4240 compileOptions {
43- sourceCompatibility JavaVersion . VERSION_1_8
44- targetCompatibility JavaVersion . VERSION_1_8
41+ sourceCompatibility JavaVersion . VERSION_11
42+ targetCompatibility JavaVersion . VERSION_11
4543 }
4644
4745 kotlinOptions {
48- jvmTarget = ' 1.8 '
46+ jvmTarget = ' 11 '
4947 }
5048
5149 sourceSets {
Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ android {
2828 ndkVersion flutter. ndkVersion
2929
3030 compileOptions {
31- sourceCompatibility JavaVersion . VERSION_1_8
32- targetCompatibility JavaVersion . VERSION_1_8
31+ sourceCompatibility JavaVersion . VERSION_11
32+ targetCompatibility JavaVersion . VERSION_11
3333 }
3434
3535 kotlinOptions {
36- jvmTarget = ' 1.8 '
36+ jvmTarget = ' 11 '
3737 }
3838
3939 sourceSets {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ pluginManagement {
2020plugins {
2121 id " dev.flutter.flutter-plugin-loader" version " 1.0.0"
2222 id " com.android.application" version " 8.10.0" apply false
23- id " org.jetbrains.kotlin.android" version " 1.9.10 " apply false
23+ id " org.jetbrains.kotlin.android" version " 2.1.0 " apply false
2424}
2525
2626include " :app"
Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ android {
2828 ndkVersion flutter. ndkVersion
2929
3030 compileOptions {
31- sourceCompatibility JavaVersion . VERSION_1_8
32- targetCompatibility JavaVersion . VERSION_1_8
31+ sourceCompatibility JavaVersion . VERSION_11
32+ targetCompatibility JavaVersion . VERSION_11
3333 }
3434
3535 kotlinOptions {
36- jvmTarget = ' 1.8 '
36+ jvmTarget = ' 11 '
3737 }
3838
3939 sourceSets {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ pluginManagement {
2020plugins {
2121 id " dev.flutter.flutter-plugin-loader" version " 1.0.0"
2222 id " com.android.application" version ' 8.10.0' apply false
23- id " org.jetbrains.kotlin.android" version " 1.9.10 " apply false
23+ id " org.jetbrains.kotlin.android" version " 2.1.0 " apply false
2424}
2525
2626include " :app"
You can’t perform that action at this time.
0 commit comments