-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GH-485: (android) Replace deprecated "compile" with "implementation" #486
Conversation
Codecov Report
@@ Coverage Diff @@
## 7.1.x #486 +/- ##
=======================================
Coverage 44.24% 44.24%
=======================================
Files 17 17
Lines 1695 1695
Branches 312 312
=======================================
Hits 750 750
Misses 945 945
Continue to review full report at Codecov.
|
Doesn't Android Studio complain now when one opens a project? Does it complain about these two files? I would say they could be changed as well - but I don't know too much about Android ;) |
Initial Questions
OverviewThe later Android Studio should not complain.
Final Question
In most cases, With this in mind, is there any concern for merging this PR or should we improve to support identify the type. |
(I have no idea @erisu - best create an issue with label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As for the changes itself, OK with this PR change.
I suspect you will also make a separate PR for the master
branch as well?
I noticed this is targeting 7.1.x
.
Additionally, want to point out that the master branch does not have GradleBuilder.js
and StudioBuilder.js
anymore. It had been refactored and consolidated into ProjectBuilder.js
@knight9999 and @dpogue do you have and other feedback or concerns with this PR?
Oh, we should then probably change the target to |
I would also agree that cherry picking is the typical and preferred way, but the files being modifying does not exist in master anymore. Also, the file that would need to be modified in master, to be equivalent to this change, is new and does not exist in 7.1.x. In this case, I don't really think cherry picking will work... Correct me if I am wrong... |
Nope, then I agree. Can you point @jedrivisser to the correct file so they can create another PR for that file? |
Sure, the file and line number in master: |
So... I assume I need to create a new pull request? because I cannot change the Changes are available here: |
ah, nevermind, I found a way, should be ready now |
Platforms affected
android
What does this PR do?
generates gradle dependencies in the
build.gradle
from<framework>
elements found in theplugin.xml
as the newimplementation
dependencies instead of deprecatedcompile
dependenciesWhat testing has been done on this change?
ran
npm run test
Checklist
[✘] Reported an issue in the JIRA database
Created a github Issue: Cordova generates build.gradle with deprecated "compile" dependencies #485
[✓] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
[✓ ] Added automated test coverage as appropriate for this change.
None were needed
There are some more references to
compile
dependencies in other files but I left them alone bacause I am not sure what they are used for, see:https://github.com/apache/cordova-android/blob/7.1.x/bin/templates/cordova/lib/plugin-build.gradle#L41-L43
https://github.com/apache/cordova-android/blob/7.1.x/spec/fixtures/android_studio_project/app/build.gradle#L23-L25