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

Create DiagnosticsTracker #3784

Merged
merged 6 commits into from
Apr 12, 2024

Conversation

vegaro
Copy link
Contributor

@vegaro vegaro commented Apr 4, 2024

Create DiagnosticsTracker and adds it to the Purchases initialization. I don't expose the diagnosticsEnabled yet

@vegaro vegaro added the feat A new feature label Apr 4, 2024
@vegaro vegaro force-pushed the sdk-2905-ios-internal-opt-in-configuration-parameter branch 2 times, most recently from c2efe3e to 46d6d84 Compare April 8, 2024 10:42
Base automatically changed from sdk-2898-ios-ability-to-create-a-jsonl-file-and-internal-api to main April 8, 2024 10:47
@vegaro vegaro force-pushed the sdk-2905-ios-internal-opt-in-configuration-parameter branch from 46d6d84 to b718aba Compare April 8, 2024 10:48
@vegaro vegaro force-pushed the sdk-2905-ios-internal-opt-in-configuration-parameter branch from a2c959a to a6746f0 Compare April 11, 2024 15:15
}

func track(_ event: DiagnosticsEvent) async {
await diagnosticsFileHandler.appendEvent(diagnosticsEvent: event)
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm I know DiagnosticsFileHandler is an actor, but I think we still need to specify the thread here? We can do this in a separate PR though.

/// Defaults to ``false``
///
@available(iOS 15.0, tvOS 15.0, macOS 12.0, watchOS 8.0, *)
@objc internal func with(diagnosticsEnabled: Bool) -> Builder {
Copy link
Contributor

Choose a reason for hiding this comment

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

Added new method as internal for now.

@tonidero tonidero marked this pull request as ready for review April 12, 2024 09:38
@tonidero tonidero requested a review from a team April 12, 2024 09:40
@tonidero tonidero merged commit 74d3960 into main Apr 12, 2024
24 checks passed
@tonidero tonidero deleted the sdk-2905-ios-internal-opt-in-configuration-parameter branch April 12, 2024 09:47
self.diagnosticsFileHandler = diagnosticsFileHandler
}

func track(_ event: DiagnosticsEvent) async {
Copy link
Contributor

@tonidero tonidero Apr 12, 2024

Choose a reason for hiding this comment

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

We should also add some tests here, just in case. Will do that in follow-up PRs. Nvm, I see we already have tests in the followup PR

vegaro pushed a commit that referenced this pull request Apr 18, 2024
**This is an automatic release.**

### New Features
* Paywalls: Allow closed button color to be configured (#3805) via Josh
Holtz (@joshdholtz)
### Other Changes
* Create `DiagnosticsTracker` (#3784) via Cesar de la Vega (@vegaro)
* Add DiagnosticsSynchronizer (#3787) via Cesar de la Vega (@vegaro)
* Update Package.resolved (#3796) via Cesar de la Vega (@vegaro)

---------

Co-authored-by: Toni Rico <antonio.rico.diez@revenuecat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants