Conversation
…Manager. Adding tests
Codecov Report
@@ Coverage Diff @@
## main #766 +/- ##
==========================================
+ Coverage 81.54% 81.97% +0.42%
==========================================
Files 121 127 +6
Lines 3999 4127 +128
Branches 512 521 +9
==========================================
+ Hits 3261 3383 +122
Misses 535 535
- Partials 203 209 +6
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
tonidero
left a comment
There was a problem hiding this comment.
There is some functionality missing which I plan to address in other PRs since this PR was getting too big. I also have some questions I posted in slack but in the meantime, I think this could get an initial review.
| onSuccessHandler: (JSONObject) -> Unit, | ||
| onErrorHandler: (PurchasesError) -> Unit | ||
| ) { | ||
| // WIP: Perform request |
There was a problem hiding this comment.
Will deal with these WIPs in a different PR (this PR is already too big)
| telemetryList = telemetryList, | ||
| onSuccessHandler = { | ||
| verboseLog("Synced telemetry file successfully.") | ||
| telemetryFileHelper.cleanSentTelemetry(telemetryCount) |
There was a problem hiding this comment.
This is so, if we track an event while there is a sync in progress, we still send it on the next configure call.
| import org.json.JSONArray | ||
| import org.json.JSONObject | ||
|
|
||
| sealed class TelemetryEvent(val telemetryType: String) { |
NachoSoto
left a comment
There was a problem hiding this comment.
This is a great initial implementation 👍🏻
Will be very easy to replicate in iOS.
Description
Starting https://revenuecats.atlassian.net/browse/CSDK-646
In this PR we add basic support for diagnostics metrics we want to be aware of. The data sent will be completely anonymous. This PR adds the basic architecture plus the file management in the device.
Main features remaining: