Skip to content

Commit

Permalink
Add sign method to ui-guides module
Browse files Browse the repository at this point in the history
  • Loading branch information
JcMinarro committed Dec 18, 2024
1 parent 93ba216 commit 40d9dbf
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion stream-chat-android-ui-guides/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import io.getstream.chat.android.Dependencies
import io.getstream.chat.android.Versions

plugins {
id 'com.android.application'
Expand All @@ -18,6 +17,36 @@ android {
versionName sampleAppVersionName
}

File signFile = rootProject.file('.sign/keystore.properties')
if (signFile.exists()) {
Properties properties = new Properties()
properties.load(new FileInputStream(signFile))
signingConfigs {
release {
storeFile rootProject.file(properties['keystore'])
storePassword properties['storePassword']
keyAlias properties['keyAlias']
keyPassword properties['keyPassword']
}
}
} else {
signingConfigs {
release {
storeFile rootProject.file('.sign/debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}
}
}

signingConfigs.debug {
storeFile rootProject.file('.sign/debug.keystore')
storePassword 'android'
keyAlias 'androiddebugkey'
keyPassword 'android'
}

buildTypes {
release {
minifyEnabled false
Expand Down

0 comments on commit 40d9dbf

Please sign in to comment.