This Gradle plugin helps make the OneSignal Android SDK compatible with your Android Studio / Gradle project. It automatically fixes and notifies you of required changes to make the OneSignal SDK compatible with your app.
build.gradle
, under buildscript
, add the following 2 new lines to your existing repositories
and dependencies
sectionsbuildscript {
repositories {
// ...
gradlePluginPortal()
}
dependencies {
// ...
// OneSignal-Gradle-Plugin
classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.14.0, 0.99.99]'
}
}
app/build.gradle
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
com.google.android.gms
com.google.firebase
com.android.support
com.android.support
is never higher than compileSdkVersion
targetSdkVersion
you're usingcom.android.support
is upgradedSee this repository's release tags for a complete change log.
Please create a new issue on this repository's Github issue tracker for feature requests and bug reports related specifically to this plugin. For other OneSignal issues not related to this plugin please contact OneSignal support from the OneSignal.com dashboard.
You can add --info
to ./gradlew
commands such as ./gradlew app:dependencies --info
to see log entries of version overrides being applied.
Pull requests are welcome! Please fork, create a new branch, and open a pull request. Also please add a test to MainTest.groovy
verify your changes.