Skip to content

Commit

Permalink
Merge pull request #12 from qiaoyuang/main
Browse files Browse the repository at this point in the history
Update to 1.2.5
  • Loading branch information
qiaoyuang authored Jan 24, 2023
2 parents 90c9629 + 5155260 commit 13f8958
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 23 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# MMKV-Kotlin Change Log

## v1.2.5/2023-01-23

### Update MMKV Version

* Based on `MMKV 1.2.15`

### Update Other Build Tools

* Android Gradle Plugin: 7.3.0 -> 7.4.0

* Android Build Tools: 33.0.0 -> 33.0.1

## v1.2.5-alpha01/2022-12-28

* Test Github Action Publishing
Expand Down Expand Up @@ -29,6 +41,7 @@
## v1.2.2/2022-8-25

### Update MMKV Version

* Based on `MMKV 1.2.14`

## v1.2.1/2022-7-17
Expand All @@ -44,6 +57,7 @@
## v1.2.0/2022-06-13

### Update Kotlin Version

* Based on `Kotlin 1.7.0`

## v1.1.1/2022-05-05
Expand All @@ -65,4 +79,5 @@
## v1.0.0/2022-04-19

### Initial Release

* Based on `Kotlin 1.6.10`, `MMKV 1.2.12`
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.4")
implementation("com.ctrip.flight.mmkv:mmkv-kotlin:1.2.5")
}
```

Current version based on `Kotlin 1.7.20` and `MMKV 1.2.14`.
Current version based on `Kotlin 1.7.20` and `MMKV 1.2.15`.

Pure Android platform (kts):

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

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

// M1&M2 Chip
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.4")
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.5")
}
```
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 Expand Up @@ -62,7 +62,7 @@ kotlin {
cocoapods {
// ......
pod(name = "MMKV") {
version = "1.2.14"
version = "1.2.15"
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.4")
implementation("com.ctrip.flight.mmkv:mmkv-kotlin:1.2.5")
}
```

当前版本依赖于 `Kotlin 1.7.20` 以及 `MMKV 1.2.14`
当前版本依赖于 `Kotlin 1.7.20` 以及 `MMKV 1.2.15`

纯 Android 平台(kts):

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

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

// M1&M2 芯片
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.4")
implementation("com.ctrip.flight.mmkv:mmkv-kotlin-macosarm64:1.2.5")
}
```
注意,如果您在目标平台为 macOS 的 Kotlin/Native 可执行程序工程中导入 MMKV-Kotlin,您需要手动在工程中添加对 MMKV 的依赖,并添加对 MMKV 及 MMKVCore 的 `linkerOpts`
Expand Down Expand Up @@ -60,7 +60,7 @@ kotlin {
cocoapods {
// ......
pod(name = "MMKV") {
version = "1.2.14"
version = "1.2.15"
moduleName = "MMKV"
}
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20")
classpath("com.android.tools.build:gradle:7.3.1")
classpath("com.android.tools.build:gradle:7.4.0")
}
}

Expand Down
4 changes: 2 additions & 2 deletions 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.5-alpha01'
spec.version = '1.2.5'
spec.homepage = 'Link to the Shared Module homepage'
spec.source = { :http=> ''}
spec.authors = ''
Expand All @@ -10,7 +10,7 @@ Pod::Spec.new do |spec|
spec.libraries = 'c++'
spec.ios.deployment_target = '14.1'
spec.osx.deployment_target = '12.2.1'
spec.dependency 'MMKV', '1.2.14'
spec.dependency 'MMKV', '1.2.15'

spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => ':mmkv-kotlin',
Expand Down
13 changes: 6 additions & 7 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.5-alpha01"
version = "1.2.5"
group = "com.ctrip.flight.mmkv"

val NEXUS_USERNAME: String by project
Expand All @@ -19,7 +19,7 @@ val javadocJar: TaskProvider<Jar> by tasks.registering(Jar::class) {
archiveClassifier.set("javadoc")
}

val mmkvVersion = "1.2.14"
val mmkvVersion = "1.2.15"

kotlin {
android {
Expand Down Expand Up @@ -76,7 +76,7 @@ kotlin {
implementation(kotlin("test-junit"))
implementation("junit:junit:4.13.2")
implementation("androidx.test:core:1.5.0")
implementation("androidx.test:runner:1.5.1")
implementation("androidx.test:runner:1.5.2")
implementation("androidx.test:rules:1.5.0")
}
}
Expand Down Expand Up @@ -111,15 +111,14 @@ kotlin {

android {
compileSdk = 33
buildToolsVersion = "33.0.0"
buildToolsVersion = "33.0.1"
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 = 33
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
testOptions {
Expand All @@ -129,8 +128,8 @@ android {
}
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@

package com.ctrip.flight.mmkv

import kotlinx.cinterop.toKString
import platform.Foundation.*
import platform.posix.getenv
import kotlin.test.*

/**
Expand All @@ -30,7 +32,7 @@ class MMKVKotlinTestIos {

@BeforeTest
fun setUp() {
initialize()
initialize("/Users/${getenv("USER")!!.toKString()}/Downloads")
mmkvTest = MMKVKotlinTest().apply {
setUp()
}
Expand Down

0 comments on commit 13f8958

Please sign in to comment.