Skip to content

Commit a4a0454

Browse files
authored
Merge pull request #336 from icerockdev/develop
Release 0.19.1
2 parents a4759a4 + 417848f commit a4a0454

8 files changed

Lines changed: 26 additions & 26 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ buildscript {
4545
}
4646
4747
dependencies {
48-
classpath "dev.icerock.moko:resources-generator:0.19.0"
48+
classpath "dev.icerock.moko:resources-generator:0.19.1"
4949
}
5050
}
5151
@@ -63,10 +63,10 @@ project build.gradle
6363
apply plugin: "dev.icerock.mobile.multiplatform-resources"
6464
6565
dependencies {
66-
commonMainApi("dev.icerock.moko:resources:0.19.0")
67-
androidMainApi("dev.icerock.moko:resources-compose:0.19.0")
68-
jvmMainApi("dev.icerock.moko:resources-compose:0.19.0")
69-
commonTestImplementation("dev.icerock.moko:resources-test:0.19.0")
66+
commonMainApi("dev.icerock.moko:resources:0.19.1")
67+
androidMainApi("dev.icerock.moko:resources-compose:0.19.1")
68+
jvmMainApi("dev.icerock.moko:resources-compose:0.19.1")
69+
commonTestImplementation("dev.icerock.moko:resources-test:0.19.1")
7070
}
7171
7272
multiplatformResources {

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ buildscript {
1313
}
1414
dependencies {
1515
classpath("dev.icerock.moko:resources-generator")
16-
classpath("org.jetbrains.compose:compose-gradle-plugin:1.0.1")
17-
classpath("com.gradleup:auto-manifest-plugin:1.1.1")
16+
classpath(libs.composeJetBrainsPlugin)
17+
classpath(libs.autoManifestPlugin)
1818
classpath(":resources-build-logic")
1919
}
2020
}

gradle/libs.versions.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ robolectricVersion = "4.7.3"
3636
mokoGraphicsVersion = "0.9.0"
3737
mokoParcelizeVersion = "0.8.0"
3838
mokoTestVersion = "0.5.0"
39-
mokoResourcesVersion = "0.19.0"
39+
mokoResourcesVersion = "0.19.1"
4040
mokoMultiplatformPluginVersion = "0.13.0"
4141

4242
[libraries]
@@ -86,9 +86,12 @@ kotlinTestAnnotations = { module = "org.jetbrains.kotlin:kotlin-test-annotations
8686
# gradle
8787
kotlinGradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlinVersion" }
8888
# This version is used to fix compatibility issues between
89-
# Kotlin Gradle Plugin 1.6.10 -> 1.6.20-RC
90-
kotlinGradlePluginRC = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version = "1.6.20-RC" }
89+
# Kotlin Gradle Plugin 1.6.10 -> 1.6.20
90+
# we can't update all project to 1.6.20 now because Jetpack Compose not updated yet
91+
kotlinGradlePluginNext = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version = "1.6.21" }
9192
androidGradlePlugin = { module = "com.android.tools.build:gradle", version.ref = "androidGradleVersion" }
9293
kotlinCompilerEmbeddable = { module = "org.jetbrains.kotlin:kotlin-compiler-embeddable", version.ref = "kotlinVersion" }
9394
detektGradlePlugin = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version.ref = "detektVersion" }
9495
mokoMultiplatformPlugin = { module = "dev.icerock:mobile-multiplatform", version.ref = "mokoMultiplatformPluginVersion" }
96+
composeJetBrainsPlugin = { module = "org.jetbrains.compose:compose-gradle-plugin", version.ref = "composeJetbrainsVersion" }
97+
autoManifestPlugin = { module = "com.gradleup:auto-manifest-plugin", version = "1.1.1" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

resources-generator/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ version = libs.versions.mokoResourcesVersion.get()
1515

1616
dependencies {
1717
implementation(gradleKotlinDsl())
18-
compileOnly(libs.kotlinGradlePluginRC)
18+
compileOnly(libs.kotlinGradlePluginNext)
1919
compileOnly(libs.androidGradlePlugin)
2020
implementation(libs.kotlinPoet)
2121
implementation(libs.kotlinxSerialization)

resources-generator/src/main/kotlin/dev/icerock/gradle/generator/apple/AppleMRGenerator.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,18 +305,18 @@ $linkTask produces static framework, Xcode should have Build Phase with copyFram
305305
val fatTask: FatFrameworkTask = task as FatFrameworkTask
306306

307307
// compatibility of this api was changed
308-
// from 1.6.10 to 1.6.20-RC, so reflection was
308+
// from 1.6.10 to 1.6.20, so reflection was
309309
// used here.
310310
val fatFrameworkDir: File = FatFrameworkTask::class
311311
.memberProperties
312312
.run {
313313
find { it.name == "fatFrameworkDir" }
314-
?: find { it.name == "destinationDir" }
314+
?: find { it.name == "fatFramework" }
315315
}?.invoke(fatTask) as File
316316

317317
val frameworkFile = when (val any: Any = fatTask.frameworks.first()) {
318318
is Framework -> any.outputFile
319-
is FrameworkDescriptor -> any.file
319+
is FrameworkDescriptor -> any.files.rootDir
320320
else -> error("Unsupported type of $any")
321321
}
322322

sample/mpp-hierarhical/mpp_hierarhical.podspec

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,20 @@ Pod::Spec.new do |spec|
22
spec.name = 'mpp_hierarhical'
33
spec.version = '1.0'
44
spec.homepage = 'Link to a Kotlin/Native module homepage'
5-
spec.source = { :git => "Not Published", :tag => "Cocoapods/#{spec.name}/#{spec.version}" }
5+
spec.source = { :http=> ''}
66
spec.authors = ''
77
spec.license = ''
88
spec.summary = 'Some description for a Kotlin/Native module'
9-
10-
spec.vendored_frameworks = "build/cocoapods/framework/mpp_hierarhical.framework"
11-
spec.libraries = "c++"
12-
spec.module_name = "#{spec.name}_umbrella"
13-
9+
spec.vendored_frameworks = 'build/cocoapods/framework/mpp_hierarhical.framework'
10+
spec.libraries = 'c++'
11+
1412

15-
1613

17-
1814
spec.pod_target_xcconfig = {
1915
'KOTLIN_PROJECT_PATH' => ':sample:mpp-hierarhical',
2016
'PRODUCT_MODULE_NAME' => 'mpp_hierarhical',
2117
}
22-
18+
2319
spec.script_phases = [
2420
{
2521
:name => 'Build mpp_hierarhical',
@@ -35,8 +31,9 @@ Pod::Spec.new do |spec|
3531
"$REPO_ROOT/../../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework \
3632
-Pkotlin.native.cocoapods.platform=$PLATFORM_NAME \
3733
-Pkotlin.native.cocoapods.archs="$ARCHS" \
38-
-Pkotlin.native.cocoapods.configuration=$CONFIGURATION
34+
-Pkotlin.native.cocoapods.configuration="$CONFIGURATION"
3935
SCRIPT
4036
}
4137
]
38+
4239
end

sample/mpp-library/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ android {
2525
kotlin {
2626
explicitApi()
2727

28-
val xcFramework = XCFramework("MPL")
28+
val xcFramework = XCFramework("MultiPlatformLibrary")
2929
targets.withType(org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget::class)
3030
.matching { it.konanTarget.family == org.jetbrains.kotlin.konan.target.Family.IOS }
3131
.configureEach {

0 commit comments

Comments
 (0)