Skip to content

Commit 8bfc7fc

Browse files
authored
UID2GoogleGMADevelopmentApp Created (#2)
1 parent d000790 commit 8bfc7fc

File tree

18 files changed

+1004
-4
lines changed

18 files changed

+1004
-4
lines changed

Development/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp.xcodeproj/project.pbxproj

+446
Large diffs are not rendered by default.

Development/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
{
2+
"pins" : [
3+
{
4+
"identity" : "googleappmeasurement",
5+
"kind" : "remoteSourceControl",
6+
"location" : "https://github.com/google/GoogleAppMeasurement.git",
7+
"state" : {
8+
"revision" : "274428b83e063cd518b998555be0ec18abcbe9de",
9+
"version" : "10.8.0"
10+
}
11+
},
12+
{
13+
"identity" : "googleutilities",
14+
"kind" : "remoteSourceControl",
15+
"location" : "https://github.com/google/GoogleUtilities.git",
16+
"state" : {
17+
"revision" : "871d43135925cde39ef7421d8723ce47edfdcc39",
18+
"version" : "7.11.1"
19+
}
20+
},
21+
{
22+
"identity" : "nanopb",
23+
"kind" : "remoteSourceControl",
24+
"location" : "https://github.com/firebase/nanopb.git",
25+
"state" : {
26+
"revision" : "819d0a2173aff699fb8c364b6fb906f7cdb1a692",
27+
"version" : "2.30909.0"
28+
}
29+
},
30+
{
31+
"identity" : "promises",
32+
"kind" : "remoteSourceControl",
33+
"location" : "https://github.com/google/promises.git",
34+
"state" : {
35+
"revision" : "ec957ccddbcc710ccc64c9dcbd4c7006fcf8b73a",
36+
"version" : "2.2.0"
37+
}
38+
},
39+
{
40+
"identity" : "swift-package-manager-google-mobile-ads",
41+
"kind" : "remoteSourceControl",
42+
"location" : "https://github.com/googleads/swift-package-manager-google-mobile-ads.git",
43+
"state" : {
44+
"revision" : "886501bfff8bd8cc22899de2c1779e479c96f9ff",
45+
"version" : "10.3.0"
46+
}
47+
},
48+
{
49+
"identity" : "swift-package-manager-google-user-messaging-platform",
50+
"kind" : "remoteSourceControl",
51+
"location" : "https://github.com/googleads/swift-package-manager-google-user-messaging-platform.git",
52+
"state" : {
53+
"revision" : "3b924ce3313a5fd2fc6a8dc889a8c38f76890fe3",
54+
"version" : "2.0.0"
55+
}
56+
},
57+
{
58+
"identity" : "uid2-ios-sdk",
59+
"kind" : "remoteSourceControl",
60+
"location" : "https://github.com/IABTechLab/uid2-ios-sdk.git",
61+
"state" : {
62+
"revision" : "9706cbc8959593a81e5aea82926bc41ac9bbb9d3",
63+
"version" : "0.1.0"
64+
}
65+
}
66+
],
67+
"version" : 2
68+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// AppDataLoader.swift
3+
//
4+
//
5+
// Created by Brad Leege on 3/21/23.
6+
//
7+
8+
import Foundation
9+
10+
final class AppDataLoader {
11+
12+
static func load(fileName: String, fileExtension: String) throws -> Data {
13+
14+
guard let bundlePath = Bundle.main.path(forResource: fileName, ofType: fileExtension),
15+
let stringData = try String(contentsOfFile: bundlePath).data(using: .utf8) else {
16+
throw "Could not load data from file."
17+
}
18+
19+
return stringData
20+
}
21+
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// Date+AppExtensions.swift
3+
//
4+
//
5+
// Created by Brad Leege on 3/21/23.
6+
//
7+
8+
import Foundation
9+
10+
extension Date {
11+
12+
var millisecondsSince1970: Int64 {
13+
Int64((self.timeIntervalSince1970 * 1000.0).rounded())
14+
}
15+
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
//
2+
// String+AppExtensions.swift
3+
//
4+
//
5+
// Created by Brad Leege on 3/21/23.
6+
//
7+
8+
import Foundation
9+
10+
extension String: LocalizedError {
11+
12+
public var errorDescription: String? { return self }
13+
14+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"advertising_token": "NewAdvertisingTokenIjb6u6KcMAtd0/4ZIAYkXvFrMdlZVqfb9LNf99B+1ysE/lBzYVt64pxYxjobJMGbh5q/HsKY7KC0Xo5Rb/Vo8HC4dYOoWXyuGUaL7Jmbw4bzh+3pgokelUGyTX19DfArTeIg7n+8cxWQ=",
3+
"refresh_token": "NewRefreshTokenAAAF2c8H5dF8AAAF2c8H5dF8AAAADX393Vw94afoVLL6A+qjdSUEisEKx6t42fLgN+2dmTgUavagz0Q6Kp7ghM989hKhZDyAGjHyuAAwm+CX1cO7DWEtMeNUA9vkWDjcIc8yeDZ+jmBtEaw07x/cxoul6fpv2PQ==",
4+
"identity_expires": 1633643601000,
5+
"refresh_from": 1633643001000,
6+
"refresh_expires": 1636322000000,
7+
"refresh_response_key": "yptCUTBoZm1ffosgCrmuwg==",
8+
"status": "success"
9+
}
10+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
//
2+
// AppDelegate.swift
3+
// UID2GoogleGMADevelopmentApp
4+
//
5+
// Created by Brad Leege on 4/12/23.
6+
//
7+
8+
import GoogleMobileAds
9+
import UIKit
10+
11+
@main
12+
class AppDelegate: UIResponder, UIApplicationDelegate {
13+
14+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
15+
// Override point for customization after application launch.
16+
17+
// Initialize Google Mobile Ads SDK
18+
GADMobileAds.sharedInstance().start(completionHandler: nil)
19+
20+
return true
21+
}
22+
23+
// MARK: UISceneSession Lifecycle
24+
25+
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
26+
// Called when a new scene session is being created.
27+
// Use this method to select a configuration to create the new scene with.
28+
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
29+
}
30+
31+
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
32+
// Called when the user discards a scene session.
33+
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
34+
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
35+
}
36+
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"colors" : [
3+
{
4+
"idiom" : "universal"
5+
}
6+
],
7+
"info" : {
8+
"author" : "xcode",
9+
"version" : 1
10+
}
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"platform" : "ios",
6+
"size" : "1024x1024"
7+
}
8+
],
9+
"info" : {
10+
"author" : "xcode",
11+
"version" : 1
12+
}
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"info" : {
3+
"author" : "xcode",
4+
"version" : 1
5+
}
6+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
5+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
6+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
7+
</dependencies>
8+
<scenes>
9+
<!--View Controller-->
10+
<scene sceneID="EHf-IW-A2E">
11+
<objects>
12+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
13+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
14+
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
15+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
16+
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
17+
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
18+
</view>
19+
</viewController>
20+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
21+
</objects>
22+
<point key="canvasLocation" x="53" y="375"/>
23+
</scene>
24+
</scenes>
25+
</document>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13528" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
3+
<device id="retina5_9" orientation="portrait">
4+
<adaptation id="fullscreen"/>
5+
</device>
6+
<dependencies>
7+
<deployment identifier="iOS"/>
8+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13526"/>
9+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10+
</dependencies>
11+
<scenes>
12+
<!--View Controller-->
13+
<scene sceneID="tne-QT-ifu">
14+
<objects>
15+
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="BannerExample" customModuleProvider="target" sceneMemberID="viewController">
16+
<layoutGuides>
17+
<viewControllerLayoutGuide type="top" id="TWU-f5-Eu7"/>
18+
<viewControllerLayoutGuide type="bottom" id="3Le-Kg-LNi"/>
19+
</layoutGuides>
20+
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
21+
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
22+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
23+
<subviews>
24+
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HpA-oj-RQs" customClass="GADBannerView">
25+
<rect key="frame" x="27.666666666666657" y="728" width="320" height="50"/>
26+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
27+
<constraints>
28+
<constraint firstAttribute="width" constant="320" id="TxW-US-Ckc"/>
29+
<constraint firstAttribute="height" constant="50" id="c8F-jN-qA7"/>
30+
</constraints>
31+
</view>
32+
</subviews>
33+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
34+
<constraints>
35+
<constraint firstItem="HpA-oj-RQs" firstAttribute="bottom" secondItem="3Le-Kg-LNi" secondAttribute="top" id="8jY-pF-pXR"/>
36+
<constraint firstAttribute="centerX" secondItem="HpA-oj-RQs" secondAttribute="centerX" id="WpR-yO-ukg"/>
37+
</constraints>
38+
</view>
39+
<connections>
40+
<outlet property="bannerView" destination="HpA-oj-RQs" id="fFs-Wi-V7a"/>
41+
</connections>
42+
</viewController>
43+
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
44+
</objects>
45+
<point key="canvasLocation" x="128" y="406.59333333333331"/>
46+
</scene>
47+
</scenes>
48+
</document>

0 commit comments

Comments
 (0)