Skip to content

Commit b6dcc5a

Browse files
committed
feat(android): Migrate plugins to built-in Kotlin
1 parent 6427bc6 commit b6dcc5a

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

packages/share_plus/share_plus/android/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ rootProject.allprojects {
2222
}
2323

2424
apply plugin: 'com.android.library'
25-
apply plugin: 'kotlin-android'
2625

2726
android {
2827
namespace 'dev.fluttercommunity.plus.share'
@@ -33,10 +32,6 @@ android {
3332
targetCompatibility JavaVersion.VERSION_17
3433
}
3534

36-
kotlinOptions {
37-
jvmTarget = 17
38-
}
39-
4035
defaultConfig {
4136
minSdk 19
4237
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
@@ -52,3 +47,9 @@ android {
5247
implementation 'androidx.annotation:annotation:1.9.1'
5348
}
5449
}
50+
51+
kotlin {
52+
compilerOptions {
53+
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
54+
}
55+
}

packages/share_plus/share_plus/example/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ flutter:
2424
- assets/flutter_logo.png
2525

2626
environment:
27-
sdk: '>=3.10.0 <4.0.0'
28-
flutter: '>=3.38.1'
27+
sdk: ">=3.12.0-0 <4.0.0"
28+
flutter: ">=3.44.0-0.0.pre"

packages/share_plus/share_plus/pubspec.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,5 @@ dev_dependencies:
5151
flutter_lints: ^6.0.0
5252

5353
environment:
54-
sdk: ">=3.10.0 <4.0.0"
55-
flutter: ">=3.38.1"
56-
54+
sdk: ">=3.12.0-0 <4.0.0"
55+
flutter: ">=3.44.0-0.0.pre"

0 commit comments

Comments
 (0)