Skip to content

Commit 28ad7d4

Browse files
authored
Merge pull request #825 from OneSignal/user_model/feature/agp-8
[user model] Added the namespace property in build.gradle
2 parents 7d0b84d + c000a0c commit 28ad7d4

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)