Skip to content

Instantly share code, notes, and snippets.

@GuilhE
Last active Sep 4, 2021
Embed
What would you like to do?
Gradle configurations to be used with bitbucket-pipelines.yml or firebaseLocalDistribution.sh
import com.android.build.gradle.internal.dsl.SigningConfig
import java.io.FileInputStream
import java.util.*
buildTypes {
getByName("release") {
//...
if (File("signing.properties").exists()) {
signingConfig = SigningConfig("firebaseDistribution").apply {
val prop = Properties().apply { load(FileInputStream(File("signing.properties"))) }
storeFile = File(prop.getProperty("keystorePath"))
storePassword = prop.getProperty("keystorePassword")
keyAlias = prop.getProperty("keyAlias")
keyPassword = prop.getProperty("keyPassword")
}
firebaseAppDistribution {
if (File("releasenotes.txt").exists()) {
releaseNotesFile = "releasenotes.txt"
}
groups = "testers"
}
}
}
}
@GuilhE

This comment has been minimized.

Copy link
Owner Author

@GuilhE GuilhE commented Feb 4, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment