Skip to content

Commit 8f00a35

Browse files
authored
Merge pull request #765 from Marco4763/feature/agp-8
Added the namespace property in build.gradle if the field is necessary.
2 parents b2297a4 + 252dda2 commit 8f00a35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

android/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ apply plugin: 'com.android.library'
2323

2424
android {
2525
compileSdkVersion 28
26+
// Condition for namespace compatibility in AGP <4.2
27+
if (project.android.hasProperty("namespace")) {
28+
namespace 'com.onesignal.flutter'
29+
}
2630

2731
defaultConfig {
2832
minSdkVersion 16

0 commit comments

Comments
 (0)