Skip to content

Commit

Permalink
Update to 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaoyuang committed Jul 17, 2022
1 parent f3107b0 commit 8158fe1
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 17 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
```

Expand All @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
```

Expand All @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
Expand Down
2 changes: 1 addition & 1 deletion mmkv-kotlin/MMKV_Kotlin.podspec
Original file line number Diff line number Diff line change
@@ -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 = ''
Expand Down
8 changes: 4 additions & 4 deletions mmkv-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -107,16 +107,16 @@ 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"))
java.setSrcDirs(listOf("src/androidTest/kotlin"))
}
defaultConfig {
minSdk = 23
targetSdk = 31
targetSdk = 32
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
testOptions {
Expand Down

0 comments on commit 8158fe1

Please sign in to comment.