-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
315 changed files
with
6,770 additions
and
1,337 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -19,3 +19,4 @@ opt_in_rules: | |
|
||
excluded: | ||
- YELLO-iOS/Application | ||
- YELLO-iOS/Global |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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
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,38 @@ | ||
// | ||
// AppTracking.swift | ||
// YELLO-iOS | ||
// | ||
// Created by 지희의 MAC on 2/18/24. | ||
// | ||
|
||
import AdSupport | ||
import AppTrackingTransparency | ||
import Foundation | ||
|
||
final class AppTracking { | ||
static var idfa: UUID { | ||
return ASIdentifierManager.shared().advertisingIdentifier | ||
} | ||
|
||
static func requestTrackingAuthorization() { | ||
DispatchQueue.main.asyncAfter(deadline: .now() + 1) { | ||
if #available(iOS 14, *) { | ||
ATTrackingManager.requestTrackingAuthorization { (status) in | ||
switch status { | ||
case .notDetermined: | ||
print("notDetermined") // 결정되지 않음 | ||
case .restricted: | ||
print("restricted") // 제한됨 | ||
case .denied: | ||
print("denied") // 거부됨 | ||
case .authorized: | ||
print("authorized") // 허용됨 | ||
debugPrint("사용자의IDFA: \(idfa)") | ||
@unknown default: | ||
print("error") // 알려지지 않음 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
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
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,20 @@ | ||
// | ||
// Array+.swift | ||
// YELLO-iOS | ||
// | ||
// Created by 지희의 MAC on 2/10/24. | ||
// | ||
|
||
import Foundation | ||
|
||
extension Array { | ||
subscript (safe index: Array.Index) -> Element? { | ||
get { | ||
return indices ~= index ? self[index] : nil | ||
} | ||
set { | ||
guard let element = newValue else { return } | ||
self[index] = element | ||
} | ||
} | ||
} |
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
Oops, something went wrong.