-
Notifications
You must be signed in to change notification settings - Fork 137
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
Fix/remove dependency from debug sourceset #8147
Fix/remove dependency from debug sourceset #8147
Conversation
Generated by 🚫 dangerJS |
👋 @JorgeMucientes ! First of all, thank you for dealing with this and unblocking the release process! 🥇 Question (❓): Since I am just trying to figure out how we could avoid a potential future duplication related problem where an engineer will forget to update both? Maybe, even just a quick |
You can test the changes on this Pull Request by downloading an installable build, or scanning this QR code: |
Codecov ReportBase: 43.13% // Head: 43.10% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## release/11.8 #8147 +/- ##
==================================================
- Coverage 43.13% 43.10% -0.03%
Complexity 3484 3484
==================================================
Files 683 684 +1
Lines 37161 37184 +23
Branches 4926 4933 +7
==================================================
Hits 16030 16030
- Misses 19685 19708 +23
Partials 1446 1446
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Thanks for the quick review @ParaskP7 🙏🏼 Yeah, this was more of a quick fix to unlock the release flow with the least changes possible. I agree that if the 2 classes are identical we should remove one of them and put the one we keep in the proper package. I'm not sure tough if we will need to customize the behaviour and thus, have different implementations of |
Got it, thanks @JorgeMucientes ! 💯 Then maybe adding a quick KDoc for now will be enough, wdyt? 🤔 I would not be comfortable merging this without at least making the duplication explicit somehow (thus more visible). 😞
|
In the meantime I've created an issue to keep track of this duplication and avoid blocking this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 💯
Description
This PR removes the use of
IAPShowcaseMobilePayAPIProvider
in production code to fixrelease
build compile issues. Instead, it adds newIapMobilePayApiProvider
file available forrelease
source sets that copies the code we had inIAPShowcaseMobilePayAPIProvider
. This is enough for now, as IAP feature is still under development and we might refactor this code later on.Keep in mind that In-App Purchases code is under a feature flag that only enables the feature for
debug
builds, so these are production safe changes.Compiling the app for
release
using./gradlew assembleVanillaRelease
should be enough to check the problem is fixed.Sorry for the trouble caused for generating the release.