Committed by
GitHub
Add compatibility with Android Gradle Plugin 8.0 #1353 (#1359)
* Adds a namespace for compatibility with AGP 8.0. * Adds a android namespace for demo app
Showing
2 changed files
with
5 additions
and
0 deletions
@@ -26,6 +26,7 @@ apply plugin: 'kotlin-android' | @@ -26,6 +26,7 @@ apply plugin: 'kotlin-android' | ||
26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" | 26 | apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle" |
27 | 27 | ||
28 | android { | 28 | android { |
29 | + namespace 'net.nfet.printing_demo' | ||
29 | compileSdkVersion flutter.compileSdkVersion | 30 | compileSdkVersion flutter.compileSdkVersion |
30 | ndkVersion flutter.ndkVersion | 31 | ndkVersion flutter.ndkVersion |
31 | 32 |
@@ -22,6 +22,10 @@ rootProject.allprojects { | @@ -22,6 +22,10 @@ rootProject.allprojects { | ||
22 | apply plugin: 'com.android.library' | 22 | apply plugin: 'com.android.library' |
23 | 23 | ||
24 | android { | 24 | android { |
25 | + // Conditional for compatibility with AGP <4.2. | ||
26 | + if (project.android.hasProperty("namespace")) { | ||
27 | + namespace 'net.nfet.flutter.printing' | ||
28 | + } | ||
25 | compileSdkVersion 30 | 29 | compileSdkVersion 30 |
26 | 30 | ||
27 | compileOptions { | 31 | compileOptions { |
-
Please register or login to post a comment