Switch from happo to bitrise git branch (#1099)
diff --git a/LottieSample/build.gradle b/LottieSample/build.gradle
index bc812ea..73e83bf 100644
--- a/LottieSample/build.gradle
+++ b/LottieSample/build.gradle
@@ -21,7 +21,7 @@
buildConfigField("String", "S3SecretKey", "\"" + System.getenv("LOTTIE_S3_SECRET_KEY") + "\"")
buildConfigField("String", "HappoApiKey", "\"" + System.getenv("LOTTIE_HAPPO_API_KEY") + "\"")
buildConfigField("String", "HappoSecretKey", "\"" + System.getenv("LOTTIE_HAPPO_SECRET_KEY") + "\"")
- buildConfigField("String", "TRAVIS_GIT_BRANCH", "\"" + System.getenv("TRAVIS_GIT_BRANCH") + "\"")
+ buildConfigField("String", "BITRISE_GIT_BRANCH", "\"" + System.getenv("BITRISE_GIT_BRANCH") + "\"")
buildConfigField("String", "GIT_SHA", "\"" + gitSha + "\"")
buildConfigField("String", "GIT_BRANCH", "\"" + gitBranch + "\"")
}
diff --git a/LottieSample/src/androidTest/java/com/airbnb/lottie/HappoSnapshotter.kt b/LottieSample/src/androidTest/java/com/airbnb/lottie/HappoSnapshotter.kt
index 669c838..326c114 100644
--- a/LottieSample/src/androidTest/java/com/airbnb/lottie/HappoSnapshotter.kt
+++ b/LottieSample/src/androidTest/java/com/airbnb/lottie/HappoSnapshotter.kt
@@ -49,7 +49,7 @@
private val bucket = "lottie-happo"
private val happoApiKey = BC.HappoApiKey
private val happoSecretKey = BC.HappoSecretKey
- private val gitBranch = URLEncoder.encode((if (BC.TRAVIS_GIT_BRANCH == "null") BC.GIT_BRANCH else BC.TRAVIS_GIT_BRANCH).replace("/", "_"), "UTF-8")
+ private val gitBranch = URLEncoder.encode((if (BC.BITRISE_GIT_BRANCH == "null") BC.GIT_BRANCH else BC.BITRISE_GIT_BRANCH).replace("/", "_"), "UTF-8")
private val androidVersion = "android${Build.VERSION.SDK_INT}"
private val reportNames = listOfNotNull(
"${BC.GIT_SHA}-$androidVersion",