buildSrc/src/main/kotlin/android-signing.gradle.kts
changeset 1 831cffa9c991
child 10 9aad34f43f71
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/buildSrc/src/main/kotlin/android-signing.gradle.kts	Fri May 08 21:33:19 2020 -0400
@@ -0,0 +1,13 @@
+package com.geekorum.build
+
+/**
+ * Define the following properties to set the signing configuration for release build
+ *    - RELEASE_STORE_FILE : Path to the keystore file
+ *    - RELEASE_STORE_PASSWORD: Password of the keystore file
+ *    - RELEASE_KEY_ALIAS: key alias to use to sign
+ *    - RELEASE_KEY_PASSWORD: password of the key alias
+ */
+
+if (findProperty("RELEASE_STORE_FILE") != null) {
+    configureReleaseSigningConfig()
+}