Skip to content

Commit

Permalink
Merge pull request #129 from DeveloperAcademy-POSTECH/develop
Browse files Browse the repository at this point in the history
Update Version 1.3.0
  • Loading branch information
zaehorang authored Dec 2, 2024
2 parents fb15d42 + 84b07ee commit 03225ca
Show file tree
Hide file tree
Showing 91 changed files with 3,286 additions and 984 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,5 @@ iOSInjectionProject/
*.DS_Store
*.xcuserstate
*.xcconfig

GoogleService-Info.plist
277 changes: 258 additions & 19 deletions FiveGuyes/FiveGuyes.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,5 +1,123 @@
{
"originHash" : "fc494ae213b352fc476555c2b7911ae520604e8a19ab8432fc783acaba846b4e",
"pins" : [
{
"identity" : "abseil-cpp-binary",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/abseil-cpp-binary.git",
"state" : {
"revision" : "194a6706acbd25e4ef639bcaddea16e8758a3e27",
"version" : "1.2024011602.0"
}
},
{
"identity" : "app-check",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/app-check.git",
"state" : {
"revision" : "61b85103a1aeed8218f17c794687781505fbbef5",
"version" : "11.2.0"
}
},
{
"identity" : "firebase-ios-sdk",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/firebase-ios-sdk",
"state" : {
"revision" : "dbdfdc44bee8b8e4eaa5ec27eb12b9338f3f2bc1",
"version" : "11.5.0"
}
},
{
"identity" : "googleappmeasurement",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleAppMeasurement.git",
"state" : {
"revision" : "4f234bcbdae841d7015258fbbf8e7743a39b8200",
"version" : "11.4.0"
}
},
{
"identity" : "googledatatransport",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleDataTransport.git",
"state" : {
"revision" : "617af071af9aa1d6a091d59a202910ac482128f9",
"version" : "10.1.0"
}
},
{
"identity" : "googleutilities",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleUtilities.git",
"state" : {
"revision" : "53156c7ec267db846e6b64c9f4c4e31ba4cf75eb",
"version" : "8.0.2"
}
},
{
"identity" : "grpc-binary",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/grpc-binary.git",
"state" : {
"revision" : "f56d8fc3162de9a498377c7b6cea43431f4f5083",
"version" : "1.65.1"
}
},
{
"identity" : "gtm-session-fetcher",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/gtm-session-fetcher.git",
"state" : {
"revision" : "5cfe5f090c982de9c58605d2a82a4fc77b774fbd",
"version" : "4.1.0"
}
},
{
"identity" : "interop-ios-for-google-sdks",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/interop-ios-for-google-sdks.git",
"state" : {
"revision" : "2d12673670417654f08f5f90fdd62926dc3a2648",
"version" : "100.0.0"
}
},
{
"identity" : "leveldb",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/leveldb.git",
"state" : {
"revision" : "a0bc79961d7be727d258d33d5a6b2f1023270ba1",
"version" : "1.22.5"
}
},
{
"identity" : "nanopb",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/nanopb.git",
"state" : {
"revision" : "b7e1104502eca3a213b46303391ca4d3bc8ddec1",
"version" : "2.30910.0"
}
},
{
"identity" : "promises",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/promises.git",
"state" : {
"revision" : "540318ecedd63d883069ae7f1ed811a2df00b6ac",
"version" : "2.4.0"
}
},
{
"identity" : "swift-protobuf",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-protobuf.git",
"state" : {
"revision" : "ebc7251dd5b37f627c93698e4374084d98409633",
"version" : "1.28.2"
}
},
{
"identity" : "swiftlintplugins",
"kind" : "remoteSourceControl",
Expand All @@ -10,5 +128,5 @@
}
}
],
"version" : 2
"version" : 3
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1520"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "26890B902CAE811A008DFF49"
BuildableName = "FiveGuyes.app"
BlueprintName = "FiveGuyes"
ReferencedContainer = "container:FiveGuyes.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "26890B902CAE811A008DFF49"
BuildableName = "FiveGuyes.app"
BlueprintName = "FiveGuyes"
ReferencedContainer = "container:FiveGuyes.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
<CommandLineArguments>
<CommandLineArgument
argument = "-FIRDebugEnabled"
isEnabled = "YES">
</CommandLineArgument>
<CommandLineArgument
argument = "-FIRAnalyticsDebugEnabled"
isEnabled = "YES">
</CommandLineArgument>
</CommandLineArguments>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "26890B902CAE811A008DFF49"
BuildableName = "FiveGuyes.app"
BlueprintName = "FiveGuyes"
ReferencedContainer = "container:FiveGuyes.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>
2 changes: 1 addition & 1 deletion FiveGuyes/FiveGuyes/.swiftlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ line_length: # From https://realm.github.io/SwiftLint/line_length.html
# ν•¨μˆ˜ λ³Έλ¬Έ 길이 μ œν•œ
function_body_length: # From https://realm.github.io/SwiftLint/function_body_length.html
warning: 15 # ν•¨μˆ˜ 본문이 15쀄을 λ„˜μ„ 경우 warning
error: 30 # ν•¨μˆ˜ 본문이 30쀄을 λ„˜μ„ 경우 error
error: 50 # ν•¨μˆ˜ 본문이 30쀄을 λ„˜μ„ 경우 error

# 클래슀, ꡬ쑰체, μ—΄κ±°ν˜•μ˜ λ³Έλ¬Έ 길이 μ œν•œ
type_body_length: # From https://realm.github.io/SwiftLint/type_body_length.html
Expand Down
55 changes: 54 additions & 1 deletion FiveGuyes/FiveGuyes/FiveGuyesApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,68 @@
// Created by zaehorang on 10/3/24.
//

import AdSupport
import AppTrackingTransparency
import SwiftData
import SwiftUI

import FirebaseCore

@main
struct FiveGuyesApp: App {
typealias UserBook = UserBookSchemaV2.UserBookV2

// register app delegate for Firebase setup
@UIApplicationDelegateAdaptor(AppDelegate.self) var delegate

var container: ModelContainer

init() {
do {
self.container = try ModelContainer(
for: UserBook.self,
migrationPlan: MigrationPlan.self
)
} catch {
fatalError("Failed to initialize model container.")
}
}

var body: some Scene {
WindowGroup {
NavigationRootView()
.modelContainer(for: UserBook.self)
.modelContainer(container)
}
}
}

// MARK: - AppDelegate class
class AppDelegate: NSObject, UIApplicationDelegate {
func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
// Firebase μ΄ˆκΈ°ν™”
FirebaseApp.configure()

// μ•± 좔적 κΆŒν•œ μš”μ²­μ„ λΉ„λ™κΈ°μ μœΌλ‘œ 처리
Task {
await requestTrackingAuthorization()
}
return true
}

/// 비동기 좔적 κΆŒν•œ μš”μ²­ ν•¨μˆ˜
private func requestTrackingAuthorization() async {
// 0.5초 지연 ν›„ 좔적 κΆŒν•œ μš”μ²­
do {
try await Task.sleep(nanoseconds: 500_000_000) // 0.5초 = 500,000,000 λ‚˜λ…Έμ΄ˆ
} catch {
print(error)
}

if ATTrackingManager.trackingAuthorizationStatus == .notDetermined {
await ATTrackingManager.requestTrackingAuthorization()
}
}
}
16 changes: 15 additions & 1 deletion FiveGuyes/FiveGuyes/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,23 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>API_KEY</key>
<string>$(API_KEY)</string>
<key>ITSAppUsesNonExemptEncryption</key>
<key>FirebaseAutomaticScreenReportingEnabled</key>
<false/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
<key>NSAllowsArbitraryLoadsInWebContent</key>
<true/>
</dict>
<key>UIAppFonts</key>
<array>
<string>Pretendard-Regular.otf</string>
<string>Pretendard-SemiBold.otf</string>
</array>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"provides-namespace" : true
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "0.200",
"blue" : "0x00",
"green" : "0x00",
"red" : "0x00"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0xFD",
"green" : "0xFD",
"red" : "0xFD"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"provides-namespace" : true
}
}
Loading

0 comments on commit 03225ca

Please sign in to comment.