Skip to content

Commit c8e3cdb

Browse files
committed
Google and Huawei builds into their own sections
1 parent fa2c39e commit c8e3cdb

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Examples/OneSignalDemo/app/build.gradle

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,22 @@ dependencies {
6363
implementation 'com.google.android.gms:play-services-location:18.0.0'
6464

6565
implementation 'com.github.bumptech.glide:glide:4.12.0'
66-
// Test public release OneSignal SDK
67-
// This will not work until 4.0.0 is publicly released because of manifest placeholders causing
68-
// manifest merger conflicts
69-
// implementation 'com.onesignal:OneSignal:3.12.6'
7066

67+
/** START - Google Play Builds **/
7168
gmsImplementation('com.onesignal:OneSignal:4.6.3')
69+
/** END - Google Play Builds **/
7270

73-
huaweiImplementation 'com.huawei.hms:push:5.3.0.304'
74-
huaweiImplementation 'com.huawei.hms:location:4.0.0.300'
71+
/** START - Huawei Builds **/
7572
// Omit Google / Firebase libraries for Huawei builds.
7673
huaweiImplementation('com.onesignal:OneSignal:4.6.3') {
7774
exclude group: 'com.google.android.gms', module: 'play-services-gcm'
7875
exclude group: 'com.google.android.gms', module: 'play-services-analytics'
7976
exclude group: 'com.google.android.gms', module: 'play-services-location'
8077
exclude group: 'com.google.firebase', module: 'firebase-messaging'
8178
}
82-
}
79+
// Add HMS Push library
80+
huaweiImplementation 'com.huawei.hms:push:5.3.0.304'
81+
// Optionally add HMS location
82+
huaweiImplementation 'com.huawei.hms:location:4.0.0.300'
83+
/** END - Huawei Builds **/
84+
}

0 commit comments

Comments
 (0)