Skip to content

Commit

Permalink
conditionally add namespace for AGP 8 support.
Browse files Browse the repository at this point in the history
  • Loading branch information
hpoul committed Aug 20, 2023
1 parent 634354e commit 0434a60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ rootProject.allprojects {
apply plugin: 'com.android.library'

android {
// Conditional for compatibility with AGP <4.2.
if (project.android.hasProperty("namespace")) {
namespace 'com.markosyan.flutter_zxing'
}
compileSdkVersion 31

externalNativeBuild {
Expand Down

0 comments on commit 0434a60

Please sign in to comment.