Conversation
Codecov Report
@@ Coverage Diff @@
## main #753 +/- ##
==========================================
+ Coverage 81.50% 81.54% +0.04%
==========================================
Files 120 121 +1
Lines 3984 3999 +15
Branches 510 512 +2
==========================================
+ Hits 3247 3261 +14
- Misses 534 535 +1
Partials 203 203
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
For [CSDK-609], [CSDK-607], [CSDK-610], [CSDK-608]. Depends on RevenueCat/purchases-android#753.
For [CSDK-609], [CSDK-607], [CSDK-610], [CSDK-608]. Depends on RevenueCat/purchases-android#753.
There was a problem hiding this comment.
Weird, this is called by tests.
There was a problem hiding this comment.
I believe in the tests we are setting the Config.logLevel directly instead of going through Purchases.logLevel right?
In this case, I think it might be nice to change the tests to use these methods to make sure we cover the full flow users would use.
There was a problem hiding this comment.
OMG you're right!! Thank you!
I'm gonna make it explicit instead of relying on that static import.
There was a problem hiding this comment.
This code coverage thing is useful haha
There was a problem hiding this comment.
Now I know not to assume it was wrong 🫢
Fixes [CSDK-607]. Depends on RevenueCat/purchases-android#753 and RevenueCat/purchases-hybrid-common#301
Fixes [CSDK-607]. Depends on RevenueCat/purchases-android#753 and RevenueCat/purchases-hybrid-common#301
Fixes [CSDK-608]. Depends on RevenueCat/purchases-android#753 and RevenueCat/purchases-hybrid-common#301
tonidero
left a comment
There was a problem hiding this comment.
Nothing major, but I think hiding those log level methods is worth it. As for changing tests to use the Purchases accessors, it would be nice but can be done separately.
There was a problem hiding this comment.
I believe in the tests we are setting the Config.logLevel directly instead of going through Purchases.logLevel right?
In this case, I think it might be nice to change the tests to use these methods to make sure we cover the full flow users would use.
There was a problem hiding this comment.
Hmm this is accessible by devs... should we make this and the method below internal? I don't think it would help devs to have access to these.
There was a problem hiding this comment.
I had to leave them as public because they're used from 2 different packages.
There was a problem hiding this comment.
Ahh right 🤦 ... I really want to try to unify these modules soon.
What comes to mind is moving these 2 to the common module as extensions properties/functions. Maybe to the logUtils.kt file?
val LogLevel.debugLogsEnabled: Boolean
get() = this <= LogLevel.DEBUG
fun LogLevel.Companion.debugLogsEnabled(enabled: Boolean): LogLevel {
return if (enabled) {
LogLevel.DEBUG
} else {
LogLevel.INFO
}
}
Might need fixing some imports but they should be accessible to both the common and purchases modules once they are there and not be accessible to devs.
There was a problem hiding this comment.
That works thanks 👍🏻
|
Great feedback, thanks @tonidero. Updated! |
|
@tonidero done. |
**This is an automatic release.** ### New Features * Add `Purchases.logLevel` and deprecate `Purchases.debugLogsEnabled` (#753) via NachoSoto (@NachoSoto) ### Bugfixes * Avoid syncing attributes for users with blank user ids (#755) via Toni Rico (@tonidero) ### Other Changes * Fixed Readme.MD (#727) via AristiDevs (@ArisGuimera) * Add codecov (#750) via Cesar de la Vega (@vegaro) * Update AGP to 7.4.0 (#747) via Cesar de la Vega (@vegaro) * Add test coverage using Kover (#748) via Cesar de la Vega (@vegaro) Co-authored-by: revenuecat-ops <ops@revenuecat.com> Co-authored-by: Cesar de la Vega <cesarvegaro@gmail.com> Co-authored-by: NachoSoto <ignaciosoto90@gmail.com>
Fixes [CSDK-607]. Depends on RevenueCat/purchases-android#753 and RevenueCat/purchases-hybrid-common#301
For [CSDK-609], [CSDK-607], [CSDK-610], [CSDK-608]. Depends on RevenueCat/purchases-android#753.
For [CSDK-609], [CSDK-607], [CSDK-610], [CSDK-608]. Depends on RevenueCat/purchases-android#753. [CSDK-609]: https://revenuecats.atlassian.net/browse/CSDK-609?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [CSDK-607]: https://revenuecats.atlassian.net/browse/CSDK-607?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [CSDK-610]: https://revenuecats.atlassian.net/browse/CSDK-610?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [CSDK-608]: https://revenuecats.atlassian.net/browse/CSDK-608?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Fixes [CSDK-607]. Depends on RevenueCat/purchases-android#753 and RevenueCat/purchases-hybrid-common#301
Fixes [CSDK-608]. Depends on RevenueCat/purchases-android#753 and RevenueCat/purchases-hybrid-common#301
- [x] Fixes [CSDK-609] - [x] Blocked by [CSDK-549] - [x] Depends on RevenueCat/purchases-hybrid-common#297 - [x] Depends on RevenueCat/purchases-android#753 - [x] Depends on RevenueCat/purchases-hybrid-common#301 [CSDK-609]: https://revenuecats.atlassian.net/browse/CSDK-609?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ [CSDK-549]: https://revenuecats.atlassian.net/browse/CSDK-549?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ --------- Co-authored-by: Cesar de la Vega <cesarvegaro@gmail.com>
Fixes CSDK-549.