File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -61,15 +61,17 @@ afterEvaluate {
61
61
android {
62
62
compileSdkVersion safeExtGet(" compileSdkVersion" , 33 )
63
63
64
- compileOptions {
65
- sourceCompatibility JavaVersion . VERSION_11
66
- targetCompatibility JavaVersion . VERSION_11
67
- }
64
+ def agpVersion = com.android.Version . ANDROID_GRADLE_PLUGIN_VERSION
65
+ if (agpVersion. tokenize(' .' )[0 ]. toInteger() < 8 ) {
66
+ compileOptions {
67
+ sourceCompatibility JavaVersion . VERSION_11
68
+ targetCompatibility JavaVersion . VERSION_11
69
+ }
68
70
69
- kotlinOptions {
70
- jvmTarget = JavaVersion . VERSION_11 . majorVersion
71
+ kotlinOptions {
72
+ jvmTarget = JavaVersion . VERSION_11 . majorVersion
73
+ }
71
74
}
72
-
73
75
defaultConfig {
74
76
minSdkVersion safeExtGet(" minSdkVersion" , 21 )
75
77
targetSdkVersion safeExtGet(" targetSdkVersion" , 33 )
@@ -81,6 +83,16 @@ android {
81
83
}
82
84
}
83
85
86
+ kotlin {
87
+ jvmToolchain(11 )
88
+ }
89
+
90
+ java {
91
+ toolchain {
92
+ languageVersion. set(JavaLanguageVersion . of(11 ))
93
+ }
94
+ }
95
+
84
96
repositories {
85
97
mavenCentral()
86
98
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " karte-expo-plugin" ,
3
- "version" : " 0.1.1 " ,
3
+ "version" : " 0.1.2 " ,
4
4
"description" : " Config plugin for karte-react-native package" ,
5
5
"main" : " build/withKarte.js" ,
6
6
"types" : " build/withKarte.d.ts" ,
You can’t perform that action at this time.
0 commit comments