-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UID2GoogleGMADevelopmentApp Created (#2)
- Loading branch information
Showing
18 changed files
with
1,004 additions
and
4 deletions.
There are no files selected for viewing
446 changes: 446 additions & 0 deletions
446
...lopment/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp.xcodeproj/project.pbxproj
Large diffs are not rendered by default.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...entApp/UID2GoogleGMADevelopmentApp.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
...ogleGMADevelopmentApp.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
68 changes: 68 additions & 0 deletions
68
...ogleGMADevelopmentApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"pins" : [ | ||
{ | ||
"identity" : "googleappmeasurement", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/GoogleAppMeasurement.git", | ||
"state" : { | ||
"revision" : "274428b83e063cd518b998555be0ec18abcbe9de", | ||
"version" : "10.8.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "googleutilities", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/GoogleUtilities.git", | ||
"state" : { | ||
"revision" : "871d43135925cde39ef7421d8723ce47edfdcc39", | ||
"version" : "7.11.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "nanopb", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/firebase/nanopb.git", | ||
"state" : { | ||
"revision" : "819d0a2173aff699fb8c364b6fb906f7cdb1a692", | ||
"version" : "2.30909.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "promises", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/google/promises.git", | ||
"state" : { | ||
"revision" : "ec957ccddbcc710ccc64c9dcbd4c7006fcf8b73a", | ||
"version" : "2.2.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-package-manager-google-mobile-ads", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/googleads/swift-package-manager-google-mobile-ads.git", | ||
"state" : { | ||
"revision" : "886501bfff8bd8cc22899de2c1779e479c96f9ff", | ||
"version" : "10.3.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "swift-package-manager-google-user-messaging-platform", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/googleads/swift-package-manager-google-user-messaging-platform.git", | ||
"state" : { | ||
"revision" : "3b924ce3313a5fd2fc6a8dc889a8c38f76890fe3", | ||
"version" : "2.0.0" | ||
} | ||
}, | ||
{ | ||
"identity" : "uid2-ios-sdk", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/IABTechLab/uid2-ios-sdk.git", | ||
"state" : { | ||
"revision" : "9706cbc8959593a81e5aea82926bc41ac9bbb9d3", | ||
"version" : "0.1.0" | ||
} | ||
} | ||
], | ||
"version" : 2 | ||
} |
22 changes: 22 additions & 0 deletions
22
...pment/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp/AppData/AppDataLoader.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// AppDataLoader.swift | ||
// | ||
// | ||
// Created by Brad Leege on 3/21/23. | ||
// | ||
|
||
import Foundation | ||
|
||
final class AppDataLoader { | ||
|
||
static func load(fileName: String, fileExtension: String) throws -> Data { | ||
|
||
guard let bundlePath = Bundle.main.path(forResource: fileName, ofType: fileExtension), | ||
let stringData = try String(contentsOfFile: bundlePath).data(using: .utf8) else { | ||
throw "Could not load data from file." | ||
} | ||
|
||
return stringData | ||
} | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
.../UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp/AppData/Date+AppExtensions.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// Date+AppExtensions.swift | ||
// | ||
// | ||
// Created by Brad Leege on 3/21/23. | ||
// | ||
|
||
import Foundation | ||
|
||
extension Date { | ||
|
||
var millisecondsSince1970: Int64 { | ||
Int64((self.timeIntervalSince1970 * 1000.0).rounded()) | ||
} | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
...ID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp/AppData/String+AppExtensions.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// String+AppExtensions.swift | ||
// | ||
// | ||
// Created by Brad Leege on 3/21/23. | ||
// | ||
|
||
import Foundation | ||
|
||
extension String: LocalizedError { | ||
|
||
public var errorDescription: String? { return self } | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
...lopment/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp/AppData/uid2identity.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"advertising_token": "NewAdvertisingTokenIjb6u6KcMAtd0/4ZIAYkXvFrMdlZVqfb9LNf99B+1ysE/lBzYVt64pxYxjobJMGbh5q/HsKY7KC0Xo5Rb/Vo8HC4dYOoWXyuGUaL7Jmbw4bzh+3pgokelUGyTX19DfArTeIg7n+8cxWQ=", | ||
"refresh_token": "NewRefreshTokenAAAF2c8H5dF8AAAF2c8H5dF8AAAADX393Vw94afoVLL6A+qjdSUEisEKx6t42fLgN+2dmTgUavagz0Q6Kp7ghM989hKhZDyAGjHyuAAwm+CX1cO7DWEtMeNUA9vkWDjcIc8yeDZ+jmBtEaw07x/cxoul6fpv2PQ==", | ||
"identity_expires": 1633643601000, | ||
"refresh_from": 1633643001000, | ||
"refresh_expires": 1636322000000, | ||
"refresh_response_key": "yptCUTBoZm1ffosgCrmuwg==", | ||
"status": "success" | ||
} | ||
|
37 changes: 37 additions & 0 deletions
37
Development/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp/AppDelegate.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// AppDelegate.swift | ||
// UID2GoogleGMADevelopmentApp | ||
// | ||
// Created by Brad Leege on 4/12/23. | ||
// | ||
|
||
import GoogleMobileAds | ||
import UIKit | ||
|
||
@main | ||
class AppDelegate: UIResponder, UIApplicationDelegate { | ||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
// Override point for customization after application launch. | ||
|
||
// Initialize Google Mobile Ads SDK | ||
GADMobileAds.sharedInstance().start(completionHandler: nil) | ||
|
||
return true | ||
} | ||
|
||
// MARK: UISceneSession Lifecycle | ||
|
||
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { | ||
// Called when a new scene session is being created. | ||
// Use this method to select a configuration to create the new scene with. | ||
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) | ||
} | ||
|
||
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { | ||
// Called when the user discards a scene session. | ||
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. | ||
// Use this method to release any resources that were specific to the discarded scenes, as they will not return. | ||
} | ||
|
||
} |
11 changes: 11 additions & 0 deletions
11
...lopmentApp/UID2GoogleGMADevelopmentApp/Assets.xcassets/AccentColor.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
...velopmentApp/UID2GoogleGMADevelopmentApp/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"platform" : "ios", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
...ent/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp/Assets.xcassets/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...ID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp/Base.lproj/LaunchScreen.storyboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<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"> | ||
<dependencies> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/> | ||
<capability name="Safe area layout guides" minToolsVersion="9.0"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<scenes> | ||
<!--View Controller--> | ||
<scene sceneID="EHf-IW-A2E"> | ||
<objects> | ||
<viewController id="01J-lp-oVM" sceneMemberID="viewController"> | ||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | ||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> | ||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/> | ||
</view> | ||
</viewController> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="53" y="375"/> | ||
</scene> | ||
</scenes> | ||
</document> |
48 changes: 48 additions & 0 deletions
48
...opment/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp/Base.lproj/Main.storyboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
<device id="retina5_9" orientation="portrait"> | ||
<adaptation id="fullscreen"/> | ||
</device> | ||
<dependencies> | ||
<deployment identifier="iOS"/> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13526"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<scenes> | ||
<!--View Controller--> | ||
<scene sceneID="tne-QT-ifu"> | ||
<objects> | ||
<viewController id="BYZ-38-t0r" customClass="ViewController" customModule="BannerExample" customModuleProvider="target" sceneMemberID="viewController"> | ||
<layoutGuides> | ||
<viewControllerLayoutGuide type="top" id="TWU-f5-Eu7"/> | ||
<viewControllerLayoutGuide type="bottom" id="3Le-Kg-LNi"/> | ||
</layoutGuides> | ||
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC"> | ||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<subviews> | ||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HpA-oj-RQs" customClass="GADBannerView"> | ||
<rect key="frame" x="27.666666666666657" y="728" width="320" height="50"/> | ||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
<constraints> | ||
<constraint firstAttribute="width" constant="320" id="TxW-US-Ckc"/> | ||
<constraint firstAttribute="height" constant="50" id="c8F-jN-qA7"/> | ||
</constraints> | ||
</view> | ||
</subviews> | ||
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> | ||
<constraints> | ||
<constraint firstItem="HpA-oj-RQs" firstAttribute="bottom" secondItem="3Le-Kg-LNi" secondAttribute="top" id="8jY-pF-pXR"/> | ||
<constraint firstAttribute="centerX" secondItem="HpA-oj-RQs" secondAttribute="centerX" id="WpR-yO-ukg"/> | ||
</constraints> | ||
</view> | ||
<connections> | ||
<outlet property="bannerView" destination="HpA-oj-RQs" id="fFs-Wi-V7a"/> | ||
</connections> | ||
</viewController> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="128" y="406.59333333333331"/> | ||
</scene> | ||
</scenes> | ||
</document> |
Oops, something went wrong.