Skip to content

Commit 8bfc7fc

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

18 files changed

Lines changed: 1004 additions & 4 deletions

File tree

Development/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp.xcodeproj/project.pbxproj

Lines changed: 446 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 7 additions & 0 deletions
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>

Development/UID2GoogleGMADevelopmentApp/UID2GoogleGMADevelopmentApp.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 68 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 22 additions & 0 deletions
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+
}
Lines changed: 16 additions & 0 deletions
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+
}
Lines changed: 14 additions & 0 deletions
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+
}
Lines changed: 10 additions & 0 deletions
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+
Lines changed: 37 additions & 0 deletions
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+
}
Lines changed: 11 additions & 0 deletions
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+
}

0 commit comments

Comments
 (0)