Skip to content

Commit 7cb718c

Browse files
committed
use local sdk source for the dev env
placed this in the settings.gradle file so this is defined next to where the example app is being included. This is done in this way so the example project can stay independent and as close to a real world setup as possible.
1 parent 23473ea commit 7cb718c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

OneSignalSDK/settings.gradle

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
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+
}

0 commit comments

Comments
 (0)