|
1 | 1 | // Firebase artifacts available to be built. These artifacts generate NuGets.
|
2 |
| -Artifact FIREBASE_AB_TESTING_ARTIFACT = new Artifact ("Firebase.ABTesting", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "ABTesting"); |
3 |
| -Artifact FIREBASE_AD_MOB_ARTIFACT = new Artifact ("Firebase.AdMob", "8.13.0.3", "10.0", ComponentGroup.Firebase, csprojName: "AdMob"); |
4 |
| -Artifact FIREBASE_ANALYTICS_ARTIFACT = new Artifact ("Firebase.Analytics", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "Analytics"); |
5 |
| -Artifact FIREBASE_AUTH_ARTIFACT = new Artifact ("Firebase.Auth", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "Auth"); |
6 |
| -Artifact FIREBASE_CLOUD_FIRESTORE_ARTIFACT = new Artifact ("Firebase.CloudFirestore", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "CloudFirestore"); |
7 |
| -Artifact FIREBASE_CLOUD_FUNCTIONS_ARTIFACT = new Artifact ("Firebase.CloudFunctions", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "CloudFunctions"); |
8 |
| -Artifact FIREBASE_CLOUD_MESSAGING_ARTIFACT = new Artifact ("Firebase.CloudMessaging", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "CloudMessaging"); |
9 |
| -Artifact FIREBASE_CORE_ARTIFACT = new Artifact ("Firebase.Core", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "Core"); |
10 |
| -Artifact FIREBASE_CRASHLYTICS_ARTIFACT = new Artifact ("Firebase.Crashlytics", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "Crashlytics"); |
11 |
| -Artifact FIREBASE_DATABASE_ARTIFACT = new Artifact ("Firebase.Database", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "Database"); |
12 |
| -Artifact FIREBASE_DYNAMIC_LINKS_ARTIFACT = new Artifact ("Firebase.DynamicLinks", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "DynamicLinks"); |
13 |
| -Artifact FIREBASE_IN_APP_MESSAGING_ARTIFACT = new Artifact ("Firebase.InAppMessaging", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "InAppMessaging"); |
14 |
| -Artifact FIREBASE_INSTALLATIONS_ARTIFACT = new Artifact ("Firebase.Installations", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "Installations"); |
15 |
| -Artifact FIREBASE_PERFORMANCE_MONITORING_ARTIFACT = new Artifact ("Firebase.PerformanceMonitoring", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "PerformanceMonitoring"); |
16 |
| -Artifact FIREBASE_REMOTE_CONFIG_ARTIFACT = new Artifact ("Firebase.RemoteConfig", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "RemoteConfig"); |
17 |
| -Artifact FIREBASE_STORAGE_ARTIFACT = new Artifact ("Firebase.Storage", "8.10.0.3", "10.0", ComponentGroup.Firebase, csprojName: "Storage"); |
| 2 | +Artifact FIREBASE_AB_TESTING_ARTIFACT = new Artifact ("Firebase.ABTesting", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "ABTesting"); |
| 3 | +Artifact FIREBASE_AD_MOB_ARTIFACT = new Artifact ("Firebase.AdMob", "8.13.0.3", "11.0", ComponentGroup.Firebase, csprojName: "AdMob"); |
| 4 | +Artifact FIREBASE_ANALYTICS_ARTIFACT = new Artifact ("Firebase.Analytics", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "Analytics"); |
| 5 | +Artifact FIREBASE_AUTH_ARTIFACT = new Artifact ("Firebase.Auth", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "Auth"); |
| 6 | +Artifact FIREBASE_CLOUD_FIRESTORE_ARTIFACT = new Artifact ("Firebase.CloudFirestore", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "CloudFirestore"); |
| 7 | +Artifact FIREBASE_CLOUD_FUNCTIONS_ARTIFACT = new Artifact ("Firebase.CloudFunctions", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "CloudFunctions"); |
| 8 | +Artifact FIREBASE_CLOUD_MESSAGING_ARTIFACT = new Artifact ("Firebase.CloudMessaging", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "CloudMessaging"); |
| 9 | +Artifact FIREBASE_CORE_ARTIFACT = new Artifact ("Firebase.Core", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "Core"); |
| 10 | +Artifact FIREBASE_CRASHLYTICS_ARTIFACT = new Artifact ("Firebase.Crashlytics", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "Crashlytics"); |
| 11 | +Artifact FIREBASE_DATABASE_ARTIFACT = new Artifact ("Firebase.Database", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "Database"); |
| 12 | +Artifact FIREBASE_DYNAMIC_LINKS_ARTIFACT = new Artifact ("Firebase.DynamicLinks", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "DynamicLinks"); |
| 13 | +Artifact FIREBASE_IN_APP_MESSAGING_ARTIFACT = new Artifact ("Firebase.InAppMessaging", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "InAppMessaging"); |
| 14 | +Artifact FIREBASE_INSTALLATIONS_ARTIFACT = new Artifact ("Firebase.Installations", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "Installations"); |
| 15 | +Artifact FIREBASE_PERFORMANCE_MONITORING_ARTIFACT = new Artifact ("Firebase.PerformanceMonitoring", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "PerformanceMonitoring"); |
| 16 | +Artifact FIREBASE_REMOTE_CONFIG_ARTIFACT = new Artifact ("Firebase.RemoteConfig", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "RemoteConfig"); |
| 17 | +Artifact FIREBASE_STORAGE_ARTIFACT = new Artifact ("Firebase.Storage", "8.10.0.3", "11.0", ComponentGroup.Firebase, csprojName: "Storage"); |
18 | 18 | // Artifact FIREBASE_APP_DISTRIBUTION_ARTIFACT = new Artifact ("Firebase.AppDistribution", "8.10.0.1", "10.0", ComponentGroup.Firebase, csprojName: "AppDistribution");
|
19 | 19 | // Artifact FIREBASE_APP_CHECK_ARTIFACT = new Artifact ("Firebase.AppCheck", "8.10.0.1", "11.0", ComponentGroup.Firebase, csprojName: "AppCheck");
|
20 | 20 |
|
21 | 21 | // Google artifacts available to be built. These artifacts generate NuGets.
|
22 |
| -Artifact GOOGLE_ANALYTICS_ARTIFACT = new Artifact ("Google.Analytics", "3.20.0.2", "9.0", ComponentGroup.Google, csprojName: "Analytics"); |
| 22 | +Artifact GOOGLE_ANALYTICS_ARTIFACT = new Artifact ("Google.Analytics", "3.20.0.2", "11.0", ComponentGroup.Google, csprojName: "Analytics"); |
23 | 23 | Artifact GOOGLE_CAST_ARTIFACT = new Artifact ("Google.Cast", "4.7.0.1", "12.0", ComponentGroup.Google, csprojName: "Cast");
|
24 | 24 | Artifact GOOGLE_MAPS_ARTIFACT = new Artifact ("Google.Maps", "6.0.1.1", "12.0", ComponentGroup.Google, csprojName: "Maps");
|
25 |
| -Artifact GOOGLE_MOBILE_ADS_ARTIFACT = new Artifact ("Google.MobileAds", "8.13.0.3", "10.0", ComponentGroup.Google, csprojName: "MobileAds"); |
26 |
| -Artifact GOOGLE_UMP_ARTIFACT = new Artifact ("Google.UserMessagingPlatform", "1.1.0.1", "10.0", ComponentGroup.Google, csprojName: "UserMessagingPlatform"); |
| 25 | +Artifact GOOGLE_MOBILE_ADS_ARTIFACT = new Artifact ("Google.MobileAds", "8.13.0.3", "11.0", ComponentGroup.Google, csprojName: "MobileAds"); |
| 26 | +Artifact GOOGLE_UMP_ARTIFACT = new Artifact ("Google.UserMessagingPlatform", "1.1.0.1", "11.0", ComponentGroup.Google, csprojName: "UserMessagingPlatform"); |
27 | 27 | Artifact GOOGLE_PLACES_ARTIFACT = new Artifact ("Google.Places", "6.0.0.1", "12.0", ComponentGroup.Google, csprojName: "Places");
|
28 |
| -Artifact GOOGLE_SIGN_IN_ARTIFACT = new Artifact ("Google.SignIn", "5.0.2.4", "10.0", ComponentGroup.Google, csprojName: "SignIn"); |
29 |
| -Artifact GOOGLE_TAG_MANAGER_ARTIFACT = new Artifact ("Google.TagManager", "7.4.0.2", "10.0", ComponentGroup.Google, csprojName: "TagManager"); |
| 28 | +Artifact GOOGLE_SIGN_IN_ARTIFACT = new Artifact ("Google.SignIn", "5.0.2.4", "11.0", ComponentGroup.Google, csprojName: "SignIn"); |
| 29 | +Artifact GOOGLE_TAG_MANAGER_ARTIFACT = new Artifact ("Google.TagManager", "7.4.0.2", "11.0", ComponentGroup.Google, csprojName: "TagManager"); |
30 | 30 |
|
31 | 31 | // MLKit artifacts available to be built. These artifacts generate NuGets.
|
32 | 32 | Artifact MLKIT_CORE_ARTIFACT = new Artifact ("MLKit.Core", "5.0.0", "10.0", ComponentGroup.MLKit, csprojName: "Core");
|
@@ -304,33 +304,60 @@ void SetArtifactsExtraPodfileLines ()
|
304 | 304 | "end",
|
305 | 305 | };
|
306 | 306 |
|
307 |
| - FIREBASE_AB_TESTING_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines; |
308 |
| - FIREBASE_AUTH_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines; |
309 |
| - FIREBASE_CLOUD_FIRESTORE_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines; |
310 |
| - FIREBASE_CLOUD_FUNCTIONS_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines; |
311 |
| - FIREBASE_CLOUD_MESSAGING_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines; |
312 |
| - FIREBASE_CRASHLYTICS_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines; |
313 |
| - FIREBASE_CORE_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines; |
314 |
| - FIREBASE_DATABASE_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines; |
315 |
| - FIREBASE_DYNAMIC_LINKS_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines; |
316 |
| - FIREBASE_INSTALLATIONS_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines; |
317 |
| - FIREBASE_PERFORMANCE_MONITORING_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines; |
318 |
| - FIREBASE_REMOTE_CONFIG_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines; |
319 |
| - FIREBASE_STORAGE_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines; |
| 307 | + var avoidBundleSigning = new [] { |
| 308 | + "=begin", |
| 309 | + "It seems that there is an issue with bundles and Xcode 14, it asks for your Team ID to sign them when building.", |
| 310 | + "Here's a workaround for this: https://github.com/CocoaPods/CocoaPods/issues/8891#issuecomment-1201465446", |
| 311 | + "=end", |
| 312 | + "post_install do |installer|", |
| 313 | + "\tinstaller.pods_project.targets.each do |target|", |
| 314 | + "\t\tif target.respond_to?(:product_type) and target.product_type == \"com.apple.product-type.bundle\"", |
| 315 | + "\t\t\ttarget.build_configurations.each do |config|", |
| 316 | + "\t\t\t\tputs \"Setting 'CODE_SIGNING_ALLOWED' to 'NO' for #{target.name}\"", |
| 317 | + "\t\t\t\tconfig.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'", |
| 318 | + "\t\t\tend", |
| 319 | + "\t\tend", |
| 320 | + "\tend", |
| 321 | + "end", |
| 322 | + }; |
| 323 | + |
| 324 | + var extraPodfileLines = new List<string> (); |
| 325 | + extraPodfileLines.AddRange (dynamicFrameworkLines); |
| 326 | + extraPodfileLines.AddRange (avoidBundleSigning); |
| 327 | + |
| 328 | + FIREBASE_AB_TESTING_ARTIFACT.ExtraPodfileLines = extraPodfileLines.ToArray (); |
| 329 | + FIREBASE_AUTH_ARTIFACT.ExtraPodfileLines = extraPodfileLines.ToArray (); |
| 330 | + FIREBASE_CLOUD_FIRESTORE_ARTIFACT.ExtraPodfileLines = extraPodfileLines.ToArray (); |
| 331 | + FIREBASE_CLOUD_FUNCTIONS_ARTIFACT.ExtraPodfileLines = extraPodfileLines.ToArray (); |
| 332 | + FIREBASE_CLOUD_MESSAGING_ARTIFACT.ExtraPodfileLines = extraPodfileLines.ToArray (); |
| 333 | + FIREBASE_CRASHLYTICS_ARTIFACT.ExtraPodfileLines = extraPodfileLines.ToArray (); |
| 334 | + FIREBASE_CORE_ARTIFACT.ExtraPodfileLines = extraPodfileLines.ToArray (); |
| 335 | + FIREBASE_DATABASE_ARTIFACT.ExtraPodfileLines = extraPodfileLines.ToArray (); |
| 336 | + FIREBASE_DYNAMIC_LINKS_ARTIFACT.ExtraPodfileLines = extraPodfileLines.ToArray (); |
| 337 | + FIREBASE_INSTALLATIONS_ARTIFACT.ExtraPodfileLines = extraPodfileLines.ToArray (); |
| 338 | + FIREBASE_PERFORMANCE_MONITORING_ARTIFACT.ExtraPodfileLines = extraPodfileLines.ToArray (); |
| 339 | + FIREBASE_REMOTE_CONFIG_ARTIFACT.ExtraPodfileLines = extraPodfileLines.ToArray (); |
| 340 | + FIREBASE_STORAGE_ARTIFACT.ExtraPodfileLines = extraPodfileLines.ToArray (); |
320 | 341 | // FIREBASE_APP_DISTRIBUTION_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines;
|
321 | 342 | // FIREBASE_APP_CHECK_ARTIFACT.ExtraPodfileLines = dynamicFrameworkLines;
|
322 | 343 |
|
323 | 344 | var inAppMessagingWorkaround = new [] {
|
324 | 345 | "post_install do |installer|",
|
325 |
| - "\tinstaller.pods_project.targets.each do |pod|", |
326 |
| - "\t\tif pod.name == \"FirebaseInAppMessaging\"", |
327 |
| - "\t\t\tpod.build_configurations.each do |config|", |
| 346 | + "\tinstaller.pods_project.targets.each do |target|", |
| 347 | + "\t\tif target.name == \"FirebaseInAppMessaging\"", |
| 348 | + "\t\t\ttarget.build_configurations.each do |config|", |
328 | 349 | "\t\t\t\tif config.name == 'Release'",
|
329 |
| - "\t\t\t\t\tputs \"Linking missing 'GoogleUtilities' framework to #{pod.name}\"", |
| 350 | + "\t\t\t\t\tputs \"Linking missing 'GoogleUtilities' framework to #{target.name}\"", |
330 | 351 | "\t\t\t\t\tconfig.build_settings['OTHER_LDFLAGS'] ||= ['$(inherited)','-framework \"GoogleUtilities\"']",
|
331 | 352 | "\t\t\t\tend",
|
332 | 353 | "\t\t\tend",
|
333 | 354 | "\t\tend",
|
| 355 | + "\t\tif target.respond_to?(:product_type) and target.product_type == \"com.apple.product-type.bundle\"", |
| 356 | + "\t\t\ttarget.build_configurations.each do |config|", |
| 357 | + "\t\t\t\tputs \"Setting 'CODE_SIGNING_ALLOWED' to 'NO' for #{target.name}\"", |
| 358 | + "\t\t\t\tconfig.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'", |
| 359 | + "\t\t\tend", |
| 360 | + "\t\tend", |
334 | 361 | "\tend",
|
335 | 362 | "end",
|
336 | 363 | };
|
|
0 commit comments