Skip to content

Commit faf542e

Browse files
committed
Update build.gradle with note to not modify
Also update example project with missing build.gradle namespace.
1 parent a7799d5 commit faf542e

File tree

2 files changed

+15
-5
lines changed
  • OneSignalExample/Assets/Plugins/Android/OneSignalConfig.androidlib
  • com.onesignal.unity.android/Editor/OneSignalConfig.androidlib

2 files changed

+15
-5
lines changed
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
/*
2+
WARNING: Do NOT Modify! Changes will be overwritten by the OneSignal plugin.
3+
*/
4+
15
apply plugin: 'com.android.library'
26

37
android {
8+
namespace 'com.onesignal.onesignalsdk'
9+
410
sourceSets {
511
main {
612
manifest.srcFile 'AndroidManifest.xml'
@@ -9,16 +15,16 @@ android {
915

1016
def unityLib = project(':unityLibrary').extensions.getByName('android')
1117

12-
defaultConfig {
18+
defaultConfig {
1319
consumerProguardFiles "consumer-proguard.pro"
1420
minSdkVersion unityLib.defaultConfig.minSdkVersion.mApiLevel
1521
targetSdkVersion unityLib.defaultConfig.targetSdkVersion.mApiLevel
16-
}
22+
}
1723

1824
compileSdkVersion unityLib.compileSdkVersion
1925
buildToolsVersion unityLib.buildToolsVersion
2026

2127
lintOptions {
2228
abortOnError false
2329
}
24-
}
30+
}

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
WARNING: Do NOT Modify! Changes will be overwritten by the OneSignal plugin.
3+
*/
4+
15
apply plugin: 'com.android.library'
26

37
android {
@@ -11,11 +15,11 @@ android {
1115

1216
def unityLib = project(':unityLibrary').extensions.getByName('android')
1317

14-
defaultConfig {
18+
defaultConfig {
1519
consumerProguardFiles "consumer-proguard.pro"
1620
minSdkVersion unityLib.defaultConfig.minSdkVersion.mApiLevel
1721
targetSdkVersion unityLib.defaultConfig.targetSdkVersion.mApiLevel
18-
}
22+
}
1923

2024
compileSdkVersion unityLib.compileSdkVersion
2125
buildToolsVersion unityLib.buildToolsVersion

0 commit comments

Comments
 (0)