@@ -2,23 +2,21 @@ import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
22import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
33
44plugins {
5- kotlin( " multiplatform" )
6- kotlin( " native. cocoapods" )
7- id( " com. android.library" )
8- id( " kotlin- parcelize" )
9- id( " maven- publish" )
5+ alias(libs.plugins. multiplatform)
6+ alias(libs.plugins. cocoapods)
7+ alias(libs.plugins. android.library)
8+ alias(libs.plugins. kotlin. parcelize)
9+ alias(libs.plugins. maven. publish)
1010 signing
1111}
1212
13- version = " 1.2.12 "
13+ version = " 1.2.13 "
1414group = " com.ctrip.flight.mmkv"
1515
16- val mmkvVersion = " 1.3.5"
17-
16+ @OptIn(ExperimentalKotlinGradlePluginApi ::class )
1817kotlin {
1918 androidTarget {
2019 publishLibraryVariants(" release" )
21- @OptIn(ExperimentalKotlinGradlePluginApi ::class )
2220 instrumentedTestVariant.sourceSetTree.set(KotlinSourceSetTree .test)
2321 }
2422 iosX64()
@@ -27,26 +25,22 @@ kotlin {
2725 macosX64()
2826 macosArm64()
2927
30- targets.configureEach {
31- compilations.configureEach {
32- compilerOptions.configure {
33- freeCompilerArgs.add(" -Xexpect-actual-classes" )
34- }
35- }
28+ compilerOptions {
29+ freeCompilerArgs.add(" -Xexpect-actual-classes" )
3630 }
3731
3832 cocoapods {
3933 summary = " Some description for the Shared Module"
4034 homepage = " Link to the Shared Module homepage"
41- ios.deploymentTarget = " 17.4 .1"
42- osx.deploymentTarget = " 14.2 .1"
35+ ios.deploymentTarget = " 17.5 .1"
36+ osx.deploymentTarget = " 14.4 .1"
4337 framework {
4438 baseName = " MMKV-Kotlin"
4539 isStatic = true
4640 }
4741 pod(
4842 name = " MMKV" ,
49- version = mmkvVersion ,
43+ version = libs.versions.mmkv.get() ,
5044 )
5145 }
5246
@@ -61,24 +55,24 @@ kotlin {
6155 }
6256 val androidMain by getting {
6357 dependencies {
64- api(" com.tencent: mmkv-static: $mmkvVersion " )
58+ api(libs. mmkv)
6559 }
6660 }
6761 val androidInstrumentedTest by getting {
6862 dependencies {
6963 implementation(kotlin(" test-junit" ))
70- implementation(" junit:junit:4.13.2 " )
71- implementation(" androidx.test:core:1.5.0 " )
72- implementation(" androidx.test:runner:1.5.2 " )
73- implementation(" androidx.test:rules:1.5.0 " )
64+ implementation(libs.junit )
65+ implementation(libs. androidx.test.core )
66+ implementation(libs. androidx.test.runner )
67+ implementation(libs. androidx.test.rules )
7468 }
7569 }
7670 }
7771}
7872
7973android {
8074 namespace = " com.ctrip.flight.mmkv"
81- compileSdk = 33
75+ compileSdk = 35
8276 defaultConfig {
8377 minSdk = 23
8478 testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
@@ -103,7 +97,7 @@ publishing {
10397 licenses {
10498 license {
10599 name.set(" The Apache License, Version 2.0" )
106- url.set(" http ://www.apache.org/licenses/LICENSE-2.0.txt" )
100+ url.set(" https ://www.apache.org/licenses/LICENSE-2.0.txt" )
107101 }
108102 }
109103 developers {
0 commit comments