Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[V 1.1.1] 업데이트 #16

Merged
merged 26 commits into from
Dec 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
687857e
[Update]: RxSwift 추가
Jeon0976 Dec 17, 2023
63cadb2
[Feat]: Challenge ViewController 생성
Jeon0976 Dec 18, 2023
4dac595
[Feat]: Challenge UI 구현
Jeon0976 Dec 18, 2023
8b2ff4c
[Feat]: Setting 기능 수정
Jeon0976 Dec 19, 2023
199c81e
[Feat]: 후기 등록 ViewController 추가
Jeon0976 Dec 19, 2023
09f1a62
[Feat]: 후기 작성 View 추가
Jeon0976 Dec 21, 2023
57c8120
Merge pull request #8 from AVIRO-official/feature/challenge
Jeon0976 Dec 21, 2023
0000fb9
Review UI 구현 완료
Jeon0976 Dec 23, 2023
a165fda
[Feat]: ChallengeInfoView Update
Jeon0976 Dec 24, 2023
0fbc399
[Feat]: Challenge Info View 구현
Jeon0976 Dec 25, 2023
e1e38ae
Merge pull request #9 from AVIRO-official/feature/challenge
Jeon0976 Dec 25, 2023
cd7e581
[Feat]: Navigation Controller custom
Jeon0976 Dec 26, 2023
c2822a2
[Feat]: Challenge api 연결
Jeon0976 Dec 26, 2023
aa18e7b
[Feat]: Review Upload 기능 수정, alert view 추가:
Jeon0976 Dec 27, 2023
a5021cc
[Feat]: Review Update 기능 수정
Jeon0976 Dec 28, 2023
a490de4
[Feat]: 후기 등록 업데이트 기능 수정
Jeon0976 Dec 28, 2023
10c5f69
Merge pull request #10 from AVIRO-official/feature/challenge
Jeon0976 Dec 28, 2023
2b846e2
[Feat]: 등록 api 연결, network cancellable 기능 추가
Jeon0976 Dec 28, 2023
1468f59
Merge pull request #11 from AVIRO-official/feature/challenge
Jeon0976 Dec 28, 2023
7e4e3ae
[Feat]: 챌린지 업데이트 인디케이터, 프로그래스바 애니메이션 등 추가
Jeon0976 Dec 29, 2023
3fd1501
Merge pull request #12 from AVIRO-official/feature/challenge
Jeon0976 Dec 29, 2023
f1c7a0d
Merge pull request #13 from AVIRO-official/develop
Jeon0976 Dec 29, 2023
04df517
[Feat]: 기타 요구사항 수정
Jeon0976 Dec 30, 2023
1728e12
Merge pull request #14 from AVIRO-official/feature/challenge
Jeon0976 Dec 30, 2023
ab641b8
[Fix]: load data time 버그 수정
Jeon0976 Dec 31, 2023
cf40283
Merge pull request #15 from AVIRO-official/feature/challenge
Jeon0976 Dec 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,001 changes: 769 additions & 232 deletions AVIRO.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

15 changes: 14 additions & 1 deletion AVIRO.xcodeproj/xcshareddata/xcschemes/AVIRO.xcscheme
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
LastUpgradeVersion = "1510"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
Expand Down Expand Up @@ -28,6 +28,19 @@
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "C5476B492B2F1F1F00F5FC6E"
BuildableName = "AVIROTests.xctest"
BlueprintName = "AVIROTests"
ReferencedContainer = "container:AVIRO.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
Expand Down
31 changes: 22 additions & 9 deletions AVIRO/App/AppController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ final class AppController {
window.makeKeyAndVisible()

checkState()
// setTabBarView()
}

// MARK: 불러올 view 확인 메서드
private func checkState() {
// self.setHomeView()
// 최초 튜토리얼 화면 안 봤을 때
guard UserDefaults.standard.bool(forKey: UDKey.tutorial.rawValue) else {
setTutorialView()
Expand All @@ -54,7 +54,7 @@ final class AppController {

let userCheck = AVIROAutoLoginWhenAppleUserDTO(refreshToken: userKey)

AVIROAPIManager().appleUserCheck(with: userCheck) { [weak self] result in
AVIROAPI.manager.appleUserCheck(with: userCheck) { [weak self] result in
switch result {
case .success(let model):
if model.statusCode == 200 {
Expand All @@ -66,13 +66,13 @@ final class AppController {
userNickname: data.nickname,
marketingAgree: data.marketingAgree
)
self?.setHomeView()
self?.setTabBarView()
}
} else {
self?.keychain.delete(KeychainKey.appleRefreshToken.rawValue)
self?.setLoginView()
}
case .failure(_):
case .failure:
self?.keychain.delete(KeychainKey.appleRefreshToken.rawValue)
self?.setLoginView()
}
Expand All @@ -97,13 +97,26 @@ final class AppController {
}
}

// MARK: home View
private func setHomeView() {
// MARK: TabBar View
private func setTabBarView() {
DispatchQueue.main.async { [weak self] in
let homeVC = TabBarViewController()

self?.rootViewController = homeVC
let tabBarVC = AVIROTabBarController()
tabBarVC.setViewControllers(with: [
TabBarType.home,
TabBarType.plus,
TabBarType.challenge
])

tabBarVC.selectedIndex = 0

self?.rootViewController = tabBarVC

}
// DispatchQueue.main.async { [weak self] in
// let homeVC = TabBarViewController()
//
// self?.rootViewController = homeVC
// }
}

}
30 changes: 25 additions & 5 deletions AVIRO/App/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,41 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
configurationForConnecting connectingSceneSession: UISceneSession,
options: UIScene.ConnectionOptions
) -> UISceneConfiguration {
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
return UISceneConfiguration(
name: "Default Configuration",
sessionRole: connectingSceneSession.role
)
}

func application(
_ application: UIApplication,
supportedInterfaceOrientationsFor window: UIWindow?
) -> UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.portrait
}

private func setNaverMapAPI() {
guard let keyUrl = Bundle.main.url(forResource: "API", withExtension: "plist"),
let dictionary = NSDictionary(contentsOf: keyUrl) as? [String: Any] else { return }
guard let keyUrl = Bundle.main.url(
forResource: "API",
withExtension: "plist"
),
let dictionary = NSDictionary(
contentsOf: keyUrl
) as? [String: Any] else { return }

let key = (dictionary["NMFAuthManager_Authorization_Key"] as? String)!

NMFAuthManager.shared().clientId = key
}

private func setAmplitude() {
guard let keyUrl = Bundle.main.url(forResource: "API", withExtension: "plist"),
let dictionary = NSDictionary(contentsOf: keyUrl) as? [String: Any] else { return }
guard let keyUrl = Bundle.main.url(
forResource: "API",
withExtension: "plist"
),
let dictionary = NSDictionary(
contentsOf: keyUrl
) as? [String: Any] else { return }

let key = (dictionary["Amplitude_Key"] as? String)!

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
"components" : {
"alpha" : "1.000",
"blue" : "1.000",
"green" : "0.600",
"red" : "0.250"
"green" : "0.478",
"red" : "0.000"
}
},
"idiom" : "universal"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.941",
"green" : "0.941",
"red" : "0.941"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "home2.png",
"filename" : "InfoCircle.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "home2@2x.png",
"filename" : "InfoCircle@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "home2@3x.png",
"filename" : "InfoCircle@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "square2.png",
"filename" : "Point_explain.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "square2@2x.png",
"filename" : "Point_explain@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "square2@3x.png",
"filename" : "Point_explain@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "ChallengeInfoGreen.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "ChallengeInfoOrange.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "ChallengeInfoYellow.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
6 changes: 6 additions & 0 deletions AVIRO/App/Assets.xcassets/ImageSet/Challenge/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "GlodRectangle.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"images" : [
{
"filename" : "square1.png",
"filename" : "GlodTrophy.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "square1@2x.png",
"filename" : "GlodTrophy@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "square1@3x.png",
"filename" : "GlodTrophy@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "bxs-home-alt-2.svg.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"images" : [
{
"filename" : "bxs-plus-square.svg.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "[email protected]",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading