This Gradle plugin helps make the Plexus Messaging SDK compatible with your Android Studio / Gradle project. It automatically fixes and notifies you of required changes to make the Plexus Messaging SDK compatible with your app.
- In your root
build.gradle, underbuildscript, add the following 2 new lines to your existingrepositoriesanddependenciessections
buildscript {
repositories {
// ...
maven { url 'https://plugins.gradle.org/m2/' } // Gradle Plugin Portal
}
dependencies {
// ...
// Plexus-Gradle-Plugin
classpath 'gradle.plugin.com.plexus.gradle.plexus-gradle-plugin:1.0'
}
}- Add the following to the top of your
app/build.gradle
apply plugin: 'com.plexus.gradle.plexus-gradle-plugin'- Android Studio - Sync gradle
- Clean and rebuild
- Automatically aligns versions of module dependencies under the same group. This fixes compile and runtime errors due to mismatched interdependencies.
Applies to the following libraries:
com.google.android.gmscom.google.firebasecom.android.support
- Ensures
com.android.supportis never higher thancompileSdkVersion - Ensures a compatible Plexus Messaging SDK version for the
targetSdkVersionyou're using - Ensures new enough Plexus Messaging SDK is included when
com.android.supportis upgraded - Calculates intersecting range of 2 version ranges
- Including backwards capability with Gradle 2.14.1
- Future: Other warnings and checks specific to OneSignal such as app_id and notification icons
- Recommend using AGP 3.0.0 or newer (Android Gradle Plugin) and Gradle 4.1 or newer.
- Compatible with Gradle 2.14.1+ and AGP 2.2.3+
- Tested up to Gradle 6.7.1 and AGP 4.1.1