Skip to content

Commit

Permalink
Merge pull request #28 from icerockdev/develop
Browse files Browse the repository at this point in the history
Release 0.7.0
  • Loading branch information
Alex009 authored Jun 6, 2021
2 parents 3c97b69 + cd22fa3 commit 2ef4387
Show file tree
Hide file tree
Showing 15 changed files with 67 additions and 131 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/compilation-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ jobs:
java-version: 1.8
- name: Check build
run: ./gradlew build publishToMavenLocal
- name: Install pods
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 build CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO
if: matrix.os == 'macOS-latest'
22 changes: 2 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
![moko-parcelize](img/logo.png)
[![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.4.31-orange)
[![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)

# MOKO Parcelize
This is a Kotlin Multiplatform library that supports Parcelize in common code.
Expand All @@ -24,24 +24,6 @@ This is a Kotlin Multiplatform library that supports Parcelize in common code.
- Android API 16+
- iOS version 9.0+

## Versions
### Bintray
- kotlin 1.3.50
- 0.1.0
- kotlin 1.3.60
- 0.2.0
- kotlin 1.3.70
- 0.3.0
- kotlin 1.4.0
- 0.4.0
- kotlin 1.4.20
- 0.5.0
- kotlin 1.4.21
- 0.6.0
### mavenCentral
- kotlin 1.4.31
- 0.6.1

## Installation
root build.gradle
```groovy
Expand All @@ -55,7 +37,7 @@ allprojects {
project build.gradle
```groovy
dependencies {
commonMainApi("dev.icerock.moko:parcelize:0.6.1")
commonMainApi("dev.icerock.moko:parcelize:0.7.0")
}
```

Expand Down
26 changes: 16 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,31 @@
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/

allprojects {
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath("dev.icerock:mobile-multiplatform:0.9.2")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10")
classpath("com.android.tools.build:gradle:4.2.1")
}
}

jcenter {
content {
includeGroup("org.jetbrains.trove4j")
}
}
allprojects {
repositories {
mavenCentral()
google()
}

plugins.withId(Deps.Plugins.androidLibrary.id) {
plugins.withId("com.android.library") {
configure<com.android.build.gradle.LibraryExtension> {
compileSdkVersion(Deps.Android.compileSdk)
compileSdkVersion(libs.versions.compileSdk.get().toInt())

defaultConfig {
minSdkVersion(Deps.Android.minSdk)
targetSdkVersion(Deps.Android.targetSdk)
minSdkVersion(libs.versions.minSdk.get().toInt())
targetSdkVersion(libs.versions.targetSdk.get().toInt())
}
}
}
Expand Down
24 changes: 0 additions & 24 deletions buildSrc/build.gradle.kts

This file was deleted.

40 changes: 0 additions & 40 deletions buildSrc/src/main/kotlin/Deps.kt

This file was deleted.

4 changes: 4 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ org.gradle.configureondemand=false
org.gradle.parallel=true

kotlin.code.style=official

kotlin.mpp.stability.nowarn=true
kotlin.mpp.enableGranularSourceSetsMetadata=true
kotlin.mpp.enableCompatibilityMetadataVariant=true

android.useAndroidX=true

mobile.multiplatform.iosTargetWarning=false
10 changes: 10 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[versions]
androidAppCompatVersion = "1.1.0"
mokoParcelizeVersion = "0.7.0"
compileSdk = "28"
targetSdk = "28"
minSdk = "16"

[libraries]
appCompat = { module = "androidx.appcompat:appcompat", version.ref = "androidAppCompatVersion" }
mokoParcelize = { module = "dev.icerock.moko:parcelize", version.ref = "mokoParcelizeVersion" }
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-6.8.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
17 changes: 9 additions & 8 deletions parcelize/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,24 @@ import java.util.Base64
import kotlin.text.String

plugins {
plugin(Deps.Plugins.androidLibrary)
plugin(Deps.Plugins.kotlinMultiPlatform)
plugin(Deps.Plugins.kotlinParcelize)
plugin(Deps.Plugins.mobileMultiPlatform)
plugin(Deps.Plugins.mavenPublish)
plugin(Deps.Plugins.signing)
id("com.android.library")
id("org.jetbrains.kotlin.multiplatform")
id("kotlin-parcelize")
id("dev.icerock.mobile.multiplatform")
id("maven-publish")
id("signing")
}

group = "dev.icerock.moko"
version = Deps.mokoParcelizeVersion
version = libs.versions.mokoParcelizeVersion.get()


kotlin {
macosX64("macOS")
tvos()
watchos()
jvm()
js {
js(BOTH) {
nodejs()
browser()
}
Expand Down
16 changes: 8 additions & 8 deletions sample/android-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
*/

plugins {
plugin(Deps.Plugins.androidApplication)
plugin(Deps.Plugins.kotlinAndroid)
plugin(Deps.Plugins.kotlinKapt)
id("com.android.application")
id("kotlin-android")
id("kotlin-kapt")
}

android {
compileSdkVersion(Deps.Android.compileSdk)
compileSdkVersion(libs.versions.compileSdk.get().toInt())

buildFeatures.dataBinding = true

Expand All @@ -18,8 +18,8 @@ android {
}

defaultConfig {
minSdkVersion(Deps.Android.minSdk)
targetSdkVersion(Deps.Android.targetSdk)
minSdkVersion(libs.versions.minSdk.get().toInt())
targetSdkVersion(libs.versions.targetSdk.get().toInt())

applicationId = "dev.icerock.moko.samples.parcelize"

Expand All @@ -46,7 +46,7 @@ android {
}

dependencies {
implementation(Deps.Libs.Android.appCompat)
implementation(libs.appCompat)

implementation(project(":sample:mpp-library"))
implementation(projects.sample.mppLibrary)
}
12 changes: 0 additions & 12 deletions sample/build.gradle.kts

This file was deleted.

2 changes: 1 addition & 1 deletion sample/ios-app/Podfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://github.com/CocoaPods/Specs.git'
source 'https://cdn.cocoapods.org/'

# ignore all warnings from all pods
inhibit_all_warnings!
Expand Down
2 changes: 1 addition & 1 deletion sample/ios-app/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
MultiPlatformLibrary: 3c5199ebc082c74305c57ff49da662add4226237

PODFILE CHECKSUM: 4fe4be1b815729054ce80d124b3c324811469f77
PODFILE CHECKSUM: d6e8b2708149aca1e6d60e470ae2dab21359ea6a

COCOAPODS: 1.10.0
12 changes: 6 additions & 6 deletions sample/mpp-library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
*/

plugins {
plugin(Deps.Plugins.androidLibrary)
plugin(Deps.Plugins.kotlinMultiPlatform)
plugin(Deps.Plugins.mobileMultiPlatform)
plugin(Deps.Plugins.kotlinParcelize)
plugin(Deps.Plugins.appleFramework)
id("com.android.library")
id("org.jetbrains.kotlin.multiplatform")
id("dev.icerock.mobile.multiplatform")
id("kotlin-parcelize")
id("dev.icerock.mobile.multiplatform.apple-framework")
}

kotlin {
macosX64()
}

dependencies {
commonMainApi(Deps.Libs.MultiPlatform.mokoParcelize)
commonMainApi(projects.parcelize)
}
3 changes: 3 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/

enableFeaturePreview("VERSION_CATALOGS")
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")

include(":parcelize")
include(":sample:android-app")
include(":sample:mpp-library")

0 comments on commit 2ef4387

Please sign in to comment.