From 8158fe1cb5bfc33ae3f97f3840a80d51aaea9383 Mon Sep 17 00:00:00 2001 From: qiaoyuang Date: Sun, 17 Jul 2022 21:14:24 +0800 Subject: [PATCH] Update to 1.2.1 --- CHANGELOG.md | 9 ++++++++- README.md | 10 +++++----- README_CN.md | 10 +++++----- build.gradle.kts | 2 +- mmkv-kotlin/MMKV_Kotlin.podspec | 2 +- mmkv-kotlin/build.gradle.kts | 8 ++++---- 6 files changed, 24 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97c38e4..74983aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,16 @@ # MMKV-Kotlin Change Log +## v1.2.1/2022-7-17 + +* Update Kotlin Version + * Based on `Kotlin 1.7.10` + +* Update Android Target SDK to API 32 + ## v1.2.0/2022-06-13 * Update Kotlin Version - * Based on Kotlin 1.7.0 + * Based on `Kotlin 1.7.0` ## v1.1.1/2022-05-05 diff --git a/README.md b/README.md index 917c494..513b52a 100644 --- a/README.md +++ b/README.md @@ -12,17 +12,17 @@ Kotlin Multiplatform Common (kts): ```kotlin dependencies { - implementation("com.ctrip.flight.mmkv:mmkv-kotlin:1.2.0") + implementation("com.ctrip.flight.mmkv:mmkv-kotlin:1.2.1") } ``` -Current version based on `Kotlin 1.7.0` and `MMKV 1.2.13`. +Current version based on `Kotlin 1.7.10` and `MMKV 1.2.13`. Pure Android platform (kts): ```kotlin dependencies { - implementation("com.ctrip.flight.mmkv:mmkv-kotlin-android:1.2.0") + implementation("com.ctrip.flight.mmkv:mmkv-kotlin-android:1.2.1") } ``` @@ -31,10 +31,10 @@ Kotlin/Native on macOS: ```kotlin dependencies { // Intel Chip - implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosx64:1.2.0") + implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosx64:1.2.1") // M1&M2 Chip - implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.0") + implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.1") } ``` Note, if you want to import MMKV-Kotlin to your Kotlin/Native executable project that target is macOS, you need to manually add dependency on MMKV, and add `linkerOpts` on MMKV and MMKVCore: diff --git a/README_CN.md b/README_CN.md index 5428bfe..f64a8fd 100644 --- a/README_CN.md +++ b/README_CN.md @@ -10,17 +10,17 @@ Kotlin Multiplatform Common (kts): ```kotlin dependencies { - implementation("com.ctrip.flight.mmkv:mmkv-kotlin:1.2.0") + implementation("com.ctrip.flight.mmkv:mmkv-kotlin:1.2.1") } ``` -当前版本依赖于 `Kotlin 1.7.0` 以及 `MMKV 1.2.13`。 +当前版本依赖于 `Kotlin 1.7.10` 以及 `MMKV 1.2.13`。 纯 Android 平台(kts): ```kotlin dependencies { - implementation("com.ctrip.flight.mmkv:mmkv-kotlin-android:1.2.0") + implementation("com.ctrip.flight.mmkv:mmkv-kotlin-android:1.2.1") } ``` @@ -29,10 +29,10 @@ Kotlin/Native on macOS: ```kotlin dependencies { // Intel 芯片 - implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosx64:1.2.0") + implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosx64:1.2.1") // M1&M2 芯片 - implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.0") + implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.1") } ``` 注意,如果您在目标平台为 macOS 的 Kotlin/Native 可执行程序工程中导入 MMKV-Kotlin,您需要手动在工程中添加对 MMKV 的依赖,并添加对 MMKV 及 MMKVCore 的 `linkerOpts`: diff --git a/build.gradle.kts b/build.gradle.kts index 4a016bf..2d02c27 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ buildscript { mavenCentral() } dependencies { - classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.0") + classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10") classpath("com.android.tools.build:gradle:7.2.1") } } diff --git a/mmkv-kotlin/MMKV_Kotlin.podspec b/mmkv-kotlin/MMKV_Kotlin.podspec index fbd861a..12689e2 100644 --- a/mmkv-kotlin/MMKV_Kotlin.podspec +++ b/mmkv-kotlin/MMKV_Kotlin.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = 'mmkv_kotlin' - spec.version = '1.2.0' + spec.version = '1.2.1' spec.homepage = 'Link to the Shared Module homepage' spec.source = { :http=> ''} spec.authors = '' diff --git a/mmkv-kotlin/build.gradle.kts b/mmkv-kotlin/build.gradle.kts index d2405e6..cda4b9e 100644 --- a/mmkv-kotlin/build.gradle.kts +++ b/mmkv-kotlin/build.gradle.kts @@ -9,7 +9,7 @@ plugins { signing } -version = "1.2.0" +version = "1.2.1" group = "com.ctrip.flight.mmkv" val NEXUS_USERNAME: String by project @@ -107,8 +107,8 @@ kotlin { } android { - compileSdk = 31 - buildToolsVersion = "31.0.0" + compileSdk = 32 + buildToolsVersion = "32.0.0" sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml") sourceSets.getByName("androidTest") { manifest.srcFile(File("src/androidTest/AndroidManifest.xml")) @@ -116,7 +116,7 @@ android { } defaultConfig { minSdk = 23 - targetSdk = 31 + targetSdk = 32 testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" } testOptions {