Skip to content

Commit d253d42

Browse files
authored
Fix Unity 6 Android compatibility with gradle
Newer versions of Gradle require 'namespace' to be defined in the build.gradle. Such as the one that ships with Unity 6. Confirmed this change works with Unity 6.0.42f1 and is still compatible with the Unity's oldest LTS, 2021.3.45f1.
1 parent f2e8ea5 commit d253d42

File tree

1 file changed

+3
-1
lines changed
  • com.onesignal.unity.android/Editor/OneSignalConfig.androidlib

1 file changed

+3
-1
lines changed

com.onesignal.unity.android/Editor/OneSignalConfig.androidlib/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
apply plugin: 'com.android.library'
22

33
android {
4+
namespace 'com.onesignal.onesignalsdk'
5+
46
sourceSets {
57
main {
68
manifest.srcFile 'AndroidManifest.xml'
@@ -21,4 +23,4 @@ android {
2123
lintOptions {
2224
abortOnError false
2325
}
24-
}
26+
}

0 commit comments

Comments
 (0)