|
|
|
@ -72,20 +72,6 @@ android {
|
|
|
|
|
"sharedUserId": "org.mozilla.fenix.performancetest.sharedID"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
fenixNightly releaseTemplate >> {
|
|
|
|
|
applicationIdSuffix ".fenix.nightly"
|
|
|
|
|
buildConfigField "boolean", "USE_RELEASE_VERSIONING", "true"
|
|
|
|
|
def deepLinkSchemeValue = "fenix-nightly"
|
|
|
|
|
buildConfigField "String", "DEEP_LINK_SCHEME", "\"$deepLinkSchemeValue\""
|
|
|
|
|
manifestPlaceholders = ["deepLinkScheme": deepLinkSchemeValue]
|
|
|
|
|
}
|
|
|
|
|
fenixBeta releaseTemplate >> {
|
|
|
|
|
applicationIdSuffix ".fenix.beta"
|
|
|
|
|
buildConfigField "boolean", "USE_RELEASE_VERSIONING", "true"
|
|
|
|
|
def deepLinkSchemeValue = "fenix-beta"
|
|
|
|
|
buildConfigField "String", "DEEP_LINK_SCHEME", "\"$deepLinkSchemeValue\""
|
|
|
|
|
manifestPlaceholders = ["deepLinkScheme": deepLinkSchemeValue]
|
|
|
|
|
}
|
|
|
|
|
fenixProduction releaseTemplate >> {
|
|
|
|
|
applicationIdSuffix ".fenix"
|
|
|
|
|
buildConfigField "boolean", "USE_RELEASE_VERSIONING", "true"
|
|
|
|
@ -127,23 +113,6 @@ android {
|
|
|
|
|
"deepLinkScheme": deepLinkSchemeValue
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
fennecNightly releaseTemplate >> {
|
|
|
|
|
buildConfigField "boolean", "USE_RELEASE_VERSIONING", "true"
|
|
|
|
|
applicationIdSuffix ".fennec_aurora"
|
|
|
|
|
def deepLinkSchemeValue = "fenix-nightly"
|
|
|
|
|
buildConfigField "String", "DEEP_LINK_SCHEME", "\"$deepLinkSchemeValue\""
|
|
|
|
|
manifestPlaceholders = [
|
|
|
|
|
// This release type is meant to replace Firefox (Release channel) and therefore needs to inherit
|
|
|
|
|
// its sharedUserId for all eternity. See:
|
|
|
|
|
// https://searchfox.org/mozilla-central/search?q=moz_android_shared_id&case=false®exp=false&path=
|
|
|
|
|
// Shipping an app update without sharedUserId can have
|
|
|
|
|
// fatal consequences. For example see:
|
|
|
|
|
// - https://issuetracker.google.com/issues/36924841
|
|
|
|
|
// - https://issuetracker.google.com/issues/36905922
|
|
|
|
|
"sharedUserId": "org.mozilla.fennec.sharedID",
|
|
|
|
|
"deepLinkScheme": deepLinkSchemeValue
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
variantFilter { // There's a "release" build type that exists by default that we don't use (it's replaced by "nightly" and "beta")
|
|
|
|
@ -157,19 +126,12 @@ android {
|
|
|
|
|
// |--------------------|---------------|-----------|
|
|
|
|
|
// | debug | ✅ | ✅ | Both variants for testing and development.
|
|
|
|
|
// | forPerformanceTest | ✅ | ✅ | Both variants unless the perf team only cares about Nightly (TBD).
|
|
|
|
|
// | fenixNightly | ✅ | ✅ | Built with both, but only the "geckoNightly" one is published to Google Play
|
|
|
|
|
// | fenixBeta | ❌ | ✅ | Fenix Beta ships with GV Beta
|
|
|
|
|
// | fenixProduction | ❌ | ✅ | Fenix Production ships with GV Beta
|
|
|
|
|
// | fenixProduction | ✅ | ❌ | Fenix Production (to be renamed `Nightly`) ships with GV Nightly
|
|
|
|
|
// | fennecProduction | ❌ | ✅ | Fenix build to replace production Firefox builds
|
|
|
|
|
// | fennecBeta | ❌ | ✅ | Fenix build to replace beta Firefox builds
|
|
|
|
|
// | fennecNightly | ✅ | ❌ | Fenix build to replace Nightly Firefox builds
|
|
|
|
|
|
|
|
|
|
def flavors = flavors*.name.toString().toLowerCase()
|
|
|
|
|
|
|
|
|
|
if (buildType.name == 'fenixBeta' && flavors.contains("geckonightly")) {
|
|
|
|
|
setIgnore true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (buildType.name == 'fenixProduction' && flavors.contains("geckobeta")) {
|
|
|
|
|
setIgnore true
|
|
|
|
|
}
|
|
|
|
@ -177,10 +139,6 @@ android {
|
|
|
|
|
if ((buildType.name == 'fennecProduction' || buildType.name == 'fennecBeta') && flavors.contains("geckonightly")) {
|
|
|
|
|
setIgnore true
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (buildType.name == 'fennecNightly' && flavors.contains("geckobeta")) {
|
|
|
|
|
setIgnore true
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
aaptOptions {
|
|
|
|
@ -207,10 +165,6 @@ android {
|
|
|
|
|
androidTest {
|
|
|
|
|
resources.srcDirs += ['src/androidTest/resources']
|
|
|
|
|
}
|
|
|
|
|
fennecNightly {
|
|
|
|
|
java.srcDirs = ['src/migration/java']
|
|
|
|
|
manifest.srcFile "src/migration/AndroidManifest.xml"
|
|
|
|
|
}
|
|
|
|
|
fennecBeta {
|
|
|
|
|
java.srcDirs = ['src/migration/java']
|
|
|
|
|
manifest.srcFile "src/migration/AndroidManifest.xml"
|
|
|
|
|