File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Examples/OneSignalDemo/app Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
- apply plugin : ' com.onesignal.androidsdk.onesignal-gradle-plugin'
2
1
apply plugin : ' com.android.application'
3
2
4
3
android {
@@ -46,6 +45,7 @@ android {
46
45
task flavorSelection() {
47
46
if (getGradle(). getStartParameter(). getTaskRequests(). toString(). contains(" Gms" )) {
48
47
apply plugin : ' com.google.gms.google-services'
48
+ googleServices { disableVersionCheck = true }
49
49
} else {
50
50
apply plugin : ' com.huawei.agconnect'
51
51
}
Original file line number Diff line number Diff line change 1
1
include ' :app' , ' :onesignal' , ' :unittest'
2
- project(' :app' ). projectDir = new File (settingsDir, ' ../examples/OneSignalDemo/app' )
2
+ project(' :app' ). projectDir = new File (settingsDir, ' ../examples/OneSignalDemo/app' )
3
+
4
+ // Allows running the :app project above with the local source for development of the SDK.
5
+ // This means we can keep the example app as-is so it stays as a real world example.
6
+ gradle. rootProject {
7
+ allprojects {
8
+ configurations. all {
9
+ resolutionStrategy. dependencySubstitution {
10
+ substitute(module(' com.onesignal:OneSignal' )). using(project(' :onesignal' ))
11
+ }
12
+ }
13
+ }
14
+ }
You can’t perform that action at this time.
0 commit comments