@@ -21,21 +21,23 @@ plugins {
2121def config = new Yaml (). load(new File (" config.yaml" ). newInputStream())
2222
2323android {
24- compileSdk 33
24+ compileSdk 34
2525
2626 defaultConfig {
2727 minSdk 24
28- targetSdk 33
28+ targetSdk 34
2929
3030 testInstrumentationRunner " androidx.test.runner.AndroidJUnitRunner"
3131 consumerProguardFiles " consumer-rules.pro"
3232 }
3333
3434 namespace ' org.openedx.core'
3535
36- flavorDimensions " tier "
36+ flavorDimensions + = " env "
3737 productFlavors {
3838 prod {
39+ dimension ' env'
40+
3941 def envMap = config. environments. find { it. key == " PROD" }
4042 def clientId = envMap. value. OAUTH_CLIENT_ID
4143 def envUrls = envMap. value. URLS
@@ -55,6 +57,8 @@ android {
5557 resValue " string" , " feedback_email_address" , envUrls. FEEDBACK_EMAIL_ADDRESS
5658 }
5759 develop {
60+ dimension ' env'
61+
5862 def envMap = config. environments. find { it. key == " DEV" }
5963 def clientId = envMap. value. OAUTH_CLIENT_ID
6064 def envUrls = envMap. value. URLS
@@ -74,6 +78,8 @@ android {
7478 resValue " string" , " feedback_email_address" , envUrls. FEEDBACK_EMAIL_ADDRESS
7579 }
7680 stage {
81+ dimension ' env'
82+
7783 def envMap = config. environments. find { it. key == " STAGE" }
7884 def clientId = envMap. value. OAUTH_CLIENT_ID
7985 def envUrls = envMap. value. URLS
@@ -101,11 +107,11 @@ android {
101107 }
102108 }
103109 compileOptions {
104- sourceCompatibility JavaVersion . VERSION_11
105- targetCompatibility JavaVersion . VERSION_11
110+ sourceCompatibility JavaVersion . VERSION_17
111+ targetCompatibility JavaVersion . VERSION_17
106112 }
107113 kotlinOptions {
108- jvmTarget = JavaVersion . VERSION_11
114+ jvmTarget = JavaVersion . VERSION_17
109115 }
110116
111117 buildFeatures {
@@ -176,8 +182,8 @@ dependencies {
176182 api " com.google.firebase:firebase-analytics-ktx"
177183
178184 testImplementation ' junit:junit:4.13.2'
179- androidTestImplementation ' androidx.test.ext:junit:1.1.3 '
180- androidTestImplementation ' androidx.test.espresso:espresso-core:3.4.0 '
185+ androidTestImplementation ' androidx.test.ext:junit:1.1.5 '
186+ androidTestImplementation ' androidx.test.espresso:espresso-core:3.5.1 '
181187}
182188
183189class FirebaseConfig {
0 commit comments