Skip to content

Commit

Permalink
Merge pull request #336 from icerockdev/develop
Browse files Browse the repository at this point in the history
Release 0.19.1
  • Loading branch information
Alex009 authored Apr 29, 2022
2 parents a4759a4 + 417848f commit a4a0454
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 26 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ buildscript {
}
dependencies {
classpath "dev.icerock.moko:resources-generator:0.19.0"
classpath "dev.icerock.moko:resources-generator:0.19.1"
}
}
Expand All @@ -63,10 +63,10 @@ project build.gradle
apply plugin: "dev.icerock.mobile.multiplatform-resources"
dependencies {
commonMainApi("dev.icerock.moko:resources:0.19.0")
androidMainApi("dev.icerock.moko:resources-compose:0.19.0")
jvmMainApi("dev.icerock.moko:resources-compose:0.19.0")
commonTestImplementation("dev.icerock.moko:resources-test:0.19.0")
commonMainApi("dev.icerock.moko:resources:0.19.1")
androidMainApi("dev.icerock.moko:resources-compose:0.19.1")
jvmMainApi("dev.icerock.moko:resources-compose:0.19.1")
commonTestImplementation("dev.icerock.moko:resources-test:0.19.1")
}
multiplatformResources {
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ buildscript {
}
dependencies {
classpath("dev.icerock.moko:resources-generator")
classpath("org.jetbrains.compose:compose-gradle-plugin:1.0.1")
classpath("com.gradleup:auto-manifest-plugin:1.1.1")
classpath(libs.composeJetBrainsPlugin)
classpath(libs.autoManifestPlugin)
classpath(":resources-build-logic")
}
}
Expand Down
9 changes: 6 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ robolectricVersion = "4.7.3"
mokoGraphicsVersion = "0.9.0"
mokoParcelizeVersion = "0.8.0"
mokoTestVersion = "0.5.0"
mokoResourcesVersion = "0.19.0"
mokoResourcesVersion = "0.19.1"
mokoMultiplatformPluginVersion = "0.13.0"

[libraries]
Expand Down Expand Up @@ -86,9 +86,12 @@ kotlinTestAnnotations = { module = "org.jetbrains.kotlin:kotlin-test-annotations
# gradle
kotlinGradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlinVersion" }
# This version is used to fix compatibility issues between
# Kotlin Gradle Plugin 1.6.10 -> 1.6.20-RC
kotlinGradlePluginRC = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version = "1.6.20-RC" }
# Kotlin Gradle Plugin 1.6.10 -> 1.6.20
# we can't update all project to 1.6.20 now because Jetpack Compose not updated yet
kotlinGradlePluginNext = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version = "1.6.21" }
androidGradlePlugin = { module = "com.android.tools.build:gradle", version.ref = "androidGradleVersion" }
kotlinCompilerEmbeddable = { module = "org.jetbrains.kotlin:kotlin-compiler-embeddable", version.ref = "kotlinVersion" }
detektGradlePlugin = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version.ref = "detektVersion" }
mokoMultiplatformPlugin = { module = "dev.icerock:mobile-multiplatform", version.ref = "mokoMultiplatformPluginVersion" }
composeJetBrainsPlugin = { module = "org.jetbrains.compose:compose-gradle-plugin", version.ref = "composeJetbrainsVersion" }
autoManifestPlugin = { module = "com.gradleup:auto-manifest-plugin", version = "1.1.1" }
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion resources-generator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ version = libs.versions.mokoResourcesVersion.get()

dependencies {
implementation(gradleKotlinDsl())
compileOnly(libs.kotlinGradlePluginRC)
compileOnly(libs.kotlinGradlePluginNext)
compileOnly(libs.androidGradlePlugin)
implementation(libs.kotlinPoet)
implementation(libs.kotlinxSerialization)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,18 +305,18 @@ $linkTask produces static framework, Xcode should have Build Phase with copyFram
val fatTask: FatFrameworkTask = task as FatFrameworkTask

// compatibility of this api was changed
// from 1.6.10 to 1.6.20-RC, so reflection was
// from 1.6.10 to 1.6.20, so reflection was
// used here.
val fatFrameworkDir: File = FatFrameworkTask::class
.memberProperties
.run {
find { it.name == "fatFrameworkDir" }
?: find { it.name == "destinationDir" }
?: find { it.name == "fatFramework" }
}?.invoke(fatTask) as File

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

Expand Down
17 changes: 7 additions & 10 deletions sample/mpp-hierarhical/mpp_hierarhical.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,20 @@ Pod::Spec.new do |spec|
spec.name = 'mpp_hierarhical'
spec.version = '1.0'
spec.homepage = 'Link to a Kotlin/Native module homepage'
spec.source = { :git => "Not Published", :tag => "Cocoapods/#{spec.name}/#{spec.version}" }
spec.source = { :http=> ''}
spec.authors = ''
spec.license = ''
spec.summary = 'Some description for a Kotlin/Native module'

spec.vendored_frameworks = "build/cocoapods/framework/mpp_hierarhical.framework"
spec.libraries = "c++"
spec.module_name = "#{spec.name}_umbrella"

spec.vendored_frameworks = 'build/cocoapods/framework/mpp_hierarhical.framework'
spec.libraries = 'c++'





spec.pod_target_xcconfig = {
'KOTLIN_PROJECT_PATH' => ':sample:mpp-hierarhical',
'PRODUCT_MODULE_NAME' => 'mpp_hierarhical',
}

spec.script_phases = [
{
:name => 'Build mpp_hierarhical',
Expand All @@ -35,8 +31,9 @@ Pod::Spec.new do |spec|
"$REPO_ROOT/../../gradlew" -p "$REPO_ROOT" $KOTLIN_PROJECT_PATH:syncFramework \
-Pkotlin.native.cocoapods.platform=$PLATFORM_NAME \
-Pkotlin.native.cocoapods.archs="$ARCHS" \
-Pkotlin.native.cocoapods.configuration=$CONFIGURATION
-Pkotlin.native.cocoapods.configuration="$CONFIGURATION"
SCRIPT
}
]

end
2 changes: 1 addition & 1 deletion sample/mpp-library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ android {
kotlin {
explicitApi()

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

0 comments on commit a4a0454

Please sign in to comment.