Bug 1838312 - Remove hardcoded compileSdkVersion, minSdkVersion and targetSdkVersion in Fenix and Focus

This removes the hardcoded compileSdkVersion, minSdkVersion and targetSdkVersion in Fenix and Focus
in favor of reading these SDK versions via our config from AC.
fenix/116.0
Gabriel Luong 1 year ago committed by mergify[bot]
parent dbdeed5082
commit 91d83cbc6b

@ -23,7 +23,7 @@ import static org.gradle.api.tasks.testing.TestResult.ResultType
apply from: 'benchmark.gradle'
android {
compileSdkVersion Config.compileSdkVersion
compileSdkVersion config.compileSdkVersion
project.maybeConfigForJetpackBenchmark(it)
if (project.hasProperty("testBuildType")) {
@ -34,8 +34,8 @@ android {
defaultConfig {
applicationId "org.mozilla"
minSdkVersion Config.minSdkVersion
targetSdkVersion Config.targetSdkVersion
minSdkVersion config.minSdkVersion
targetSdkVersion config.targetSdkVersion
versionCode 1
versionName Config.generateDebugVersionName()
vectorDrawables.useSupportLibrary = true

@ -9,7 +9,7 @@ plugins {
android {
namespace 'org.mozilla.fenix.benchmark'
compileSdk Config.compileSdkVersion
compileSdk config.compileSdkVersion
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
@ -22,7 +22,7 @@ android {
defaultConfig {
minSdk 23
targetSdk Config.targetSdkVersion
targetSdk config.targetSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

@ -11,10 +11,6 @@ import java.util.Date
import java.util.Locale
object Config {
// Synchronized build configuration for all modules
const val compileSdkVersion = 33
const val minSdkVersion = 21
const val targetSdkVersion = 33
@JvmStatic
private fun generateDebugVersionName(): String {

Loading…
Cancel
Save