Skip to content

Commit 0d4efd7

Browse files
committed
chore: add namespace configuration for AGP compatibility
1 parent 9bbea21 commit 0d4efd7

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

test_shard/fake_test_app/android/app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ if (flutterVersionName == null) {
2727
}
2828

2929
android {
30+
// Conditional for compatibility with AGP <4.2.
31+
if (project.android.hasProperty("namespace")) {
32+
namespace 'com.example.fake_test_app'
33+
}
3034
compileSdkVersion flutter.compileSdkVersion
3135

3236
compileOptions {

test_shard/integration_test_app/android/app/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ if (flutterVersionName == null) {
2727
}
2828

2929
android {
30+
// Conditional for compatibility with AGP <4.2.
31+
if (project.android.hasProperty("namespace")) {
32+
namespace 'io.agora.integration_test_app.integration_test_app'
33+
}
3034
compileSdkVersion 34
3135

3236
compileOptions {

test_shard/iris_tester/android/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ apply plugin: 'com.android.library'
2626
apply plugin: 'kotlin-android'
2727

2828
android {
29+
if (project.android.hasProperty("namespace")) {
30+
namespace 'com.example.iris_tester'
31+
}
2932
compileSdkVersion 34
3033

3134
compileOptions {

test_shard/rendering_test/android/app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ if (flutterVersionName == null) {
2727
}
2828

2929
android {
30+
// Conditional for compatibility with AGP <4.2.
31+
if (project.android.hasProperty("namespace")) {
32+
namespace 'com.example.rendering_test'
33+
}
34+
3035
compileSdkVersion flutter.compileSdkVersion
3136
ndkVersion flutter.ndkVersion
3237

0 commit comments

Comments
 (0)