"OneSignal Warning: Could not get AGP plugin version" warning still prints if this plugin is applied from an "apply from:" file.
This is the default way Cordova adds gradle scripts from plugins in the app/build.gradle.
"apply from:" requires a special case handling as the in an "apply from:" file the hosting file's classpath is not inherited. See https://github.com/gradle/gradle/issues/4007 for more details.
Issue
"OneSignal Warning: Could not get AGP plugin version" warning still prints if this plugin is applied from an "apply from:" file.
app/build.gradle
."apply from:" requires a special case handling as the in an "apply from:" file the hosting file's
classpath
is not inherited. See https://github.com/gradle/gradle/issues/4007 for more details.Fix
project.buildscript
can be inspected per this answer and this strategy was used in this PR: https://stackoverflow.com/a/18119304/1244574This change is![Reviewable](https://reviewable.io/review_button.svg)