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

chore: added config for tracking lifecycle #161

Merged
merged 2 commits into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions lib/config/customer_io_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class CustomerIOConfig {
final String? migrationSiteId;
final Region? region;
final CioLogLevel? logLevel;
final bool? trackApplicationLifecycleEvents;
final bool? autoTrackDeviceAttributes;
final String? apiHost;
final String? cdnHost;
Expand All @@ -25,6 +26,7 @@ class CustomerIOConfig {
this.region,
this.logLevel,
this.autoTrackDeviceAttributes,
this.trackApplicationLifecycleEvents,
this.apiHost,
this.cdnHost,
this.flushAt,
Expand All @@ -40,6 +42,7 @@ class CustomerIOConfig {
'region': region?.name,
'logLevel': logLevel?.name,
'autoTrackDeviceAttributes': autoTrackDeviceAttributes,
'trackApplicationLifecycleEvents': trackApplicationLifecycleEvents,
'apiHost': apiHost,
'cdnHost': cdnHost,
'flushAt': flushAt,
Expand Down
2 changes: 2 additions & 0 deletions test/customer_io_config_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ void main() {
region: Region.eu,
logLevel: CioLogLevel.info,
autoTrackDeviceAttributes: false,
trackApplicationLifecycleEvents: false,
apiHost: 'https://api.example.com',
cdnHost: 'https://cdn.example.com',
flushAt: 25,
Expand All @@ -96,6 +97,7 @@ void main() {
'region': 'eu',
'logLevel': 'info',
'autoTrackDeviceAttributes': false,
'trackApplicationLifecycleEvents': false,
'apiHost': 'https://api.example.com',
'cdnHost': 'https://cdn.example.com',
'flushAt': 25,
Expand Down
Loading