Skip to content

Commit 558effb

Browse files
authored
Merge pull request #31 from icerockdev/develop
Release 0.7.1
2 parents 2ef4387 + 4490ac6 commit 558effb

22 files changed

Lines changed: 326 additions & 213 deletions

File tree

.github/workflows/compilation-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
os: [macos-latest, windows-latest, ubuntu-latest]
1515
steps:
1616
- uses: actions/checkout@v1
17-
- name: Set up JDK 1.8
17+
- name: Set up JDK 11
1818
uses: actions/setup-java@v1
1919
with:
20-
java-version: 1.8
20+
java-version: 11
2121
- name: Check build
2222
run: ./gradlew build publishToMavenLocal
2323
- name: Install pods
2424
run: cd sample/ios-app && pod install
2525
if: matrix.os == 'macOS-latest'
2626
- name: Check iOS
27-
run: cd sample/ios-app && xcodebuild -scheme TestProj -workspace TestProj.xcworkspace -configuration Debug build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
27+
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
2828
if: matrix.os == 'macOS-latest'

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
os: [macos-latest, windows-latest, ubuntu-latest]
2424
steps:
2525
- uses: actions/checkout@v1
26-
- name: Set up JDK 1.8
26+
- name: Set up JDK 11
2727
uses: actions/setup-java@v1
2828
with:
29-
java-version: 1.8
29+
java-version: 11
3030
- name: Publish
3131
run: ./gradlew publish -DIS_MAIN_HOST=${{ matrix.os == 'ubuntu-latest' }}
3232
release:
@@ -42,6 +42,6 @@ jobs:
4242
with:
4343
commitish: ${{ github.ref }}
4444
tag_name: release/${{ github.event.inputs.version }}
45-
release_name: Release ${{ github.event.inputs.version }}
45+
release_name: ${{ github.event.inputs.version }}
4646
body: "Will be filled later"
4747
draft: true

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
![moko-parcelize](img/logo.png)
2-
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0) [![Download](https://img.shields.io/maven-central/v/dev.icerock.moko/parcelize) ](https://repo1.maven.org/maven2/dev/icerock/moko/parcelize) ![kotlin-version](https://img.shields.io/badge/kotlin-1.5.10-orange)
2+
[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0) [![Download](https://img.shields.io/maven-central/v/dev.icerock.moko/parcelize) ](https://repo1.maven.org/maven2/dev/icerock/moko/parcelize) ![kotlin-version](https://kotlin-version.aws.icerock.dev/kotlin-version?group=dev.icerock.moko&name=parcelize)
33

44
# MOKO Parcelize
55
This is a Kotlin Multiplatform library that supports Parcelize in common code.
66

77
## Table of Contents
88
- [Features](#features)
99
- [Requirements](#requirements)
10-
- [Versions](#versions)
1110
- [Installation](#installation)
1211
- [Usage](#usage)
1312
- [Samples](#samples)
@@ -20,9 +19,9 @@ This is a Kotlin Multiplatform library that supports Parcelize in common code.
2019
- All Kotlin Multiplatform targets support.
2120

2221
## Requirements
23-
- Gradle version 6.0+
22+
- Gradle version 6.8+
2423
- Android API 16+
25-
- iOS version 9.0+
24+
- iOS version 11.0+
2625

2726
## Installation
2827
root build.gradle
@@ -37,7 +36,7 @@ allprojects {
3736
project build.gradle
3837
```groovy
3938
dependencies {
40-
commonMainApi("dev.icerock.moko:parcelize:0.7.0")
39+
commonMainApi("dev.icerock.moko:parcelize:0.7.1")
4140
}
4241
```
4342

@@ -63,6 +62,7 @@ Please see more examples in the [sample directory](sample).
6362
## Set Up Locally
6463
- The [parcelize directory](parcelize) contains the `parcelize` library;
6564
- The [sample directory](sample) contains sample apps for Android and iOS; plus the mpp-library connected to the apps.
65+
- For publish to MavenLocal repository run `./gradlew publishToMavenLocal -DIS_MAIN_HOST=true`
6666

6767
## Contributing
6868
All development (both new features and bug fixes) is performed in the `develop` branch. This way `master` always contains the sources of the most recently released version. Please send PRs with bug fixes to the `develop` branch. Documentation fixes in the markdown files are an exception to this rule. They are updated directly in `master`.

build.gradle.kts

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,16 @@ buildscript {
66
repositories {
77
mavenCentral()
88
google()
9+
gradlePluginPortal()
910
}
1011
dependencies {
11-
classpath("dev.icerock:mobile-multiplatform:0.9.2")
12-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10")
13-
classpath("com.android.tools.build:gradle:4.2.1")
12+
classpath(":parcelize-build-logic")
1413
}
1514
}
1615

1716
allprojects {
18-
repositories {
19-
mavenCentral()
20-
google()
21-
}
22-
23-
plugins.withId("com.android.library") {
24-
configure<com.android.build.gradle.LibraryExtension> {
25-
compileSdkVersion(libs.versions.compileSdk.get().toInt())
26-
27-
defaultConfig {
28-
minSdkVersion(libs.versions.minSdk.get().toInt())
29-
targetSdkVersion(libs.versions.targetSdk.get().toInt())
30-
}
31-
}
17+
plugins.withId("org.gradle.maven-publish") {
18+
group = "dev.icerock.moko"
19+
version = libs.versions.mokoParcelizeVersion.get()
3220
}
3321
}

gradle/libs.versions.toml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
[versions]
2-
androidAppCompatVersion = "1.1.0"
3-
mokoParcelizeVersion = "0.7.0"
4-
compileSdk = "28"
5-
targetSdk = "28"
6-
minSdk = "16"
2+
androidAppCompatVersion = "1.2.0"
3+
mokoParcelizeVersion = "0.7.1"
74

85
[libraries]
9-
appCompat = { module = "androidx.appcompat:appcompat", version.ref = "androidAppCompatVersion" }
10-
mokoParcelize = { module = "dev.icerock.moko:parcelize", version.ref = "mokoParcelizeVersion" }
6+
appCompat = { module = "androidx.appcompat:appcompat", version.ref = "androidAppCompatVersion" }
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
plugins {
2+
`kotlin-dsl`
3+
}
4+
5+
repositories {
6+
mavenCentral()
7+
google()
8+
9+
gradlePluginPortal()
10+
}
11+
12+
dependencies {
13+
api("dev.icerock:mobile-multiplatform:0.12.0")
14+
api("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20")
15+
api("com.android.tools.build:gradle:4.2.1")
16+
api("io.gitlab.arturbosch.detekt:detekt-gradle-plugin:1.15.0")
17+
}
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
5+
plugins {
6+
id("com.android.application")
7+
id("android-base-convention")
8+
id("kotlin-android")
9+
}
10+
11+
android {
12+
dexOptions {
13+
javaMaxHeapSize = "2g"
14+
}
15+
16+
buildTypes {
17+
getByName("release") {
18+
isMinifyEnabled = true
19+
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro")
20+
}
21+
getByName("debug") {
22+
isDebuggable = true
23+
applicationIdSuffix = ".debug"
24+
}
25+
}
26+
27+
packagingOptions {
28+
exclude("META-INF/*.kotlin_module")
29+
exclude("META-INF/AL2.0")
30+
exclude("META-INF/LGPL2.1")
31+
}
32+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
5+
import com.android.build.gradle.BaseExtension
6+
7+
configure<BaseExtension> {
8+
compileSdkVersion(30)
9+
10+
defaultConfig {
11+
minSdkVersion(16)
12+
targetSdkVersion(30)
13+
}
14+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
5+
plugins {
6+
id("com.android.library")
7+
id("kotlin-android")
8+
id("android-base-convention")
9+
}
10+
11+
android {
12+
sourceSets.all { java.srcDir("src/$name/kotlin") }
13+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/*
2+
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
3+
*/
4+
5+
plugins {
6+
id("publication-convention")
7+
}
8+
9+
afterEvaluate {
10+
publishing.publications {
11+
create("release", MavenPublication::class.java) {
12+
from(components.getByName("release"))
13+
}
14+
}
15+
}

0 commit comments

Comments
 (0)