Skip to content

Commit af429c2

Browse files
authored
Merge pull request #36 from qiaoyuang/main
Update version to 1.2.13
2 parents 35d7252 + 76755a0 commit af429c2

File tree

9 files changed

+68
-50
lines changed

9 files changed

+68
-50
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@
1010
.cxx
1111
local.properties
1212
/MMKV-Kotlin/build
13-
.podspec
13+
.podspec
14+
.kotlin

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
- Date format: YYYY-MM-dd
44

5+
## v1.2.13 / 2024-07-16
6+
7+
* Based on `Kotlin 1.9.24`, `MMKV 1.3.7`
8+
59
## v1.2.12 / 2024-04-30
610

711
* Based on `Kotlin 1.9.23`, `MMKV 1.3.5`

build.gradle.kts

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,5 @@
1-
buildscript {
2-
repositories {
3-
gradlePluginPortal()
4-
google()
5-
mavenCentral()
6-
}
7-
dependencies {
8-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23")
9-
classpath("com.android.tools.build:gradle:8.2.2")
10-
}
11-
}
12-
13-
allprojects {
14-
repositories {
15-
google()
16-
mavenCentral()
17-
}
1+
plugins {
2+
alias(libs.plugins.multiplatform).apply(false)
3+
alias(libs.plugins.cocoapods).apply(false)
4+
alias(libs.plugins.android.library).apply(false)
185
}

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ org.gradle.configureondemand=true
55
org.gradle.workers.max=16
66
org.gradle.parallel=true
77
org.gradle.caching=true
8+
org.gradle.configuration-cache=true
89

910
#Android
1011
android.useAndroidX=true

gradle/libs.versions.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[versions]
2+
3+
kotlin = "1.9.24"
4+
agp = "8.2.2"
5+
mmkv = "1.3.7"
6+
junit = "4.13.2"
7+
androidx-test = "1.6.1"
8+
9+
[libraries]
10+
11+
mmkv = { group = "com.tencent", name = "mmkv-static", version.ref = "mmkv" }
12+
junit = { group = "junit", name = "junit", version.ref = "junit" }
13+
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-rules = { group = "androidx.test", name = "rules", version.ref = "androidx-test" }
16+
17+
[plugins]
18+
19+
multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
20+
cocoapods = { id = "org.jetbrains.kotlin.native.cocoapods", version.ref = "kotlin" }
21+
kotlin-parcelize = { id = "org.jetbrains.kotlin.plugin.parcelize" }
22+
android-library = { id = "com.android.library", version.ref = "agp" }
23+
maven-publish = { id = "maven-publish" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#Tue Feb 22 11:03:04 CST 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

mmkv-kotlin/MMKV_Kotlin.podspec

Lines changed: 4 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.12'
3+
spec.version = '1.2.13'
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.4.1'
12-
spec.osx.deployment_target = '14.2.1'
13-
spec.dependency 'MMKV', '1.3.5'
11+
spec.ios.deployment_target = '17.5.1'
12+
spec.osx.deployment_target = '14.4.1'
13+
spec.dependency 'MMKV', '1.3.7'
1414

1515
if !Dir.exist?('build/cocoapods/framework/MMKV_Kotlin.framework') || Dir.empty?('build/cocoapods/framework/MMKV_Kotlin.framework')
1616
raise "

mmkv-kotlin/build.gradle.kts

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,21 @@ import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
22
import org.jetbrains.kotlin.gradle.plugin.KotlinSourceSetTree
33

44
plugins {
5-
kotlin("multiplatform")
6-
kotlin("native.cocoapods")
7-
id("com.android.library")
8-
id("kotlin-parcelize")
9-
id("maven-publish")
5+
alias(libs.plugins.multiplatform)
6+
alias(libs.plugins.cocoapods)
7+
alias(libs.plugins.android.library)
8+
alias(libs.plugins.kotlin.parcelize)
9+
alias(libs.plugins.maven.publish)
1010
signing
1111
}
1212

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

16-
val mmkvVersion = "1.3.5"
17-
16+
@OptIn(ExperimentalKotlinGradlePluginApi::class)
1817
kotlin {
1918
androidTarget {
2019
publishLibraryVariants("release")
21-
@OptIn(ExperimentalKotlinGradlePluginApi::class)
2220
instrumentedTestVariant.sourceSetTree.set(KotlinSourceSetTree.test)
2321
}
2422
iosX64()
@@ -27,26 +25,22 @@ kotlin {
2725
macosX64()
2826
macosArm64()
2927

30-
targets.configureEach {
31-
compilations.configureEach {
32-
compilerOptions.configure {
33-
freeCompilerArgs.add("-Xexpect-actual-classes")
34-
}
35-
}
28+
compilerOptions {
29+
freeCompilerArgs.add("-Xexpect-actual-classes")
3630
}
3731

3832
cocoapods {
3933
summary = "Some description for the Shared Module"
4034
homepage = "Link to the Shared Module homepage"
41-
ios.deploymentTarget = "17.4.1"
42-
osx.deploymentTarget = "14.2.1"
35+
ios.deploymentTarget = "17.5.1"
36+
osx.deploymentTarget = "14.4.1"
4337
framework {
4438
baseName = "MMKV-Kotlin"
4539
isStatic = true
4640
}
4741
pod(
4842
name = "MMKV",
49-
version = mmkvVersion,
43+
version = libs.versions.mmkv.get(),
5044
)
5145
}
5246

@@ -61,24 +55,24 @@ kotlin {
6155
}
6256
val androidMain by getting {
6357
dependencies {
64-
api("com.tencent:mmkv-static:$mmkvVersion")
58+
api(libs.mmkv)
6559
}
6660
}
6761
val androidInstrumentedTest by getting {
6862
dependencies {
6963
implementation(kotlin("test-junit"))
70-
implementation("junit:junit:4.13.2")
71-
implementation("androidx.test:core:1.5.0")
72-
implementation("androidx.test:runner:1.5.2")
73-
implementation("androidx.test:rules:1.5.0")
64+
implementation(libs.junit)
65+
implementation(libs.androidx.test.core)
66+
implementation(libs.androidx.test.runner)
67+
implementation(libs.androidx.test.rules)
7468
}
7569
}
7670
}
7771
}
7872

7973
android {
8074
namespace = "com.ctrip.flight.mmkv"
81-
compileSdk = 33
75+
compileSdk = 35
8276
defaultConfig {
8377
minSdk = 23
8478
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
@@ -103,7 +97,7 @@ publishing {
10397
licenses {
10498
license {
10599
name.set("The Apache License, Version 2.0")
106-
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
100+
url.set("https://www.apache.org/licenses/LICENSE-2.0.txt")
107101
}
108102
}
109103
developers {

settings.gradle.kts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
rootProject.name = "mmkv-kotlin"
2+
include(":mmkv-kotlin")
3+
14
pluginManagement {
25
repositories {
36
google()
@@ -6,5 +9,10 @@ pluginManagement {
69
}
710
}
811

9-
rootProject.name = "mmkv-kotlin"
10-
include(":mmkv-kotlin")
12+
dependencyResolutionManagement {
13+
@Suppress("UnstableApiUsage")
14+
repositories {
15+
google()
16+
mavenCentral()
17+
}
18+
}

0 commit comments

Comments
 (0)