Skip to content

Commit c6a83eb

Browse files
authored
Analytics 9.0.0 (#9665)
* Analytics 9.0.0
1 parent dc45185 commit c6a83eb

9 files changed

+111
-9
lines changed

FirebaseAnalytics.podspec.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"z"
2323
],
2424
"license": {
25-
"text": "Copyright 2021 Google",
25+
"text": "Copyright 2022 Google",
2626
"type": "Copyright"
2727
},
2828
"name": "FirebaseAnalytics",
@@ -32,7 +32,7 @@
3232
"tvos": "12.0"
3333
},
3434
"source": {
35-
"http": "https://dl.google.com/firebase/ios/analytics/dcdcf15b4c4831d9/FirebaseAnalytics-8.15.0.tar.gz"
35+
"http": "https://dl.google.com/firebase/ios/analytics/a596b932b0fcdc4b/FirebaseAnalytics-9.0.0.tar.gz"
3636
},
3737
"subspecs": [
3838
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"authors": "Google, Inc.",
3+
"cocoapods_version": ">= 1.10.2",
4+
"dependencies": {
5+
"GoogleAppMeasurementOnDeviceConversion": "9.0.0"
6+
},
7+
"description": "On device conversion measurement plugin for FirebaseAnalytics. This pod does not expose any headers and isn't intended for direct use, but rather as a plugin of FirebaseAnalytics.",
8+
"homepage": "https://firebase.google.com/features/analytics/",
9+
"license": {
10+
"text": "Copyright 2022 Google",
11+
"type": "Copyright"
12+
},
13+
"name": "FirebaseAnalyticsOnDeviceConversion",
14+
"platforms": {
15+
"ios": "10.0"
16+
},
17+
"source": {
18+
"git": "https://github.com/firebase/firebase-ios-sdk.git",
19+
"tag": "CocoaPods-9.0.0"
20+
},
21+
"source_files": [ "FirebaseAnalyticsOnDeviceConversionWrapper/*" ],
22+
"static_framework": true,
23+
"summary": "On device conversion measurement plugin for FirebaseAnalytics. Not intended for direct use.",
24+
"version": "9.0.0"
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// Swift Package Manager needs at least one source file.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright 2022 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
// Swift Package Manager needs at least one header to prevent a warning. See
18+
// https://github.com/firebase/firebase-ios-sdk/pull/6504.

GoogleAppMeasurement.podspec.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"z"
2121
],
2222
"license": {
23-
"text": "Copyright 2021 Google",
23+
"text": "Copyright 2022 Google",
2424
"type": "Copyright"
2525
},
2626
"name": "GoogleAppMeasurement",
@@ -30,7 +30,7 @@
3030
"tvos": "12.0"
3131
},
3232
"source": {
33-
"http": "https://dl.google.com/firebase/ios/analytics/07f1277f1f905d64/GoogleAppMeasurement-8.15.0.tar.gz"
33+
"http": "https://dl.google.com/firebase/ios/analytics/c7d26f9ba4e99374/GoogleAppMeasurement-9.0.0.tar.gz"
3434
},
3535
"subspecs": [
3636
{
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"authors": "Google, Inc.",
3+
"cocoapods_version": ">= 1.10.2",
4+
"description": "On device conversion measurement plugin for Google App Measurement. This pod does not expose any headers and isn't intended for direct use, but rather as a plugin of Google App Measurement.",
5+
"homepage": "https://developers.google.com/ios",
6+
"libraries": [
7+
"c++"
8+
],
9+
"license": {
10+
"text": "Copyright 2022 Google",
11+
"type": "Copyright"
12+
},
13+
"name": "GoogleAppMeasurementOnDeviceConversion",
14+
"platforms": {
15+
"ios": "10.0"
16+
},
17+
"source": {
18+
"http": "https://dl.google.com/firebase/ios/analytics/c9d8918954034e34/GoogleAppMeasurementOnDeviceConversion-9.0.0.tar.gz"
19+
},
20+
"summary": "On device conversion measurement plugin for Google App Measurement. Not intended for direct use.",
21+
"vendored_frameworks": [
22+
"Frameworks/GoogleAppMeasurementOnDeviceConversion.xcframework"
23+
],
24+
"version": "9.0.0"
25+
}

Package.swift

+20-3
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ let package = Package(
3333
name: "FirebaseAnalyticsWithoutAdIdSupport",
3434
targets: ["FirebaseAnalyticsWithoutAdIdSupportTarget"]
3535
),
36+
.library(
37+
name: "FirebaseAnalyticsOnDeviceConversion",
38+
targets: ["FirebaseAnalyticsOnDeviceConversionTarget"]
39+
),
3640
.library(
3741
name: "FirebaseAnalyticsSwift",
3842
targets: ["FirebaseAnalyticsSwiftTarget"]
@@ -146,7 +150,7 @@ let package = Package(
146150
url: "https://github.com/google/GoogleAppMeasurement.git",
147151
// Note that CI changes the version to the head of main for CI.
148152
// See scripts/setup_spm_tests.sh.
149-
.exact("8.15.0")
153+
.exact("9.0.0")
150154
),
151155
.package(
152156
name: "GoogleDataTransport",
@@ -340,8 +344,8 @@ let package = Package(
340344
),
341345
.binaryTarget(
342346
name: "FirebaseAnalytics",
343-
url: "https://dl.google.com/firebase/ios/swiftpm/8.15.0/FirebaseAnalytics.zip",
344-
checksum: "9d075b16e9e32e2328afdee11bba33ef075ba7be106312a14c5601310d6ecd92"
347+
url: "https://dl.google.com/firebase/ios/swiftpm/9.0.0/FirebaseAnalytics.zip",
348+
checksum: "6e9ced53d0eda20c00edae9f8ca90493355c711a2bcd12ec0fe1e4643558c241"
345349
),
346350
.target(
347351
name: "FirebaseAnalyticsSwiftTarget",
@@ -385,6 +389,19 @@ let package = Package(
385389
]
386390
),
387391

392+
.target(
393+
name: "FirebaseAnalyticsOnDeviceConversionTarget",
394+
dependencies: [
395+
.product(name: "GoogleAppMeasurementOnDeviceConversion",
396+
package: "GoogleAppMeasurement",
397+
condition: .when(platforms: [.iOS])),
398+
],
399+
path: "FirebaseAnalyticsOnDeviceConversionWrapper",
400+
linkerSettings: [
401+
.linkedLibrary("c++"),
402+
]
403+
),
404+
388405
.target(
389406
name: "FirebaseAppDistributionTarget",
390407
dependencies: [.target(name: "FirebaseAppDistribution",

SwiftPMTests/analytics-import-test/analytics-import.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import FirebaseAnalytics
2121

2222
class importTest: XCTestCase {
2323
func testAnalyticsImported() {
24-
Analytics.logEvent(AnalyticsEventEcommercePurchase,
24+
Analytics.logEvent(AnalyticsEventPurchase,
2525
parameters: [AnalyticsParameterShipping: 10.0])
2626
}
2727

SwiftPMTests/analytics-import-test/firebase-import.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Firebase
1717

1818
class firebaseImportTest: XCTestCase {
1919
func testAnalyticsImported() {
20-
Analytics.logEvent(AnalyticsEventEcommercePurchase,
20+
Analytics.logEvent(AnalyticsEventPurchase,
2121
parameters: [AnalyticsParameterShipping: 10.0])
2222
}
2323
}

0 commit comments

Comments
 (0)