Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
run: cd UID2Prebid && ./bootstrap.sh && cd -

- name: Build UID2Prebid for iOS
run: xcodebuild -project UID2Prebid/UID2Prebid.xcodeproj -scheme UID2Prebid -destination "generic/platform=iOS"
run: xcodebuild -workspace UID2Prebid/UID2Prebid.xcworkspace -scheme UID2Prebid -destination "generic/platform=iOS"

- name: Run UID2Prebid unit tests
run: xcodebuild test -project UID2Prebid/UID2Prebid.xcodeproj -scheme UID2Prebid -sdk iphonesimulator17.4 -destination "OS=17.4,name=iPhone 15"
run: xcodebuild test -workspace UID2Prebid/UID2Prebid.xcworkspace -scheme UID2Prebid -sdk iphonesimulator17.4 -destination "OS=17.4,name=iPhone 15"

- name: Lint UID2 pod spec
run: pod lib lint UID2.podspec.json --verbose
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ DerivedData/
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
*.swp
Pods
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
[submodule "Carthage/Checkouts/prebid-mobile-ios"]
path = UID2Prebid/Carthage/Checkouts/prebid-mobile-ios
url = https://github.com/prebid/prebid-mobile-ios.git
1 change: 0 additions & 1 deletion UID2Prebid/Cartfile.private

This file was deleted.

1 change: 0 additions & 1 deletion UID2Prebid/Cartfile.resolved

This file was deleted.

1 change: 0 additions & 1 deletion UID2Prebid/Carthage/Checkouts/prebid-mobile-ios
Submodule prebid-mobile-ios deleted from f18bf5
13 changes: 13 additions & 0 deletions UID2Prebid/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
platform :ios, '13.0'

def pod_PrebidMobile
pod 'PrebidMobile', '~> 2.4.0'
end

target 'UID2Prebid' do
pod_PrebidMobile
end

target 'UID2PrebidTests' do
pod_PrebidMobile
end
18 changes: 18 additions & 0 deletions UID2Prebid/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
PODS:
- PrebidMobile (2.4.0):
- PrebidMobile/core (= 2.4.0)
- PrebidMobile/core (2.4.0)

DEPENDENCIES:
- PrebidMobile (~> 2.4.0)

SPEC REPOS:
trunk:
- PrebidMobile

SPEC CHECKSUMS:
PrebidMobile: cad263381f04c99e7be8311155cf32a707afe442

PODFILE CHECKSUM: cf8c2b5adbf2b526289bb5c4b5083e6e04594f39

COCOAPODS: 1.16.2
2 changes: 1 addition & 1 deletion UID2Prebid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ cd UID2Prebid
./bootstrap.sh
```

To develop & test UID2Prebid, open `UID2Prebid.xcodeproj`.
To develop & test UID2Prebid, open `UID2Prebid.xcworkspace`.
82 changes: 78 additions & 4 deletions UID2Prebid/UID2Prebid.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
objects = {

/* Begin PBXBuildFile section */
7B496E10AF9681ACC5097DEB /* libPods-UID2Prebid.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A845EBF26486811E0C4325E /* libPods-UID2Prebid.a */; };
897EE7932FDF53A53B630EF4 /* libPods-UID2PrebidTests.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7DAE44C2D534614CC784F924 /* libPods-UID2PrebidTests.a */; };
BF16EC322C5D8D7100B0CA03 /* IdentityPackage.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF16EC0E2C5D8D7100B0CA03 /* IdentityPackage.swift */; };
BF16EC332C5D8D7100B0CA03 /* IdentityStatus.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF16EC0F2C5D8D7100B0CA03 /* IdentityStatus.swift */; };
BF16EC342C5D8D7100B0CA03 /* IdentityType.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF16EC102C5D8D7100B0CA03 /* IdentityType.swift */; };
Expand Down Expand Up @@ -41,7 +43,6 @@
BFE641292C5CDCB800E241CF /* UID2Prebid.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BFE641202C5CDCB800E241CF /* UID2Prebid.framework */; };
BFE641392C5CDD0600E241CF /* UID2PrebidTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFE641382C5CDD0600E241CF /* UID2PrebidTests.swift */; };
BFE6413B2C5CDD0B00E241CF /* UID2Prebid.swift in Sources */ = {isa = PBXBuildFile; fileRef = BFE6413A2C5CDD0B00E241CF /* UID2Prebid.swift */; };
BFE641402C5CDFC400E241CF /* XCPrebidMobile.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = BFE6413F2C5CDFC400E241CF /* XCPrebidMobile.xcframework */; };
BFE642032C5CE90700E241CF /* SwiftASN1 in Frameworks */ = {isa = PBXBuildFile; productRef = BFE642022C5CE90700E241CF /* SwiftASN1 */; };
BFE642042C5CE9F200E241CF /* UID2.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = BFE641A92C5CE8A700E241CF /* UID2.framework */; };
BFE6421A2C5CEB2000E241CF /* generate-token-200-optout.json in Resources */ = {isa = PBXBuildFile; fileRef = BFE642082C5CEB2000E241CF /* generate-token-200-optout.json */; };
Expand Down Expand Up @@ -95,6 +96,12 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
001001D501EB98B457E66499 /* Pods-UID2Prebid.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-UID2Prebid.debug.xcconfig"; path = "Target Support Files/Pods-UID2Prebid/Pods-UID2Prebid.debug.xcconfig"; sourceTree = "<group>"; };
1AA35F8425128D4E63728038 /* Pods-UID2Prebid.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-UID2Prebid.release.xcconfig"; path = "Target Support Files/Pods-UID2Prebid/Pods-UID2Prebid.release.xcconfig"; sourceTree = "<group>"; };
25AE0E94E1FB83E908BAFB6B /* Pods-UID2PrebidTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-UID2PrebidTests.release.xcconfig"; path = "Target Support Files/Pods-UID2PrebidTests/Pods-UID2PrebidTests.release.xcconfig"; sourceTree = "<group>"; };
5A845EBF26486811E0C4325E /* libPods-UID2Prebid.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-UID2Prebid.a"; sourceTree = BUILT_PRODUCTS_DIR; };
7DAE44C2D534614CC784F924 /* libPods-UID2PrebidTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-UID2PrebidTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
89A7A3584D076CF6CF09E235 /* Pods-UID2PrebidTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-UID2PrebidTests.debug.xcconfig"; path = "Target Support Files/Pods-UID2PrebidTests/Pods-UID2PrebidTests.debug.xcconfig"; sourceTree = "<group>"; };
BF16EC0E2C5D8D7100B0CA03 /* IdentityPackage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IdentityPackage.swift; sourceTree = "<group>"; };
BF16EC0F2C5D8D7100B0CA03 /* IdentityStatus.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IdentityStatus.swift; sourceTree = "<group>"; };
BF16EC102C5D8D7100B0CA03 /* IdentityType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IdentityType.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -130,7 +137,6 @@
BFE641282C5CDCB800E241CF /* UID2PrebidTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UID2PrebidTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
BFE641382C5CDD0600E241CF /* UID2PrebidTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UID2PrebidTests.swift; sourceTree = "<group>"; };
BFE6413A2C5CDD0B00E241CF /* UID2Prebid.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UID2Prebid.swift; sourceTree = "<group>"; };
BFE6413F2C5CDFC400E241CF /* XCPrebidMobile.xcframework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcframework; name = XCPrebidMobile.xcframework; path = Dependencies/XCPrebidMobile.xcframework; sourceTree = "<group>"; };
BFE641972C5CE64400E241CF /* TestHelpers.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = TestHelpers.framework; sourceTree = BUILT_PRODUCTS_DIR; };
BFE641A92C5CE8A700E241CF /* UID2.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = UID2.framework; sourceTree = BUILT_PRODUCTS_DIR; };
BFE642082C5CEB2000E241CF /* generate-token-200-optout.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "generate-token-200-optout.json"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -159,7 +165,7 @@
buildActionMask = 2147483647;
files = (
BFE642042C5CE9F200E241CF /* UID2.framework in Frameworks */,
BFE641402C5CDFC400E241CF /* XCPrebidMobile.xcframework in Frameworks */,
7B496E10AF9681ACC5097DEB /* libPods-UID2Prebid.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -168,6 +174,7 @@
buildActionMask = 2147483647;
files = (
BFE641292C5CDCB800E241CF /* UID2Prebid.framework in Frameworks */,
897EE7932FDF53A53B630EF4 /* libPods-UID2PrebidTests.a in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -287,6 +294,7 @@
BFE6412C2C5CDCB800E241CF /* UID2PrebidTests */,
BFE641212C5CDCB800E241CF /* Products */,
BFE6413E2C5CDFC400E241CF /* Frameworks */,
EE67CB851F6DF37DB519F636 /* Pods */,
);
sourceTree = "<group>";
};
Expand Down Expand Up @@ -321,7 +329,8 @@
isa = PBXGroup;
children = (
BFE6422C2C5CED7200E241CF /* XCTest.framework */,
BFE6413F2C5CDFC400E241CF /* XCPrebidMobile.xcframework */,
5A845EBF26486811E0C4325E /* libPods-UID2Prebid.a */,
7DAE44C2D534614CC784F924 /* libPods-UID2PrebidTests.a */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -358,6 +367,18 @@
path = ../Tests/TestHelpers;
sourceTree = "<group>";
};
EE67CB851F6DF37DB519F636 /* Pods */ = {
isa = PBXGroup;
children = (
001001D501EB98B457E66499 /* Pods-UID2Prebid.debug.xcconfig */,
1AA35F8425128D4E63728038 /* Pods-UID2Prebid.release.xcconfig */,
89A7A3584D076CF6CF09E235 /* Pods-UID2PrebidTests.debug.xcconfig */,
25AE0E94E1FB83E908BAFB6B /* Pods-UID2PrebidTests.release.xcconfig */,
);
name = Pods;
path = Pods;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXHeadersBuildPhase section */
Expand Down Expand Up @@ -389,6 +410,7 @@
isa = PBXNativeTarget;
buildConfigurationList = BFE641322C5CDCB800E241CF /* Build configuration list for PBXNativeTarget "UID2Prebid" */;
buildPhases = (
33980871D586868CEBA4BA42 /* [CP] Check Pods Manifest.lock */,
BFE6411B2C5CDCB800E241CF /* Headers */,
BFE6411C2C5CDCB800E241CF /* Sources */,
BFE6411D2C5CDCB800E241CF /* Frameworks */,
Expand All @@ -408,6 +430,7 @@
isa = PBXNativeTarget;
buildConfigurationList = BFE641352C5CDCB800E241CF /* Build configuration list for PBXNativeTarget "UID2PrebidTests" */;
buildPhases = (
EA38F749A9E8C9FE8342B9D6 /* [CP] Check Pods Manifest.lock */,
BFE641242C5CDCB800E241CF /* Sources */,
BFE641252C5CDCB800E241CF /* Frameworks */,
BFE641262C5CDCB800E241CF /* Resources */,
Expand Down Expand Up @@ -554,6 +577,53 @@
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
33980871D586868CEBA4BA42 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-UID2Prebid-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
EA38F749A9E8C9FE8342B9D6 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-UID2PrebidTests-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
BFE6411C2C5CDCB800E241CF /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand Down Expand Up @@ -774,6 +844,7 @@
};
BFE641332C5CDCB800E241CF /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 001001D501EB98B457E66499 /* Pods-UID2Prebid.debug.xcconfig */;
buildSettings = {
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
CLANG_ENABLE_MODULES = YES;
Expand Down Expand Up @@ -809,6 +880,7 @@
};
BFE641342C5CDCB800E241CF /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 1AA35F8425128D4E63728038 /* Pods-UID2Prebid.release.xcconfig */;
buildSettings = {
BUILD_LIBRARY_FOR_DISTRIBUTION = NO;
CLANG_ENABLE_MODULES = YES;
Expand Down Expand Up @@ -843,6 +915,7 @@
};
BFE641362C5CDCB800E241CF /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 89A7A3584D076CF6CF09E235 /* Pods-UID2PrebidTests.debug.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
Expand All @@ -859,6 +932,7 @@
};
BFE641372C5CDCB800E241CF /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 25AE0E94E1FB83E908BAFB6B /* Pods-UID2PrebidTests.release.xcconfig */;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
Expand Down
10 changes: 10 additions & 0 deletions UID2Prebid/UID2Prebid.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

35 changes: 1 addition & 34 deletions UID2Prebid/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -1,37 +1,4 @@
#!/bin/sh
set -euxo pipefail

# Clone prebid-mobile-ios as a submodule, build it for device and simulator, and produce an XCFramework
# This won't be necessary when prebid-mobile-ios supports Swift Package Manager
rm -rf Dependencies
mkdir Dependencies
git submodule update --init

xcodebuild archive \
only_active_arch=NO \
defines_module=YES \
SKIP_INSTALL=NO \
-workspace Carthage/Checkouts/prebid-mobile-ios/PrebidMobile.xcworkspace \
-scheme "PrebidMobile" \
-configuration Release \
-arch arm64 \
-sdk "iphoneos" \
-archivePath "Dependencies/PrebidMobile.xcarchive"

xcodebuild archive \
only_active_arch=NO \
defines_module=YES \
SKIP_INSTALL=NO \
-workspace Carthage/Checkouts/prebid-mobile-ios/PrebidMobile.xcworkspace \
-scheme "PrebidMobile" \
-configuration Release \
-sdk "iphonesimulator" \
-archivePath "Dependencies/PrebidMobile-simulator.xcarchive"

xcodebuild -create-xcframework \
-framework "Dependencies/PrebidMobile.xcarchive/Products/Library/Frameworks/PrebidMobile.framework" \
-framework "Dependencies/PrebidMobile-simulator.xcarchive/Products/Library/Frameworks/PrebidMobile.framework" \
-output "Dependencies/XCPrebidMobile.xcframework"

rm -r Dependencies/PrebidMobile.xcarchive
rm -r Dependencies/PrebidMobile-simulator.xcarchive
pod install