Skip to content

Commit 1169c60

Browse files
authored
Merge pull request #3 from icerockdev/develop
Release 0.3.0
2 parents 5621ebc + 8df3646 commit 1169c60

8 files changed

Lines changed: 52 additions & 16 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: KMP library compilation check
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
- develop
8+
9+
jobs:
10+
build:
11+
runs-on: macOS-latest
12+
13+
steps:
14+
- uses: actions/checkout@v1
15+
- name: Set up JDK 1.8
16+
uses: actions/setup-java@v1
17+
with:
18+
java-version: 1.8
19+
- name: Check build
20+
run: ./gradlew -PlibraryPublish :parcelize:publishToMavenLocal

.github/workflows/publish.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: KMP library publish
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: macOS-latest
10+
11+
steps:
12+
- uses: actions/checkout@v1
13+
- name: Set up JDK 1.8
14+
uses: actions/setup-java@v1
15+
with:
16+
java-version: 1.8
17+
- name: Publish
18+
run: ./gradlew -PlibraryPublish :parcelize:publishAllPublicationsToBintrayRepository -DBINTRAY_USER=${{ secrets.BINTRAY_USER }} -DBINTRAY_KEY=${{ secrets.BINTRAY_KEY }}

README.md

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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://api.bintray.com/packages/icerockdev/moko/moko-parcelize/images/download.svg) ](https://bintray.com/icerockdev/moko/moko-parcelize/_latestVersion) ![kotlin-version](https://img.shields.io/badge/kotlin-1.3.60-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://api.bintray.com/packages/icerockdev/moko/moko-parcelize/images/download.svg) ](https://bintray.com/icerockdev/moko/moko-parcelize/_latestVersion) ![kotlin-version](https://img.shields.io/badge/kotlin-1.3.70-orange)
33

44
# Mobile Kotlin parcelize
55
This is a Kotlin Multiplatform library that supports Parcelize in common code.
@@ -19,7 +19,7 @@ This is a Kotlin Multiplatform library that supports Parcelize in common code.
1919
- **Parcelize** in common code (specially for Android target).
2020

2121
## Requirements
22-
- Gradle version 5.4.1+
22+
- Gradle version 5.6.4+
2323
- Android API 16+
2424
- iOS version 9.0+
2525

@@ -28,6 +28,8 @@ This is a Kotlin Multiplatform library that supports Parcelize in common code.
2828
- 0.1.0
2929
- kotlin 1.3.60
3030
- 0.2.0
31+
- kotlin 1.3.70
32+
- 0.3.0
3133

3234
## Installation
3335
root build.gradle
@@ -42,7 +44,7 @@ allprojects {
4244
project build.gradle
4345
```groovy
4446
dependencies {
45-
commonMainApi("dev.icerock.moko:parcelize:0.2.0")
47+
commonMainApi("dev.icerock.moko:parcelize:0.3.0")
4648
}
4749
```
4850

@@ -51,11 +53,6 @@ Enable [kotlin android extensions](https://kotlinlang.org/docs/tutorials/android
5153
apply plugin: 'kotlin-android-extensions'
5254
```
5355

54-
settings.gradle
55-
```groovy
56-
enableFeaturePreview("GRADLE_METADATA")
57-
```
58-
5956
## Usage
6057
### Parcelize
6158
Mark common code classes with the annotation `@Parcelize` like in the Android code for automatically generated `Parcelable` implementation.
@@ -73,7 +70,7 @@ Please see more examples in the [sample directory](sample).
7370
## Set Up Locally
7471
- The [parcelize directory](parcelize) contains the `parcelize` library;
7572
- The [sample directory](sample) contains sample apps for Android and iOS; plus the mpp-library connected to the apps;
76-
- For local testing use the `:parcelize:publishToMavenLocal` gradle task - so that sample apps use the locally published version.
73+
- For local testing use the `./publishToMavenLocal.sh` script - so that sample apps use the locally published version.
7774

7875
## Contributing
7976
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`.

buildSrc/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ repositories {
1616
}
1717

1818
dependencies {
19-
implementation("dev.icerock:mobile-multiplatform:0.4.0")
20-
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.60")
21-
implementation("com.android.tools.build:gradle:3.5.2")
19+
implementation("dev.icerock:mobile-multiplatform:0.6.0")
20+
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.70")
21+
implementation("com.android.tools.build:gradle:3.6.1")
2222
}
2323

2424
kotlinDslPluginOptions {

buildSrc/src/main/kotlin/Versions.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ object Versions {
99
const val minSdk = 16
1010
}
1111

12-
const val kotlin = "1.3.60"
12+
const val kotlin = "1.3.70"
1313

1414
object Plugins {
1515
const val kotlin = Versions.kotlin
@@ -22,7 +22,7 @@ object Versions {
2222
}
2323

2424
object MultiPlatform {
25-
const val mokoParcelize: String = "0.2.0"
25+
const val mokoParcelize: String = "0.3.0"
2626
}
2727
}
2828
}
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-5.5.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

publishToMavenLocal.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./gradlew -PlibraryPublish :parcelize:publishToMavenLocal $*

sample/ios-app/Podfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ SPEC CHECKSUMS:
1313

1414
PODFILE CHECKSUM: 4fe4be1b815729054ce80d124b3c324811469f77
1515

16-
COCOAPODS: 1.8.3
16+
COCOAPODS: 1.9.0

0 commit comments

Comments
 (0)