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

Upgrade build to support shared multiplatform Kotlin libs #2181

Merged
merged 11 commits into from
Jan 13, 2024

Conversation

gino-m
Copy link
Collaborator

@gino-m gino-m commented Jan 12, 2024

Towards #2049

Min required changes:

  • Upgrade to Kotlin 1.9.20, including:
    • Add required @Deprecated on deprecated overrides
    • Manually add Hilt generated dir path to sourceDirs as workaround for breakage when upgrading to Kotlin 1.9
  • Upgrade to Gradle 8.5
  • Upgrade to Gradle plugin 8.2.0
  • Upgrade to Hilt 2.50
  • Upgrade to Room 2.6.1
  • Increase androidCompileSdk to 34

@shobhitagarwal1612 @rfontanarosa @scolsen @justinkimtang FYI

@gino-m gino-m changed the title [WORK IN PROGRESS] Introduce shared multiplatform Kotlin libs Upgrade deps and config to support shared multiplatform Kotlin libs Jan 13, 2024
@gino-m gino-m marked this pull request as ready for review January 13, 2024 14:53
@gino-m
Copy link
Collaborator Author

gino-m commented Jan 13, 2024

@shobhitagarwal1612 PTAL?

@gino-m gino-m changed the title Upgrade deps and config to support shared multiplatform Kotlin libs Upgrade build to support shared multiplatform Kotlin libs Jan 13, 2024
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1b5f593) 52.72% compared to head (50a298b) 52.86%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2181      +/-   ##
============================================
+ Coverage     52.72%   52.86%   +0.13%     
- Complexity     1204     1214      +10     
============================================
  Files           314      314              
  Lines          6101     6102       +1     
  Branches        636      635       -1     
============================================
+ Hits           3217     3226       +9     
+ Misses         2539     2532       -7     
+ Partials        345      344       -1     

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

Comment on lines +59 to +61
sourceSets {
main.java.srcDirs += ['build/generated/source/kapt/devDebug']
}
Copy link
Member

Choose a reason for hiding this comment

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

For context, we added the hilt generated classes for fixing our codecov plugin. In a separate PR, we can check whether it is fixed with updated version of Hilt or not. If yes, then we can get rid of this workaround.

Copy link
Member

@shobhitagarwal1612 shobhitagarwal1612 left a comment

Choose a reason for hiding this comment

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

Nice! LGTM

@shobhitagarwal1612 shobhitagarwal1612 merged commit 11bf2c0 into master Jan 13, 2024
4 checks passed
@shobhitagarwal1612 shobhitagarwal1612 deleted the gino-m/2049/shared-libs branch January 13, 2024 17:42
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.

3 participants