summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/build.gradle.kts25
-rw-r--r--autofill-parser/build.gradle.kts8
-rw-r--r--build.gradle.kts4
-rw-r--r--openpgp-ktx/build.gradle.kts6
4 files changed, 24 insertions, 19 deletions
diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index 6220d4f7..855f1189 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -5,14 +5,12 @@
import com.android.build.gradle.internal.api.BaseVariantOutputImpl
plugins {
- id("com.android.application")
- kotlin("android")
- kotlin("kapt")
+ id("com.github.android-password-store.android-application")
+ id("com.github.android-password-store.crowdin-plugin")
+ id("com.github.android-password-store.kotlin-android")
+ id("com.github.android-password-store.kotlin-kapt")
+ id("com.github.android-password-store.versioning-plugin")
id("dagger.hilt.android.plugin")
- id("com.github.android-password-store.kotlin-common")
- `versioning-plugin`
- `aps-plugin`
- `crowdin-plugin`
}
repositories {
@@ -31,7 +29,18 @@ repositories {
}
}
-configure<CrowdinExtension> { projectName = "android-password-store" }
+configure<crowdin.CrowdinExtension> {
+ projectName = "android-password-store"
+ skipCleanup = false
+}
+
+fun isSnapshot(): Boolean {
+ with(project.providers) {
+ val workflow = environmentVariable("GITHUB_WORKFLOW").forUseAtConfigurationTime()
+ val snapshot = environmentVariable("SNAPSHOT").forUseAtConfigurationTime()
+ return workflow.isPresent || snapshot.isPresent
+ }
+}
android {
if (isSnapshot()) {
diff --git a/autofill-parser/build.gradle.kts b/autofill-parser/build.gradle.kts
index 0aabd881..fea86ce6 100644
--- a/autofill-parser/build.gradle.kts
+++ b/autofill-parser/build.gradle.kts
@@ -4,13 +4,11 @@
*/
plugins {
- id("com.android.library")
+ id("com.github.android-password-store.android-library")
+ id("com.github.android-password-store.kotlin-android")
id("com.vanniktech.maven.publish")
- kotlin("android")
id("org.jetbrains.dokka")
- id("com.github.android-password-store.kotlin-common")
- `aps-plugin`
- `psl-plugin`
+ id("com.github.android-password-store.psl-plugin")
}
android {
diff --git a/build.gradle.kts b/build.gradle.kts
index 38c846cb..7b375b6b 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -3,9 +3,9 @@
* SPDX-License-Identifier: GPL-3.0-only
*/
plugins {
+ id("com.github.android-password-store.kotlin-common")
id("com.github.android-password-store.binary-compatibility")
- id("com.github.android-password-store.gradle")
id("com.github.android-password-store.git-hooks")
- id("com.github.android-password-store.kotlin-common")
+ id("com.github.android-password-store.gradle")
id("com.github.android-password-store.spotless")
}
diff --git a/openpgp-ktx/build.gradle.kts b/openpgp-ktx/build.gradle.kts
index e0e4bf64..b2c25c94 100644
--- a/openpgp-ktx/build.gradle.kts
+++ b/openpgp-ktx/build.gradle.kts
@@ -4,12 +4,10 @@
*/
plugins {
- id("com.android.library")
+ id("com.github.android-password-store.android-library")
+ id("com.github.android-password-store.kotlin-android")
id("com.vanniktech.maven.publish")
- kotlin("android")
id("org.jetbrains.dokka")
- id("com.github.android-password-store.kotlin-common")
- `aps-plugin`
}
android {