diff --git a/ios/Podfile b/ios/Podfile index 973c42f..56b377a 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -7,11 +7,11 @@ inhibit_all_warnings! target 'iosApp' do use_frameworks! platform :ios, $deploymentTarget - # Thirdo-party + # Third-party pod 'AppCenter/Distribute' pod 'FirebaseCore' pod 'FirebaseAnalytics' - + # Multiplatform pod 'Shared', :path => '../shared' diff --git a/ios/iosApp/AppInitializer.swift b/ios/iosApp/AppInitializer.swift index 6a4c940..be45230 100644 --- a/ios/iosApp/AppInitializer.swift +++ b/ios/iosApp/AppInitializer.swift @@ -33,13 +33,26 @@ enum AppInitializer { SharedAnalyticsConfiguration().analyticsManager = firebaseAnalyticsService } - + private static func initializeAppCenter() { guard let appCenterSecret = Bundle.main.object(forInfoDictionaryKey: "APP_CENTER_APP_SECRET") as? String, !appCenterSecret.isEmpty else { return } Distribute.updateTrack = .private AppCenter.start(withAppSecret: appCenterSecret, services: [Distribute.self]) } + private static func initializeFirebase() { + FirebaseApp.configure() + + let firebaseAnalyticsService = AnalyticsServiceImpl() + #if DEBUG + firebaseAnalyticsService.isEnabled = false + #else + firebaseAnalyticsService.isEnabled = true + #endif + + SharedAnalyticsConfiguration().analyticsManager = firebaseAnalyticsService + } + private static func initializeCommon() { TrikotKword.shared.setCurrentLanguage(Foundation.Locale.isPreferredLanguagesFrench ? "fr" : "en") TrikotViewModelDeclarative.shared.initialize( @@ -51,7 +64,7 @@ enum AppInitializer { private static func initializeKingfisher() { ImageCache.default.diskStorage.config.sizeLimit = 500 * 1_024 * 1_024 // 500 MB } - + private static func inititalizeKillSwitch() { Task { do { diff --git a/ios/iosApp/GoogleService-Info.plist b/ios/iosApp/GoogleService-Info.plist new file mode 100644 index 0000000..58af956 --- /dev/null +++ b/ios/iosApp/GoogleService-Info.plist @@ -0,0 +1,32 @@ + + + + + ANDROID_CLIENT_ID + 123456789012-0cnvm52tlj4cn7rkfujdkuq3iq79v5ig.apps.googleusercontent.com + API_KEY + AIzaSyC3_0lgMdiPr41DjqzSWP2MqGIqIakley0 + GCM_SENDER_ID + 123456789012 + PLIST_VERSION + 1 + BUNDLE_ID + com.mirego.kmp.boilerplate + PROJECT_ID + boilerplate-1234567890123 + STORAGE_BUCKET + boilerplate-1234567890123.appspot.com + IS_ADS_ENABLED + + IS_ANALYTICS_ENABLED + + IS_APPINVITE_ENABLED + + IS_GCM_ENABLED + + IS_SIGNIN_ENABLED + + GOOGLE_APP_ID + 1:123456789012:ios:c930c9194f493843b44d0a + +