Skip to content

Commit

Permalink
keys fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mrehan27 committed Nov 7, 2024
1 parent b2f3517 commit f7a65f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions apps/amiapp_flutter/lib/src/customer_io.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,19 @@ class CustomerIOSDK extends ChangeNotifier {
}

final InAppConfig? inAppConfig;
if (_sdkConfig?.migrationSiteId != null) {
inAppConfig = InAppConfig(siteId: _sdkConfig!.migrationSiteId ?? '');
final migrationSiteId = _sdkConfig?.migrationSiteId;
if (migrationSiteId != null) {
inAppConfig = InAppConfig(siteId: migrationSiteId);
} else {
inAppConfig = null;
}
return CustomerIO.initialize(
config: CustomerIOConfig(
cdpApiKey: '${_sdkConfig?.cdnHost}:${_sdkConfig?.cdpApiKey}',
migrationSiteId: _sdkConfig?.migrationSiteId,
cdpApiKey: _sdkConfig?.cdpApiKey ?? 'INVALID',
migrationSiteId: migrationSiteId,
region: Region.us,
logLevel: logLevel,
autoTrackDeviceAttributes:
_sdkConfig?.autoTrackDeviceAttributes,
autoTrackDeviceAttributes: _sdkConfig?.autoTrackDeviceAttributes,
apiHost: _sdkConfig?.apiHost,
cdnHost: _sdkConfig?.cdnHost,
flushAt: _sdkConfig?.flushAt,
Expand Down

0 comments on commit f7a65f0

Please sign in to comment.