Skip to content

Commit

Permalink
Merge pull request #36 from icerockdev/develop
Browse files Browse the repository at this point in the history
Release 0.8.0
  • Loading branch information
Alex009 authored Jan 21, 2022
2 parents 558effb + ac383b1 commit 8af5387
Show file tree
Hide file tree
Showing 15 changed files with 33 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compilation-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
run: cd sample/ios-app && pod install
if: matrix.os == 'macOS-latest'
- name: Check iOS
run: cd sample/ios-app && xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
run: cd sample/ios-app && set -o pipefail && xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug -sdk iphonesimulator -arch x86_64 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | xcpretty
if: matrix.os == 'macOS-latest'
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ build
Pods
xcuserdata
local.properties
local.gradle
local.gradle
kotlin-js-store/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ allprojects {
project build.gradle
```groovy
dependencies {
commonMainApi("dev.icerock.moko:parcelize:0.7.1")
commonMainApi("dev.icerock.moko:parcelize:0.8.0")
}
```

Expand Down
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ allprojects {
version = libs.versions.mokoParcelizeVersion.get()
}
}

// temporary fix for Apple Silicon (remove after 1.6.20 update)
rootProject.plugins.withType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin> {
rootProject.the<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>().nodeVersion = "16.0.0"
}
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,3 @@ kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.mpp.enableCompatibilityMetadataVariant=true

android.useAndroidX=true

mobile.multiplatform.iosTargetWarning=false
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[versions]
androidAppCompatVersion = "1.2.0"
mokoParcelizeVersion = "0.7.1"
mokoParcelizeVersion = "0.8.0"

[libraries]
appCompat = { module = "androidx.appcompat:appcompat", version.ref = "androidAppCompatVersion" }
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.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
8 changes: 4 additions & 4 deletions parcelize-build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ repositories {
}

dependencies {
api("dev.icerock:mobile-multiplatform:0.12.0")
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20")
api("com.android.tools.build:gradle:4.2.1")
api("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.15.0")
api("dev.icerock:mobile-multiplatform:0.13.0")
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10")
api("com.android.tools.build:gradle:7.0.4")
api("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.19.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ plugins {
}

android {
dexOptions {
javaMaxHeapSize = "2g"
}

buildTypes {
getByName("release") {
isMinifyEnabled = true
Expand All @@ -25,8 +21,8 @@ android {
}

packagingOptions {
exclude("META-INF/*.kotlin_module")
exclude("META-INF/AL2.0")
exclude("META-INF/LGPL2.1")
resources.excludes.add("META-INF/*.kotlin_module")
resources.excludes.add("META-INF/AL2.0")
resources.excludes.add("META-INF/LGPL2.1")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/

import io.gitlab.arturbosch.detekt.Detekt

plugins {
id("io.gitlab.arturbosch.detekt")
}

detekt {
input.setFrom("src/commonMain/kotlin", "src/androidMain/kotlin", "src/iosMain/kotlin", "src/main/kotlin")
tasks.register("detektWithoutTests") {
group = "verification"
dependsOn(tasks.withType<Detekt>().matching { it.name.contains("Test").not() })
}

dependencies {
"detektPlugins"("io.gitlab.arturbosch.detekt:detekt-formatting:1.15.0")
"detektPlugins"("io.gitlab.arturbosch.detekt:detekt-formatting:1.19.0")
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ kotlin {
publishLibraryVariants("release", "debug")
}
ios()
macosX64("macOS")
iosSimulatorArm64()
macosX64()
macosArm64()
tvos()
tvosSimulatorArm64()
watchos()
watchosSimulatorArm64()
jvm()
js(BOTH) {
nodejs()
Expand Down
1 change: 1 addition & 0 deletions parcelize/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

plugins {
id("multiplatform-library-convention")
id("detekt-convention")
id("kotlin-parcelize")
id("dev.icerock.mobile.multiplatform.android-manifest")
id("publication-convention")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ actual typealias Parcelize = Parcelize

actual typealias Parcelable = Parcelable

actual typealias IgnoredOnParcel = IgnoredOnParcel
actual typealias IgnoredOnParcel = IgnoredOnParcel
2 changes: 2 additions & 0 deletions sample/mpp-library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ plugins {

kotlin {
ios()
iosSimulatorArm64()
macosX64()
macosArm64()
android()
}

Expand Down
6 changes: 0 additions & 6 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,6 @@ dependencyResolutionManagement {
repositories {
mavenCentral()
google()

jcenter {
content {
includeGroup("org.jetbrains.kotlinx")
}
}
}
}

Expand Down

0 comments on commit 8af5387

Please sign in to comment.