This repository has been archived by the owner on Oct 31, 2022. It is now read-only.
AGP detection with Version.ANDROID_GRADLE_PLUGIN_VERSION #146
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
The follow error prints for some Android projects when it should not.
This was more common but didn't happen for all Cordova projects. See issues below:
https://github.com/OneSignal/OneSignal-Cordova-SDK/search?q=com.android.tools.build%3Agradle%3A3.0.0&type=issues
This wrong version detection was resulting in not only displaying this incorrect warning however setting
gradleV2PostAGPApplyFallback = true
which is an internal flag used from some fallback logic they may cause issues version rules not applying and resulting in not solving some mismatches as this plugin should.Changes
com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
is a more reliable way to detect the AGP version.NOTE: Change base to
master
afterupgrade/apg_4.1.1_and_gradle_6.7.1
is merged