ODM2 open beta (#92)

* ODM2 open beta

* Add deprecation warning to dummy.m in GoogleAppMeasurementOnDeviceConversionWrapper/ and GoogleAppMeasurementWithoutAdIdSupportWrapper/

* Comment out warning's for now
This commit is contained in:
pcfba authored and GitHub committed 2025-05-22 15:19:20 -07:00
1 parent 543071966b
commit d96c7fd793
7 files changed
+138 -1

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Swift Package Manager needs at least one source file.
@@ -0,0 +1,18 @@
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Swift Package Manager needs at least one header to prevent a warning. See
// https://github.com/firebase/firebase-ios-sdk/pull/6504.
@@ -0,0 +1,17 @@
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Swift Package Manager needs at least one source file.
@@ -0,0 +1,18 @@
/*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// Swift Package Manager needs at least one header to prevent a warning. See
// https://github.com/firebase/firebase-ios-sdk/pull/6504.
@@ -15,3 +15,5 @@
*/
// Swift Package Manager needs at least one source file.
// #warning "GoogleAppMeasurementOnDeviceConversion is deprecated. Use GoogleAdsOnDeviceConversion instead."
@@ -15,3 +15,5 @@
*/
// Swift Package Manager needs at least one source file.
// #warning "GoogleAppMeasurementWithoutAdIdSupport is deprecated. Use GoogleAppMeasurementCore instead."
+64 -1
View File
@@ -25,10 +25,20 @@ let package = Package(
name: "GoogleAppMeasurement",
targets: ["GoogleAppMeasurementTarget"]
),
.library(
name: "GoogleAppMeasurementCore",
targets: ["GoogleAppMeasurementCoreTarget"]
),
.library(
name: "GoogleAppMeasurementIdentitySupport",
targets: ["GoogleAppMeasurementIdentitySupportTarget"]
),
// Deprecated. Use GoogleAppMeasurementCore instead.
.library(
name: "GoogleAppMeasurementWithoutAdIdSupport",
targets: ["GoogleAppMeasurementWithoutAdIdSupportTarget"]
),
// Deprecated. Use GoogleAdsOnDeviceConversion instead.
.library(
name: "GoogleAppMeasurementOnDeviceConversion",
targets: ["GoogleAppMeasurementOnDeviceConversionTarget"]
@@ -45,10 +55,63 @@ let package = Package(
url: "https://github.com/firebase/nanopb.git",
"2.30910.0" ..< "2.30911.0"
),
.package(
name: "GoogleAdsOnDeviceConversion",
url: "https://github.com/googleads/google-ads-on-device-conversion-ios-sdk",
"1.3.0" ..< "3.0.0"
),
],
targets: [
.target(
name: "GoogleAppMeasurementTarget",
dependencies: [
.target(
name: "GoogleAppMeasurementIdentitySupport",
condition: .when(platforms: [.iOS, .macCatalyst, .macOS, .tvOS])
),
.target(
name: "GoogleAppMeasurement",
condition: .when(platforms: [.iOS, .macCatalyst, .macOS, .tvOS])
),
.product(name: "GULAppDelegateSwizzler", package: "GoogleUtilities"),
.product(name: "GULMethodSwizzler", package: "GoogleUtilities"),
.product(name: "GULNSData", package: "GoogleUtilities"),
.product(name: "GULNetwork", package: "GoogleUtilities"),
.product(name: "nanopb", package: "nanopb"),
.product(name: "GoogleAdsOnDeviceConversion", package: "GoogleAdsOnDeviceConversion"),
],
path: "GoogleAppMeasurementWrapper",
linkerSettings: [
.linkedLibrary("sqlite3"),
.linkedLibrary("c++"),
.linkedLibrary("z"),
.linkedFramework("StoreKit"),
]
),
.target(
name: "GoogleAppMeasurementCoreTarget",
dependencies: [
.target(
name: "GoogleAppMeasurement",
condition: .when(platforms: [.iOS, .macCatalyst, .macOS, .tvOS])
),
.product(name: "GULAppDelegateSwizzler", package: "GoogleUtilities"),
.product(name: "GULMethodSwizzler", package: "GoogleUtilities"),
.product(name: "GULNSData", package: "GoogleUtilities"),
.product(name: "GULNetwork", package: "GoogleUtilities"),
.product(name: "nanopb", package: "nanopb"),
],
path: "GoogleAppMeasurementCoreWrapper",
linkerSettings: [
.linkedLibrary("sqlite3"),
.linkedLibrary("c++"),
.linkedLibrary("z"),
.linkedFramework("StoreKit"),
]
),
.target(
name: "GoogleAppMeasurementIdentitySupportTarget",
dependencies: [
.target(
name: "GoogleAppMeasurementIdentitySupport",
@@ -64,7 +127,7 @@ let package = Package(
.product(name: "GULNetwork", package: "GoogleUtilities"),
.product(name: "nanopb", package: "nanopb"),
],
path: "GoogleAppMeasurementWrapper",
path: "GoogleAppMeasurementIdentitySupportWrapper",
linkerSettings: [
.linkedLibrary("sqlite3"),
.linkedLibrary("c++"),