diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-05-19 12:53:59 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-19 07:23:59 +0000 |
commit | 37b80d5d1930d9847573520ba335b1af6bbb0eee (patch) | |
tree | 77a67255f3c3e401304c4c63fc18f7987bfb1342 /build-logic/android-plugins/src | |
parent | 75d980e9eb95c0f8730b4f1c28da964810b7d777 (diff) |
Upgrade to AGP 7.2.0 (#1920)
Diffstat (limited to 'build-logic/android-plugins/src')
2 files changed, 16 insertions, 0 deletions
diff --git a/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.android-application.gradle.kts b/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.android-application.gradle.kts index e56d400b..509cc96d 100644 --- a/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.android-application.gradle.kts +++ b/build-logic/android-plugins/src/main/kotlin/com.github.android-password-store.android-application.gradle.kts @@ -7,6 +7,7 @@ import flavors.FlavorDimensions import flavors.ProductFlavors import signing.configureBuildSigning +import snapshot.SnapshotExtension plugins { id("com.android.application") @@ -64,3 +65,8 @@ android { project.configureBuildSigning() } + +dependencies { + extensions.add("snapshot", SnapshotExtension::class.java) + the<SnapshotExtension>().snapshot = isSnapshot() +} diff --git a/build-logic/android-plugins/src/main/kotlin/snapshot/SnapshotExtension.kt b/build-logic/android-plugins/src/main/kotlin/snapshot/SnapshotExtension.kt new file mode 100644 index 00000000..80a352a5 --- /dev/null +++ b/build-logic/android-plugins/src/main/kotlin/snapshot/SnapshotExtension.kt @@ -0,0 +1,10 @@ +/* + * Copyright © 2014-2021 The Android Password Store Authors. All Rights Reserved. + * SPDX-License-Identifier: GPL-3.0-only + */ + +package snapshot + +abstract class SnapshotExtension { + abstract var snapshot: Boolean +} |