Skip to content

Conversation

@droibit
Copy link
Contributor

@droibit droibit commented Feb 17, 2025

WHAT

Updated the dependency oss-licenses-android to the latest version v0.7.0.

This update includes switching the library distribution from JitPack to Maven Central, which resolves the following issue:

WHY

Due to the above changes, the groupId in the artifacts has been changed, so I manually updated the dependencies to reflect this change.

HOW

Checklist 📋

  • Add explicit visibility modifier and explicit return types for public declarations
  • Run spotless check
  • Run tests
  • Update metalava's signature text files

- Update oss-licenses-android from 0.5.0 to 0.7.0
- Replace JitPack dependencies with Maven Central artifacts
- Simplify manifest configuration for license activity
<action android:name="com.google.wear.ACTION_SHOW_LICENSE" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
tools:node="merge">
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we just drop this instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're right. The explicit tools:node="merge" specification was unnecessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pushed a fix commit (6a4769b).

Copy link
Collaborator

@yschimke yschimke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pending one comment

@droibit
Copy link
Contributor Author

droibit commented Feb 17, 2025

Thank you for the review! I'll push the fixes soon.

- Remove redundant tools:node="merge" from `WearableOssLicensesActivity` declaration
- Use self-closing tag for `WearableOssLicensesActivity`
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
android:name="com.github.droibit.oss_licenses.ui.wear.compose.material.WearableOssLicensesActivity"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I meant the whole activity. Isn't there a default one from the library?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, my mistake! Yes, The WearableOssLicensesActivity declaration can be removed.

I'll push another fix right away!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pushed a fix commit (6849ac8).

Use the default `WearableOssLicensesActivity` provided by oss-licenses-android library instead of declaring it explicitly in AndroidManifest.xml.
@yschimke yschimke merged commit 4e0de9d into google:main Feb 18, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants