@@ -43,10 +43,25 @@ let package = Package(
43
43
) ,
44
44
// Adding this library to your project is enough for it to take effect. The module
45
45
// does not need to be imported into any source files.
46
+ . library(
47
+ name: " FirebaseAnalyticsCore " ,
48
+ targets: [ " FirebaseAnalyticsCoreTarget " ]
49
+ ) ,
50
+ // Adding this library to your project is enough for it to take effect. The module
51
+ // does not need to be imported into any source files.
52
+ . library(
53
+ name: " FirebaseAnalyticsIdentitySupport " ,
54
+ targets: [ " FirebaseAnalyticsIdentitySupportTarget " ]
55
+ ) ,
56
+ // Deprecated. Use FirebaseAnalyticsCore instead.
57
+ // Adding this library to your project is enough for it to take effect. The module
58
+ // does not need to be imported into any source files.
46
59
. library(
47
60
name: " FirebaseAnalyticsWithoutAdIdSupport " ,
48
61
targets: [ " FirebaseAnalyticsWithoutAdIdSupportTarget " ]
49
62
) ,
63
+ // Deprecated. Use GoogleAdsOnDeviceConversion from
64
+ // https://github.com/googleads/google-ads-on-device-conversion-ios-sdk/ instead.
50
65
// Adding this library to your project is enough for it to take effect. The module
51
66
// does not need to be imported into any source files.
52
67
. library(
@@ -374,6 +389,66 @@ let package = Package(
374
389
path: " FirebaseAnalytics/Tests/ObjCAPI "
375
390
) ,
376
391
392
+ . target(
393
+ name: " FirebaseAnalyticsCoreTarget " ,
394
+ dependencies: [ . target( name: " FirebaseAnalyticsCoreWrapper " ,
395
+ condition: . when( platforms: [ . iOS, . macCatalyst, . macOS, . tvOS] ) ) ] ,
396
+ path: " SwiftPM-PlatformExclude/FirebaseAnalyticsCoreWrap "
397
+ ) ,
398
+ . target(
399
+ name: " FirebaseAnalyticsCoreWrapper " ,
400
+ dependencies: [
401
+ . target(
402
+ name: " FirebaseAnalytics " ,
403
+ condition: . when( platforms: [ . iOS, . macCatalyst, . macOS, . tvOS] )
404
+ ) ,
405
+ . product( name: " GoogleAppMeasurementCore " ,
406
+ package : " GoogleAppMeasurement " ,
407
+ condition: . when( platforms: [ . iOS, . macCatalyst, . macOS, . tvOS] ) ) ,
408
+ " FirebaseCore " ,
409
+ " FirebaseInstallations " ,
410
+ . product( name: " GULAppDelegateSwizzler " , package : " GoogleUtilities " ) ,
411
+ . product( name: " GULMethodSwizzler " , package : " GoogleUtilities " ) ,
412
+ . product( name: " GULNSData " , package : " GoogleUtilities " ) ,
413
+ . product( name: " GULNetwork " , package : " GoogleUtilities " ) ,
414
+ . product( name: " nanopb " , package : " nanopb " ) ,
415
+ ] ,
416
+ path: " FirebaseAnalyticsCoreWrapper " ,
417
+ linkerSettings: [
418
+ . linkedLibrary( " sqlite3 " ) ,
419
+ . linkedLibrary( " c++ " ) ,
420
+ . linkedLibrary( " z " ) ,
421
+ . linkedFramework( " StoreKit " ) ,
422
+ ]
423
+ ) ,
424
+
425
+ . target(
426
+ name: " FirebaseAnalyticsIdentitySupportTarget " ,
427
+ dependencies: [
428
+ . target(
429
+ name: " FirebaseAnalytics " ,
430
+ condition: . when( platforms: [ . iOS, . macCatalyst, . macOS, . tvOS] )
431
+ ) ,
432
+ . product( name: " GoogleAppMeasurementIdentitySupport " ,
433
+ package : " GoogleAppMeasurement " ,
434
+ condition: . when( platforms: [ . iOS, . macCatalyst, . macOS, . tvOS] ) ) ,
435
+ " FirebaseCore " ,
436
+ " FirebaseInstallations " ,
437
+ . product( name: " GULAppDelegateSwizzler " , package : " GoogleUtilities " ) ,
438
+ . product( name: " GULMethodSwizzler " , package : " GoogleUtilities " ) ,
439
+ . product( name: " GULNSData " , package : " GoogleUtilities " ) ,
440
+ . product( name: " GULNetwork " , package : " GoogleUtilities " ) ,
441
+ . product( name: " nanopb " , package : " nanopb " ) ,
442
+ ] ,
443
+ path: " FirebaseAnalyticsIdentitySupportWrapper " ,
444
+ linkerSettings: [
445
+ . linkedLibrary( " sqlite3 " ) ,
446
+ . linkedLibrary( " c++ " ) ,
447
+ . linkedLibrary( " z " ) ,
448
+ . linkedFramework( " StoreKit " ) ,
449
+ ]
450
+ ) ,
451
+
377
452
. target(
378
453
name: " FirebaseAnalyticsWithoutAdIdSupportTarget " ,
379
454
dependencies: [ . target( name: " FirebaseAnalyticsWithoutAdIdSupportWrapper " ,
0 commit comments