From c3d523afc666a52a4716a78c7c378b519f2f218c Mon Sep 17 00:00:00 2001 From: mlykotom Date: Thu, 17 Nov 2022 13:15:39 +0100 Subject: [PATCH] Add release config to catalog to prevent AS complaining --- app-nia-catalog/build.gradle.kts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/app-nia-catalog/build.gradle.kts b/app-nia-catalog/build.gradle.kts index 898a66906..31d8e493c 100644 --- a/app-nia-catalog/build.gradle.kts +++ b/app-nia-catalog/build.gradle.kts @@ -21,6 +21,8 @@ plugins { android { defaultConfig { applicationId = "com.google.samples.apps.niacatalog" + versionCode = 1 + versionName = "0.0.1" // X.Y.Z; X = Major, Y = minor, Z = Patch level // The UI catalog does not depend on content from the app, however, it depends on modules // which do, so we must specify a default value for the contentType dimension. @@ -33,6 +35,15 @@ android { } } namespace = "com.google.samples.apps.niacatalog" + + buildTypes { + val release by getting { + // To publish on the Play store a private signing key is required, but to allow anyone + // who clones the code to sign and run the release variant, use the debug signing key. + // TODO: Abstract the signing configuration to a separate file to avoid hardcoding this. + signingConfig = signingConfigs.getByName("debug") + } + } } dependencies { @@ -41,4 +52,4 @@ dependencies { implementation(libs.androidx.activity.compose) implementation(libs.accompanist.flowlayout) -} \ No newline at end of file +}