Skip to content

Commit

Permalink
Fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
qiaoyuang committed Aug 30, 2024
1 parent 59755e9 commit 158ffa2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 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.13")
implementation("com.ctrip.flight.mmkv:mmkv-kotlin:1.2.14")
}
```

Current version is based on `Kotlin 1.9.24` and `MMKV 1.3.7`.
Current version is based on `Kotlin 2.0.20` and `MMKV 1.3.9`.

Pure Android platform (kts):

```kotlin
dependencies {
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-android:1.2.13")
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-android:1.2.14")
}
```

Expand All @@ -31,10 +31,10 @@ Kotlin/Native on macOS:
```kotlin
dependencies {
// Intel Chip
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosx64:1.2.13")
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosx64:1.2.14")

// M1&M2 Chip
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.13")
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.14")
}
```
Note, if your project is a Kotlin/Native executable program project of macOS, or it supplies a framework to an iOS application project directly, then you need to manually add the dependency of MMKV, and may need to add `linkerOpts` for MMKV and MMKVCore:
Expand Down Expand Up @@ -62,7 +62,7 @@ kotlin {
cocoapods {
// ......
pod(name = "MMKV") {
version = "1.3.7"
version = "1.3.9"
moduleName = "MMKV"
}
}
Expand Down
12 changes: 6 additions & 6 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.13")
implementation("com.ctrip.flight.mmkv:mmkv-kotlin:1.2.14")
}
```

当前版本依赖于 `Kotlin 1.9.24` 以及 `MMKV 1.3.7`
当前版本依赖于 `Kotlin 2.0.20` 以及 `MMKV 1.3.9`

纯 Android 平台(kts):

```kotlin
dependencies {
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-android:1.2.13")
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-android:1.2.14")
}
```

Expand All @@ -29,10 +29,10 @@ Kotlin/Native on macOS:
```kotlin
dependencies {
// Intel 芯片
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosx64:1.2.13")
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosx64:1.2.14")

// M1&M2 芯片
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.13")
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.14")
}
```
注意,如果你的工程为 macOS 的 Kotlin/Native 可执行程序工程,或者它直接向一个 iOS 应用程序工程提供 framework,那么您需要手动在工程中添加对 MMKV 的依赖,并可能需要添加对 MMKV 及 MMKVCore 的 `linkerOpts`
Expand Down Expand Up @@ -60,7 +60,7 @@ kotlin {
cocoapods {
// ......
pod(name = "MMKV") {
version = "1.3.7"
version = "1.3.9"
moduleName = "MMKV"
}
}
Expand Down

0 comments on commit 158ffa2

Please sign in to comment.