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

p1: Add Gradle binary compatibility plugin #145

Merged
merged 54 commits into from
Dec 12, 2024

Conversation

ab-gnm
Copy link
Member

@ab-gnm ab-gnm commented Dec 6, 2024

Description

This PR adds the Gradle binary compatibility plugin, and the .api file generated from it.

Binary compatibility is a signal whether a new version of the library contains breaking changes. I intend to use the changes to .api file to automatically update library version numbers (in a future PR).

Testing notes/instructions:

The api file isn't used anywhere yet, so just confirm the checks pass.

Checklist

  • Changes have been checked by the developer
  • Changes have been checked by the reviewers
  • Unit tested

@ab-gnm ab-gnm added the Android Android specific PRs label Dec 6, 2024
ab-gnm added 27 commits December 6, 2024 16:53
- `Style.contentColour` provides text and icon colour. Icon colour can
 be optionally overridden in slot.
- `Style.badgeColour` provides badge colour if not Unspecified, and not
 overridden in slot.
- items before & after text are now provided using `Indicator` sealed
 class. This allows correctly sizing and spacing them
 - Fixed spacing based on icon/image presence
 - Added previews for all variants
…t, instead of additional `isVisible` property
# Conflicts:
#	android/build-logic/convention/src/main/kotlin/com/theguardian/convention/DetektPlugin.kt
# Conflicts:
#	android/source/build.gradle.kts
@ab-gnm ab-gnm changed the title Add Gradle binary compatibility plugin p1: Add Gradle binary compatibility plugin Dec 9, 2024
@robksmith robksmith self-assigned this Dec 10, 2024
1. Extracted spacing logic to a separate function to make it slightly easier to understand
2. Removed `SourceChip` overload that allowed setting both before and after indicators
3. Made implementation function internal and renamed to `SourceChipInternal`
Copy link
Contributor

@robksmith robksmith left a comment

Choose a reason for hiding this comment

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

Brilliant Adi!

@ab-gnm ab-gnm enabled auto-merge December 12, 2024 15:01
@ab-gnm ab-gnm added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit 03a4929 Dec 12, 2024
6 checks passed
@ab-gnm ab-gnm deleted the ab/add-binary-compatibility-plugin branch December 12, 2024 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android Android specific PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants