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

Migrate to Gradle version catalog #1059

Merged
merged 9 commits into from
Jun 22, 2023

Conversation

vegaro
Copy link
Contributor

@vegaro vegaro commented Jun 12, 2023

Merging #1033 into main

@vegaro vegaro force-pushed the cesar/sdk-3179-migrate-to-gradle-version-catalog branch from 1b6eb17 to e26b5cd Compare June 12, 2023 12:20
@vegaro vegaro added the build label Jun 12, 2023
@codecov
Copy link

codecov bot commented Jun 12, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.76%. Comparing base (7fc9cac) to head (2a27338).
Report is 647 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1059   +/-   ##
=======================================
  Coverage   85.76%   85.76%           
=======================================
  Files         176      176           
  Lines        6222     6222           
  Branches      853      853           
=======================================
  Hits         5336     5336           
  Misses        551      551           
  Partials      335      335           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vegaro vegaro requested a review from a team June 12, 2023 16:54
build.gradle Outdated
alias libs.plugins.androidx.navigation.safeargs apply false
// TODO: is this needed?
alias libs.plugins.kotlin.kapt apply false
// TODO: is this needed?
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm are these TODO's meant to be removed?

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like we only use parcelization in the public and feature/amazon modules, so I believe it should only be needed in those...

Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

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

Looks good but we should decide what to do with those todos

build.gradle Outdated
alias libs.plugins.androidx.navigation.safeargs apply false
// TODO: is this needed?
alias libs.plugins.kotlin.kapt apply false
// TODO: is this needed?
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like we only use parcelization in the public and feature/amazon modules, so I believe it should only be needed in those...

@vegaro
Copy link
Contributor Author

vegaro commented Jun 14, 2023

@tonidero removed those todos. I couldn't figure out how to remove parcelize from the root build.gradle, though

I also added a test bundle and extracted more versions

Copy link
Contributor

@tonidero tonidero left a comment

Choose a reason for hiding this comment

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

Left a few more comments but it looks good!

common/build.gradle Show resolved Hide resolved
build.gradle Show resolved Hide resolved
id "com.savvasdalkitsis.module-dependency-graph" version "0.9"
alias libs.plugins.mavenPublish apply false
alias libs.plugins.android.application apply false
alias libs.plugins.android.library apply false
Copy link
Contributor

Choose a reason for hiding this comment

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

So now we are adding both the application and library plugins here and applying them on the respective modules each. Is it necessary to specify both here?

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. Think this is the equivalent of adding the AGP plugin. Removing either plugin gives the same error as removing the parcelize (The request for this plugin could not be satisfied because the plugin is already on the classpath with an unknown version, so compatibility cannot be checked.). Removing application gives the issue in the apps, I am getting it in api-tester, and removing the library one gives it in common.

I think these plugins need to be applied both in the base and in the module's build.gradle. I guess it makes sense for the android plugins, because at the end of the day the need to build an android project, and this is the build.gradle of the project, but I am still not sure about the parcelize one.

examples/MagicWeather/gradle/libs.versions.toml Outdated Show resolved Hide resolved
examples/MagicWeather/gradle/libs.versions.toml Outdated Show resolved Hide resolved
@vegaro vegaro merged commit 9f617e1 into main Jun 22, 2023
@vegaro vegaro deleted the cesar/sdk-3179-migrate-to-gradle-version-catalog branch June 22, 2023 09:41
tonidero added a commit that referenced this pull request Jun 22, 2023
### Description
This PR moves the new jetpack compose sample app added in #1056 to use
gradle catalogs as added in #1059.
tonidero pushed a commit that referenced this pull request Jun 23, 2023
**This is an automatic release.**

### Bugfixes
* Default customer info schema version to latest known by SDK (#1080)
via Toni Rico (@tonidero)
* Handle other diagnostics-related exceptions (#1076) via Toni Rico
(@tonidero)
* Return error in queryPurchases if error connecting to billing client
(#1072) via Toni Rico (@tonidero)
### Other Changes
* Fix offline entitlements integration tests (#1085) via Toni Rico
(@tonidero)
* Add defaultsRelease variant tests run configuration (#1074) via Toni
Rico (@tonidero)
* Compose sample app: move to gradle catalog (#1081) via Toni Rico
(@tonidero)
* Compose sample app: automate builds (#1082) via Toni Rico (@tonidero)
* Compose sample app (#1056) via Toni Rico (@tonidero)
* Migrate to Gradle version catalog (#1059) via Cesar de la Vega
(@vegaro)
* Trusted entitlements: Add logs with verification mode (#1067) via Toni
Rico (@tonidero)
* Sync pending purchases before getting customer info (#1073) via Toni
Rico (@tonidero)
* Refactor syncing pending transactions logic out of `Purchases` (#1058)
via Toni Rico (@tonidero)
* Refactor CustomerInfo listener and cache logic into
CustomerInfoUpdater (#1052) via Toni Rico (@tonidero)
* Trusted entitlements: Add integration tests (#1071) via Toni Rico
(@tonidero)
* Trusted entitlements: Add internal mechanism to force signing errors
for tests (#1070) via Toni Rico (@tonidero)

Co-authored-by: revenuecat-ops <[email protected]>
@mikescamell
Copy link
Contributor

Hey @vegaro did I get listed as a contributor to this? 🙏

@vegaro
Copy link
Contributor Author

vegaro commented Jun 27, 2023

@mikescamell You actually didn't, but you should have, looks like a bug both in GitHub and in our changelog generation script.

It's weird because you appear in https://github.com/RevenueCat/purchases-android/graphs/contributors but when clicking in the 2 commits link, nothing shows up 🤔

Your name also appears in the commit in main so I am not sure why GitHub is not picking it up:

Screenshot 2023-06-27 at 11 29 55 AM

I also noticed you appear in the 6.5.0 release https://github.com/RevenueCat/purchases-android/releases/tag/6.5.0, so not sure why this change didn't pick up your name

I will fix the changelog so your name is part of it. I will also give it a thought to see how we can change the external contributions flow so this doesn't happen again

Sorry about that! And thanks again for your contribution and for bringing it up!

@mikescamell
Copy link
Contributor

@mikescamell You actually didn't, but you should have, looks like a bug both in GitHub and in our changelog generation script.

It's weird because you appear in https://github.com/RevenueCat/purchases-android/graphs/contributors but when clicking in the 2 commits link, nothing shows up 🤔

Your name also appears in the commit in main so I am not sure why GitHub is not picking it up:
Screenshot 2023-06-27 at 11 29 55 AM

I also noticed you appear in the 6.5.0 release https://github.com/RevenueCat/purchases-android/releases/tag/6.5.0, so not sure why this change didn't pick up your name

I will fix the changelog so your name is part of it. I will also give it a thought to see how we can change the external contributions flow so this doesn't happen again

Sorry about that! And thanks again for your contribution and for bringing it up!

I kept expecting to get an email with a tag from one of the releases and that's when I noticed the merge commit didn't mention me and I wondered what happened, seeing as I had no issues from my previous contribution as you said. I felt a little weird asking to be honest 😅 Thanks for making the effort to add me in 🙌

@vegaro vegaro removed the pr:build label Sep 17, 2024
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.

3 participants