-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from icerockdev/develop
Release 0.7.1
- Loading branch information
Showing
22 changed files
with
326 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
[versions] | ||
androidAppCompatVersion = "1.1.0" | ||
mokoParcelizeVersion = "0.7.0" | ||
compileSdk = "28" | ||
targetSdk = "28" | ||
minSdk = "16" | ||
androidAppCompatVersion = "1.2.0" | ||
mokoParcelizeVersion = "0.7.1" | ||
|
||
[libraries] | ||
appCompat = { module = "androidx.appcompat:appcompat", version.ref = "androidAppCompatVersion" } | ||
mokoParcelize = { module = "dev.icerock.moko:parcelize", version.ref = "mokoParcelizeVersion" } | ||
appCompat = { module = "androidx.appcompat:appcompat", version.ref = "androidAppCompatVersion" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
google() | ||
|
||
gradlePluginPortal() | ||
} | ||
|
||
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") | ||
} |
32 changes: 32 additions & 0 deletions
32
parcelize-build-logic/src/main/kotlin/android-app-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
id("com.android.application") | ||
id("android-base-convention") | ||
id("kotlin-android") | ||
} | ||
|
||
android { | ||
dexOptions { | ||
javaMaxHeapSize = "2g" | ||
} | ||
|
||
buildTypes { | ||
getByName("release") { | ||
isMinifyEnabled = true | ||
proguardFiles(getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro") | ||
} | ||
getByName("debug") { | ||
isDebuggable = true | ||
applicationIdSuffix = ".debug" | ||
} | ||
} | ||
|
||
packagingOptions { | ||
exclude("META-INF/*.kotlin_module") | ||
exclude("META-INF/AL2.0") | ||
exclude("META-INF/LGPL2.1") | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
parcelize-build-logic/src/main/kotlin/android-base-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
import com.android.build.gradle.BaseExtension | ||
|
||
configure<BaseExtension> { | ||
compileSdkVersion(30) | ||
|
||
defaultConfig { | ||
minSdkVersion(16) | ||
targetSdkVersion(30) | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
parcelize-build-logic/src/main/kotlin/android-library-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
id("com.android.library") | ||
id("kotlin-android") | ||
id("android-base-convention") | ||
} | ||
|
||
android { | ||
sourceSets.all { java.srcDir("src/$name/kotlin") } | ||
} |
15 changes: 15 additions & 0 deletions
15
parcelize-build-logic/src/main/kotlin/android-publication-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
id("publication-convention") | ||
} | ||
|
||
afterEvaluate { | ||
publishing.publications { | ||
create("release", MavenPublication::class.java) { | ||
from(components.getByName("release")) | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
parcelize-build-logic/src/main/kotlin/detekt-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
id("io.gitlab.arturbosch.detekt") | ||
} | ||
|
||
detekt { | ||
input.setFrom("src/commonMain/kotlin", "src/androidMain/kotlin", "src/iosMain/kotlin", "src/main/kotlin") | ||
} | ||
|
||
dependencies { | ||
"detektPlugins"("io.gitlab.arturbosch.detekt:detekt-formatting:1.15.0") | ||
} |
16 changes: 16 additions & 0 deletions
16
parcelize-build-logic/src/main/kotlin/javadoc-stub-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
id("org.gradle.maven-publish") | ||
} | ||
|
||
val javadocJar by tasks.registering(Jar::class) { | ||
archiveClassifier.set("javadoc") | ||
} | ||
|
||
publishing.publications.withType<MavenPublication> { | ||
// Stub javadoc.jar artifact | ||
artifact(javadocJar.get()) | ||
} |
63 changes: 63 additions & 0 deletions
63
parcelize-build-logic/src/main/kotlin/multiplatform-library-convention.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* Copyright 2021 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
plugins { | ||
id("com.android.library") | ||
id("org.jetbrains.kotlin.multiplatform") | ||
id("android-base-convention") | ||
id("dev.icerock.mobile.multiplatform.android-manifest") | ||
} | ||
|
||
kotlin { | ||
android { | ||
publishLibraryVariants("release", "debug") | ||
} | ||
ios() | ||
macosX64("macOS") | ||
tvos() | ||
watchos() | ||
jvm() | ||
js(BOTH) { | ||
nodejs() | ||
browser() | ||
} | ||
linux() | ||
windows() | ||
wasm32() | ||
|
||
sourceSets { | ||
all { | ||
languageSettings.apply { | ||
useExperimentalAnnotation("kotlin.RequiresOptIn") | ||
} | ||
} | ||
|
||
val commonMain by getting | ||
|
||
val notAndroidMain by creating { | ||
dependsOn(commonMain) | ||
} | ||
|
||
val intermediateSourceSets = listOf(commonMain, notAndroidMain) | ||
matching { sourceSet -> | ||
!sourceSet.name.startsWith("android") && sourceSet !in intermediateSourceSets | ||
}.all { | ||
dependsOn(notAndroidMain) | ||
} | ||
} | ||
} | ||
|
||
fun org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.linux() { | ||
linuxArm64() | ||
linuxArm32Hfp() | ||
linuxMips32() | ||
linuxMipsel32() | ||
linuxX64() | ||
} | ||
|
||
fun org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension.windows() { | ||
mingwX64() | ||
mingwX86() | ||
} | ||
|
Oops, something went wrong.