Skip to content
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

fix: correctly flag API dependency on AppCompat for Maven #1505

Merged
merged 2 commits into from Oct 15, 2022

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented Oct 8, 2022

Platforms affected

Android

Motivation and Context

Currently when cordova-android is published to Maven, it lists no dependencies. However, CordovaActivity extends AppCompatActivity which requires that the AndroidX AppCompat library be available.

Description

Marking AndroidX AppCompat as an API dependency (rather than an implementation/compile dependency) should cause the AndroidX AppCompat library to be installed when the cordova-android framework is added to the build.gradle of an existing Android application.

Testing

Tested publishing to my local Maven repository, and confirmed that dependencies are correctly captured in the pom.xml.

Currently when cordova-android is published to Maven, it lists no
dependencies. However, `CordovaActivity` extends `AppCompatActivity`
which requires that the AndroidX AppCompat library be available.

Marking this as an API dependency (rather than an implementation/compile
dependency) should cause the AndroidX AppCompat library to be installed
when the cordova-android framework is added to the build.gradle of an
existing Android application.
This allows the Maven publish to pick up information from the android
library component and include things like dependencies in the pom.xml
file.
@codecov-commenter
Copy link

codecov-commenter commented Oct 8, 2022

Codecov Report

Merging #1505 (877c76d) into master (954d3e0) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1505   +/-   ##
=======================================
  Coverage   72.13%   72.13%           
=======================================
  Files          21       21           
  Lines        1751     1751           
=======================================
  Hits         1263     1263           
  Misses        488      488           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@erisu erisu changed the title Correctly flag API dependency on AppCompat for Maven fix: correctly flag API dependency on AppCompat for Maven Oct 14, 2022
@erisu erisu added the bug label Oct 14, 2022
@erisu erisu merged commit 80f232a into apache:master Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants