Skip to content

Commit ff8bfa1

Browse files
authored
Merge pull request #40 from qiaoyuang/main
Update version to Kotlin 2.0.20
2 parents 1ed9cb8 + 1c871ba commit ff8bfa1

File tree

8 files changed

+37
-31
lines changed

8 files changed

+37
-31
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
java-version: 17
3636

3737
- name: Setup Gradle
38-
uses: gradle/actions/setup-gradle@v3
38+
uses: gradle/actions/setup-gradle@v4
3939

4040
- name: Cache Build Tooling
4141
uses: actions/cache@v4
@@ -68,24 +68,24 @@ jobs:
6868
target: google_apis
6969
arch: x86_64
7070
profile: pixel_6
71-
emulator-build: 11698152
71+
emulator-build: 12265550
7272
force-avd-creation: false
7373
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
7474
disable-animations: true
7575
script: echo "Generated AVD snapshot for caching."
7676

77-
- name: Run Android 13 Instrumented Tests
77+
- name: Run Android 14 Instrumented Tests
7878
uses: reactivecircus/android-emulator-runner@v2
7979
with:
8080
api-level: 34
8181
target: google_apis
8282
arch: x86_64
8383
profile: pixel_6
84-
emulator-build: 11698152
84+
emulator-build: 12265550
8585
force-avd-creation: false
8686
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
8787
disable-animations: true
88-
script: ./gradlew :mmkv-kotlin:connectedDebugAndroidTest --stacktrace && adb uninstall com.ctrip.flight.mmkv.test
88+
script: ./gradlew :mmkv-kotlin:connectedDebugAndroidTest --stacktrace
8989

9090
- name: Upload Reports
9191
uses: actions/upload-artifact@v4

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
java-version: 17
3131

3232
- name: Setup Gradle
33-
uses: gradle/actions/setup-gradle@v3
33+
uses: gradle/actions/setup-gradle@v4
3434

3535
- name: Cache Build Tooling
3636
uses: actions/cache@v4

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
- Date format: YYYY-MM-dd
44

5-
## v1.2.14/ 2024-xx-xx
5+
## v1.2.14/ 2024-08-31
66

7-
Fixed the function `MMKV_KMP.withOpen`
7+
* Fixed the function `MMKV_KMP.withOpen`
8+
* Based on `Kotlin 2.0.20`, `MMKV 1.3.9`
89

910
## v1.2.13 / 2024-07-16
1011

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ Kotlin Multiplatform Common (kts):
1212

1313
```kotlin
1414
dependencies {
15-
implementation("com.ctrip.flight.mmkv:mmkv-kotlin:1.2.13")
15+
implementation("com.ctrip.flight.mmkv:mmkv-kotlin:1.2.14")
1616
}
1717
```
1818

19-
Current version is based on `Kotlin 1.9.24` and `MMKV 1.3.7`.
19+
Current version is based on `Kotlin 2.0.20` and `MMKV 1.3.9`.
2020

2121
Pure Android platform (kts):
2222

2323
```kotlin
2424
dependencies {
25-
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-android:1.2.13")
25+
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-android:1.2.14")
2626
}
2727
```
2828

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

3636
// M1&M2 Chip
37-
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.13")
37+
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.14")
3838
}
3939
```
4040
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:
@@ -62,7 +62,7 @@ kotlin {
6262
cocoapods {
6363
// ......
6464
pod(name = "MMKV") {
65-
version = "1.3.7"
65+
version = "1.3.9"
6666
moduleName = "MMKV"
6767
}
6868
}

README_CN.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ Kotlin Multiplatform Common (kts):
1010

1111
```kotlin
1212
dependencies {
13-
implementation("com.ctrip.flight.mmkv:mmkv-kotlin:1.2.13")
13+
implementation("com.ctrip.flight.mmkv:mmkv-kotlin:1.2.14")
1414
}
1515
```
1616

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

1919
纯 Android 平台(kts):
2020

2121
```kotlin
2222
dependencies {
23-
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-android:1.2.13")
23+
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-android:1.2.14")
2424
}
2525
```
2626

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

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

gradle/libs.versions.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
[versions]
22

3-
kotlin = "1.9.24"
4-
agp = "8.5.1"
5-
mmkv = "1.3.7"
3+
kotlin = "2.0.20"
4+
agp = "8.6.0"
5+
mmkv = "1.3.9"
66
junit = "4.13.2"
77
androidx-test = "1.6.1"
8+
androidx-test-runner = "1.6.2"
89

910
[libraries]
1011

11-
mmkv = { group = "com.tencent", name = "mmkv-static", version.ref = "mmkv" }
12+
mmkv = { group = "com.tencent", name = "mmkv", version.ref = "mmkv" }
1213
junit = { group = "junit", name = "junit", version.ref = "junit" }
1314
androidx-test-core = { group = "androidx.test", name = "core", version.ref = "androidx-test" }
14-
androidx-test-runner = { group = "androidx.test", name = "runner", version.ref = "androidx-test" }
15+
androidx-test-runner = { group = "androidx.test", name = "runner", version.ref = "androidx-test-runner" }
1516
androidx-test-rules = { group = "androidx.test", name = "rules", version.ref = "androidx-test" }
1617

1718
[plugins]

mmkv-kotlin/MMKV_Kotlin.podspec

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
Pod::Spec.new do |spec|
22
spec.name = 'mmkv_kotlin'
3-
spec.version = '1.2.13'
3+
spec.version = '1.2.14'
44
spec.homepage = 'Link to the Shared Module homepage'
55
spec.source = { :http=> ''}
66
spec.authors = ''
77
spec.license = ''
88
spec.summary = 'Some description for the Shared Module'
99
spec.vendored_frameworks = 'build/cocoapods/framework/MMKV_Kotlin.framework'
1010
spec.libraries = 'c++'
11-
spec.ios.deployment_target = '17.5.1'
12-
spec.osx.deployment_target = '14.4.1'
13-
spec.dependency 'MMKV', '1.3.7'
11+
spec.ios.deployment_target = '17.5.1'
12+
spec.osx.deployment_target = '14.4.1'
13+
spec.dependency 'MMKV', '1.3.9'
1414

1515
if !Dir.exist?('build/cocoapods/framework/MMKV_Kotlin.framework') || Dir.empty?('build/cocoapods/framework/MMKV_Kotlin.framework')
1616
raise "
@@ -23,6 +23,10 @@ Pod::Spec.new do |spec|
2323
Alternatively, proper pod installation is performed during Gradle sync in the IDE (if Podfile location is set)"
2424
end
2525

26+
spec.xcconfig = {
27+
'ENABLE_USER_SCRIPT_SANDBOXING' => 'NO',
28+
}
29+
2630
spec.pod_target_xcconfig = {
2731
'KOTLIN_PROJECT_PATH' => ':mmkv-kotlin',
2832
'PRODUCT_MODULE_NAME' => 'MMKV_Kotlin',

mmkv-kotlin/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ plugins {
1010
signing
1111
}
1212

13-
version = "1.2.13"
13+
version = "1.2.14"
1414
group = "com.ctrip.flight.mmkv"
1515

1616
@OptIn(ExperimentalKotlinGradlePluginApi::class)
@@ -72,7 +72,7 @@ kotlin {
7272

7373
android {
7474
namespace = "com.ctrip.flight.mmkv"
75-
compileSdk = 35
75+
compileSdk = 34
7676
defaultConfig {
7777
minSdk = 23
7878
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"

0 commit comments

Comments
 (0)