-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…-gradle-0.7.2 #41 update to kotlin 1.5.10 and gradle 0.7.2
- Loading branch information
Showing
25 changed files
with
300 additions
and
290 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,109 +2,21 @@ | |
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license. | ||
*/ | ||
|
||
import java.util.Base64 | ||
|
||
allprojects { | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
google() | ||
|
||
jcenter { | ||
content { | ||
includeGroup("org.jetbrains.trove4j") | ||
} | ||
} | ||
gradlePluginPortal() | ||
} | ||
|
||
plugins.withId(Deps.Plugins.androidLibrary.id) { | ||
configure<com.android.build.gradle.LibraryExtension> { | ||
compileSdkVersion(Deps.Android.compileSdk) | ||
|
||
defaultConfig { | ||
minSdkVersion(Deps.Android.minSdk) | ||
targetSdkVersion(Deps.Android.targetSdk) | ||
} | ||
} | ||
dependencies { | ||
classpath(":permissions-build-logic") | ||
} | ||
} | ||
|
||
plugins.withId(Deps.Plugins.mavenPublish.id) { | ||
allprojects { | ||
plugins.withId("org.gradle.maven-publish") { | ||
group = "dev.icerock.moko" | ||
version = Deps.mokoPermissionsVersion | ||
|
||
val javadocJar by tasks.registering(Jar::class) { | ||
archiveClassifier.set("javadoc") | ||
} | ||
|
||
configure<PublishingExtension> { | ||
repositories.maven("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
name = "OSSRH" | ||
|
||
credentials { | ||
username = System.getenv("OSSRH_USER") | ||
password = System.getenv("OSSRH_KEY") | ||
} | ||
} | ||
|
||
publications.withType<MavenPublication> { | ||
// Stub javadoc.jar artifact | ||
artifact(javadocJar.get()) | ||
|
||
// Provide artifacts information requited by Maven Central | ||
pom { | ||
name.set("MOKO permissions") | ||
description.set("Runtime permissions controls for mobile (android & ios) Kotlin Multiplatform development") | ||
url.set("https://github.com/icerockdev/moko-permissions") | ||
licenses { | ||
license { | ||
url.set("https://github.com/icerockdev/moko-permissions/blob/master/LICENSE.md") | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("Alex009") | ||
name.set("Aleksey Mikhailov") | ||
email.set("[email protected]") | ||
} | ||
developer { | ||
id.set("Tetraquark") | ||
name.set("Vladislav Areshkin") | ||
email.set("[email protected]") | ||
} | ||
developer { | ||
id.set("kovalandrew") | ||
name.set("Andrew Kovalev") | ||
email.set("[email protected]") | ||
} | ||
developer { | ||
id.set("RezMike") | ||
name.set("Mikhail Reznichenko") | ||
email.set("[email protected]") | ||
} | ||
} | ||
|
||
scm { | ||
connection.set("scm:git:ssh://github.com/icerockdev/moko-permissions.git") | ||
developerConnection.set("scm:git:ssh://github.com/icerockdev/moko-permissions.git") | ||
url.set("https://github.com/icerockdev/moko-permissions") | ||
} | ||
} | ||
} | ||
|
||
apply(plugin = Deps.Plugins.signing.id) | ||
|
||
configure<SigningExtension> { | ||
val signingKeyId: String? = System.getenv("SIGNING_KEY_ID") | ||
val signingPassword: String? = System.getenv("SIGNING_PASSWORD") | ||
val signingKey: String? = System.getenv("SIGNING_KEY")?.let { base64Key -> | ||
String(Base64.getDecoder().decode(base64Key)) | ||
} | ||
if (signingKeyId != null) { | ||
useInMemoryPgpKeys(signingKeyId, signingKey, signingPassword) | ||
sign(publications) | ||
} | ||
} | ||
} | ||
version = libs.versions.mokoPermissionsVersion.get() | ||
} | ||
} | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,19 @@ | ||
[versions] | ||
kotlinVersion = "1.5.20" | ||
androidAppCompatVersion = "1.2.0" | ||
materialDesignVersion = "1.0.0" | ||
androidLifecycleVersion = "2.1.0" | ||
androidCoreTestingVersion = "2.1.0" | ||
coroutinesVersion = "1.5.0-native-mt" | ||
mokoMvvmVersion = "0.11.0" | ||
mokoPermissionsVersion = "0.10.0" | ||
|
||
[libraries] | ||
appCompat = { module = "androidx.appcompat:appcompat", version.ref = "androidAppCompatVersion" } | ||
material = { module = "com.google.android.material:material", version.ref = "materialDesignVersion" } | ||
lifecycle = { module = "androidx.lifecycle:lifecycle-extensions", version.ref = "androidLifecycleVersion" } | ||
coroutines = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutinesVersion" } | ||
mokoMvvmCore = { module = "dev.icerock.moko:mvvm-core", version.ref = "mokoMvvmVersion" } | ||
mokoMvvmTest = { module = "dev.icerock.moko:mvvm-test", version.ref = "mokoMvvmVersion" } | ||
kotlinTestJUnit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlinVersion" } | ||
androidCoreTesting = { module = "androidx.arch.core:core-testing", version.ref = "androidCoreTestingVersion" } |
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,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 |
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
permissions-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
permissions-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) | ||
} | ||
} |
Oops, something went wrong.