Skip to content

(2/3) RUM-392 refactor shared android library build script#1667

Merged
xgouchet merged 1 commit into
developfrom
xgouchet/RUM-392/2_shared_core_fixtures
Oct 16, 2023
Merged

(2/3) RUM-392 refactor shared android library build script#1667
xgouchet merged 1 commit into
developfrom
xgouchet/RUM-392/2_shared_core_fixtures

Conversation

@xgouchet

@xgouchet xgouchet commented Oct 11, 2023

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR refactor the build.gradle.kts buildscript for all our libraries to extract shared configurations and make it easier to:

  • create new libraries
  • add build features to all libraries

Motivation

This is part of our effort on improving our test suites across the mobile teams

@xgouchet
xgouchet requested a review from a team as a code owner October 11, 2023 17:20
@xgouchet
xgouchet force-pushed the xgouchet/RUM-392/1_shared_core_fixtures branch 2 times, most recently from d94a25d to eea183c Compare October 12, 2023 06:30

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In the future probably it will be better to switch from buildSrc to the composite build usage (like mobile app is doing). I tried to do a quick migration, but then the problem is that some extension symbols are not available and the only way to make things work is to re-write everything to plugins, which is quite a work.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That might be an idea, we need to see the pros and cons of that. A quick read on the composite build docs left a lot of questions, so I think this might be better addressed as an exploration/ADR.

Comment thread buildSrc/src/main/kotlin/com/datadog/gradle/config/AndroidConfig.kt Outdated
Comment thread features/dd-sdk-android-logs/api/dd-sdk-android-logs.api Outdated
Comment thread integrations/dd-sdk-android-sqldelight/api/dd-sdk-android-sqldelight.api Outdated
@xgouchet
xgouchet force-pushed the xgouchet/RUM-392/2_shared_core_fixtures branch 2 times, most recently from d006017 to 172b18f Compare October 12, 2023 11:08
@xgouchet
xgouchet requested review from 0xnm and mariusc83 October 12, 2023 11:08
@codecov-commenter

codecov-commenter commented Oct 12, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1667 (3de4864) into develop (08bdb61) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           develop    #1667      +/-   ##
===========================================
- Coverage    83.73%   83.71%   -0.02%     
===========================================
  Files          459      459              
  Lines        15778    15778              
  Branches      2354     2354              
===========================================
- Hits         13211    13208       -3     
- Misses        1938     1943       +5     
+ Partials       629      627       -2     

see 21 files with indirect coverage changes

mariusc83
mariusc83 previously approved these changes Oct 12, 2023
0xnm
0xnm previously approved these changes Oct 12, 2023
Base automatically changed from xgouchet/RUM-392/1_shared_core_fixtures to develop October 16, 2023 08:42
@xgouchet
xgouchet dismissed stale reviews from 0xnm and mariusc83 October 16, 2023 08:42

The base branch was changed.

@xgouchet
xgouchet force-pushed the xgouchet/RUM-392/2_shared_core_fixtures branch from 172b18f to 2c2668e Compare October 16, 2023 09:14
@xgouchet
xgouchet requested review from 0xnm and mariusc83 October 16, 2023 09:15

@0xnm 0xnm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

it seems few apiSurface files should are deleted by some occasion, they should be restored.

Comment thread integrations/dd-sdk-android-rx/api/apiSurface
Comment thread integrations/dd-sdk-android-sqldelight/api/apiSurface
Comment thread integrations/dd-sdk-android-timber/api/apiSurface
@xgouchet
xgouchet force-pushed the xgouchet/RUM-392/2_shared_core_fixtures branch from 2c2668e to 3de4864 Compare October 16, 2023 09:39
@xgouchet
xgouchet requested a review from 0xnm October 16, 2023 09:39
@xgouchet
xgouchet merged commit 72ae0d1 into develop Oct 16, 2023
@xgouchet
xgouchet deleted the xgouchet/RUM-392/2_shared_core_fixtures branch October 16, 2023 11:59
@xgouchet xgouchet added this to the 2.3.0 milestone Dec 13, 2023
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.

4 participants