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

feat: 위젯 통해서 앱 열기 (#470) #492

Merged
merged 20 commits into from
May 8, 2023
Merged
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
4c98987
feat: 매개면수 수정 (#470)
hyun99999 May 3, 2023
2d34b7e
fix: 매개변수 수정 및 widgetURL 수정 (#470)
hyun99999 May 3, 2023
5d6aaed
feat: 내 명함/qr코드 위젯을 통해 앱에서 기능 구현 (#470)
hyun99999 May 4, 2023
4fddc68
feat: 명함 조회 후 명함공유 바텀시트 등장 (#470)
hyun99999 May 4, 2023
5a97fbe
feat: 테스트플라이트용 위젯 수정
dlwns33 May 4, 2023
cf478d0
Merge branch 'feature/justincase' of https://github.com/dlwns33/NADA-…
hyun99999 May 4, 2023
b698648
chore: pod update (#470)
hyun99999 May 4, 2023
ca4640e
fix: 온보딩, 액세스 토큰 UserDefaults key 변경 (#489)
hyun99999 May 4, 2023
da90192
feat: 앱 런치 시 위젯 접근 감지 (#470)
hyun99999 May 4, 2023
2fb88f1
add: 위젯 관련 UserDefaults key 추가 (#470)
hyun99999 May 4, 2023
e90f8d1
feat: 홈에서 위젯을 통해 QR 스캔 화면전환 (#470)
hyun99999 May 5, 2023
7756e62
feat: 홈에서 위젯을 통해 명함 공유 화면전환 (#470)
hyun99999 May 5, 2023
b58adf3
feat: UserDefaults 를 활용해서 업데이트 판단 후에 위젯통해서 접근 구현 (#470)
hyun99999 May 5, 2023
277ba6e
delete: 기본동작에서 서버통신 삭제 (#470)
hyun99999 May 6, 2023
8ef3792
refactor: 내 명함 목록 선택 구현 리펙토링 (#470)
hyun99999 May 6, 2023
ec7cf65
feat: 위젯 기본값 설정 구현 (#470)
hyun99999 May 6, 2023
c4bc2c5
Merge branch 'develop' of https://github.com/TeamNADA/NADA-iOS-ForRel…
hyun99999 May 6, 2023
fca8a7c
feat: 위젯 기본값 설정 (#470)
hyun99999 May 8, 2023
eb984d0
feat: 내 명함 선택 목록 구성 실패시에 nil 반환 (#470)
hyun99999 May 8, 2023
d319c7f
feat: 서버통신 성공 후 status 200 아닌 에러 잡기 (#470)
hyun99999 May 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 26 additions & 28 deletions IntentsExtension/IntentHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,53 +17,51 @@ class IntentHandler: INExtension {
// This is the default implementation. If you want different objects to handle different intents,
// you can override this and return the handler you want for that particular intent.

cardListFetchWithAPI { [weak self] result in
switch result {
case .success(let result):
if let result {
self?.cardItems = result.data
print(self?.cardItems)
}
case .failure(let err):
print(err)
}
}

return self
}
}

extension IntentHandler: MyCardIntentHandling {
// 내 명함 목록 선택할 때 호출.
func provideMyCardOptionsCollection(for intent: MyCardIntent, with completion: @escaping (INObjectCollection<MyCard>?, Error?) -> Void) {
cardListFetchWithAPI { [weak self] result in
cardListFetchWithAPI { result in
switch result {
case .success(let result):
if let result {
self?.cardItems = result.data

if let cardItems = self?.cardItems {
let myCards = cardItems.map { card in
let myCard = MyCard(identifier: card.cardUUID, display: card.cardName)
myCard.userName = card.userName
myCard.cardImage = card.cardImage

return myCard
}
let collection = INObjectCollection(items: myCards)
completion(collection, nil)
if let cardItems = result?.data {
let myCards = cardItems.map { card in
let myCard = MyCard(identifier: card.cardUUID, display: card.cardName)
myCard.userName = card.userName
myCard.cardImage = card.cardImage

return myCard
}
let collection = INObjectCollection(items: myCards)
completion(collection, nil)
}
case .failure(let err):
print(err)
}
}
}

// 위젯 편집할때 호출. 기본값 설정.
// 위젯 추가할때 호출. 기본값 설정.
func defaultMyCard(for intent: MyCardIntent) -> MyCard? {
var myCard: MyCard?

cardListFetchWithAPI { [weak self] result in
switch result {
case .success(let result):
if let result {
self?.cardItems = result.data
myCard = MyCard(identifier: self?.cardItems?[0].cardUUID ?? "", display: self?.cardItems?[0].cardName ?? "")
myCard?.userName = self?.cardItems?[0].userName
myCard?.cardImage = self?.cardItems?[0].cardImage
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

교수님! 참고사항에 적힌 내용이 여기에서 return을 하려고 했는데 못한다는 얘기일까요?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

그쳐.. 서버통신이 비동기라서 리턴이랑은 별개로 알아서 되는거라 nil 값이 리턴됩디다

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dlwns33
dispatch group 으로 해결했심더!

  • 서버통신의 결과를 동기적으로 사용하기 위해서 DispatchGroup 을 사용.
  • 비동기 통신이기 때문에 group 의 enter,leave 사용.
  • 60초까지만 기다리기로 함.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 액세스 토큰인 있는 경우에 위젯의 기본값 설정
Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2023-05-08.at.14.25.39.mov

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 액세스 토큰이 있는 경우에 위젯의 기본값 설정
Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2023-05-08.at.14.38.15.mp4

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 액세스 토큰이 없어서 명함을 선택할 수 없는 경우
Simulator.Screen.Recording.-.iPhone.14.Pro.Max.-.2023-05-08.at.14.42.05.mov

}
case .failure(let err):
print(err)
}
}

if let cardItems {
myCard = MyCard(identifier: cardItems[0].cardUUID, display: cardItems[0].cardName)
}
Expand All @@ -85,7 +83,7 @@ extension IntentHandler {
guard let url = URL(string: "http://3.35.107.3:8080/api/v1/card") else { return }
var urlRequest = URLRequest(url: url)
urlRequest.httpMethod = "GET"
urlRequest.addValue("Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VySWQiOjEwfQ.rq__Rzvunpxq3paeo2fK4i_oeupyDlHp3q1RW6uSHSQ", forHTTPHeaderField: "Authorization")
urlRequest.addValue("Bearer \(UserDefaults.appGroup.string(forKey: "accessToken") ?? "")", forHTTPHeaderField: "Authorization")
print("😀", UserDefaults.appGroup.string(forKey: "accessToken") ?? "")

URLSession.shared.dataTask(with: urlRequest) { data, response, error in
Expand Down
34 changes: 17 additions & 17 deletions NADA-iOS-forRelease.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
archiveVersion = 1;
classes = {
};
objectVersion = 51;
objectVersion = 53;
objects = {

/* Begin PBXBuildFile section */
2566DBA723D1370275ECE593 /* Pods_NADA_iOS_forRelease.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D86FBA2B7966CFE6EEF0E7E8 /* Pods_NADA_iOS_forRelease.framework */; };
39007F2C27080D8200E7143E /* UIViewController+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39007F2B27080D8200E7143E /* UIViewController+Extension.swift */; };
3903CC202769F4F40094C458 /* EmptyCardCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3903CC1E2769F4F40094C458 /* EmptyCardCell.swift */; };
3903CC212769F4F40094C458 /* EmptyCardCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 3903CC1F2769F4F40094C458 /* EmptyCardCell.xib */; };
Expand Down Expand Up @@ -218,6 +217,7 @@
F8FC43BA26C022900033E151 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8FC43B926C022900033E151 /* ViewController.swift */; };
F8FC43BC26C022A20033E151 /* Storyboard.swift in Sources */ = {isa = PBXBuildFile; fileRef = F8FC43BB26C022A20033E151 /* Storyboard.swift */; };
F8FC43BF26C025180033E151 /* .swiftlint.yml in Resources */ = {isa = PBXBuildFile; fileRef = F8FC43BE26C025180033E151 /* .swiftlint.yml */; };
FF46241630BB3F2D09D5A1AF /* Pods_NADA_iOS_forRelease.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0F6A2AA0066BA1941116A267 /* Pods_NADA_iOS_forRelease.framework */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -261,7 +261,9 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
00BC6C525F13C9651D73976F /* Pods-NADA-iOS-forRelease.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NADA-iOS-forRelease.debug.xcconfig"; path = "Target Support Files/Pods-NADA-iOS-forRelease/Pods-NADA-iOS-forRelease.debug.xcconfig"; sourceTree = "<group>"; };
0F6A2AA0066BA1941116A267 /* Pods_NADA_iOS_forRelease.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NADA_iOS_forRelease.framework; sourceTree = BUILT_PRODUCTS_DIR; };
13B19E918E93248BE054C89A /* Pods-NADA-iOS-forRelease.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NADA-iOS-forRelease.debug.xcconfig"; path = "Target Support Files/Pods-NADA-iOS-forRelease/Pods-NADA-iOS-forRelease.debug.xcconfig"; sourceTree = "<group>"; };
19298D75B81F3260A870AB0B /* Pods-NADA-iOS-forRelease.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NADA-iOS-forRelease.release.xcconfig"; path = "Target Support Files/Pods-NADA-iOS-forRelease/Pods-NADA-iOS-forRelease.release.xcconfig"; sourceTree = "<group>"; };
39007F2B27080D8200E7143E /* UIViewController+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIViewController+Extension.swift"; sourceTree = "<group>"; };
3903CC1E2769F4F40094C458 /* EmptyCardCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EmptyCardCell.swift; sourceTree = "<group>"; };
3903CC1F2769F4F40094C458 /* EmptyCardCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = EmptyCardCell.xib; sourceTree = "<group>"; };
Expand Down Expand Up @@ -371,15 +373,12 @@
77F2C0EA27632A91007641E3 /* CardHarmonyViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CardHarmonyViewController.swift; sourceTree = "<group>"; };
77F2C0EC27632AA7007641E3 /* CardHarmony.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = CardHarmony.storyboard; sourceTree = "<group>"; };
77F47D92276C79B600414659 /* Header.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Header.swift; sourceTree = "<group>"; };
78FC1ADEA3CAB995C08D47DB /* Pods-NADA-iOS-forRelease.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-NADA-iOS-forRelease.release.xcconfig"; path = "Target Support Files/Pods-NADA-iOS-forRelease/Pods-NADA-iOS-forRelease.release.xcconfig"; sourceTree = "<group>"; };
D86FBA2B7966CFE6EEF0E7E8 /* Pods_NADA_iOS_forRelease.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_NADA_iOS_forRelease.framework; sourceTree = BUILT_PRODUCTS_DIR; };
F805588429C993E7002E8EA3 /* UpdateViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UpdateViewController.swift; sourceTree = "<group>"; };
F80C679129F21BB7002C5ECC /* onboarding01.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = onboarding01.json; sourceTree = "<group>"; };
F80C679229F21BB7002C5ECC /* onboarding02.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = onboarding02.json; sourceTree = "<group>"; };
F81171FF27383097002742CF /* ChangeGroupRequest.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChangeGroupRequest.swift; sourceTree = "<group>"; };
F822E7A82709CEB60020452C /* Notification.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Notification.swift; sourceTree = "<group>"; };
F8268DB827730B0100BF114B /* FirstCardAlertBottomSheetViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FirstCardAlertBottomSheetViewController.swift; sourceTree = "<group>"; };
F82AF6A029FBBAF50051545B /* IntentsExtension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = IntentsExtension.entitlements; sourceTree = "<group>"; };
F82AF6A129FBBEE50051545B /* UserDefaults+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UserDefaults+Extension.swift"; sourceTree = "<group>"; };
F82FEB4A27639F3100DA7847 /* MainCardCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainCardCell.swift; sourceTree = "<group>"; };
F82FEB4B27639F3100DA7847 /* MainCardCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MainCardCell.xib; sourceTree = "<group>"; };
Expand Down Expand Up @@ -510,7 +509,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
2566DBA723D1370275ECE593 /* Pods_NADA_iOS_forRelease.framework in Frameworks */,
FF46241630BB3F2D09D5A1AF /* Pods_NADA_iOS_forRelease.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -520,8 +519,8 @@
186051B2C99DBAECC539DAC9 /* Pods */ = {
isa = PBXGroup;
children = (
00BC6C525F13C9651D73976F /* Pods-NADA-iOS-forRelease.debug.xcconfig */,
78FC1ADEA3CAB995C08D47DB /* Pods-NADA-iOS-forRelease.release.xcconfig */,
13B19E918E93248BE054C89A /* Pods-NADA-iOS-forRelease.debug.xcconfig */,
19298D75B81F3260A870AB0B /* Pods-NADA-iOS-forRelease.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
Expand Down Expand Up @@ -748,7 +747,7 @@
F838B661298E5C5300D84340 /* SwiftUI.framework */,
F87D2229298ECAFB001A882B /* Intents.framework */,
F87D2234298ECAFB001A882B /* IntentsUI.framework */,
D86FBA2B7966CFE6EEF0E7E8 /* Pods_NADA_iOS_forRelease.framework */,
0F6A2AA0066BA1941116A267 /* Pods_NADA_iOS_forRelease.framework */,
);
name = Frameworks;
sourceTree = "<group>";
Expand Down Expand Up @@ -1517,13 +1516,13 @@
isa = PBXNativeTarget;
buildConfigurationList = F8FC439626C01CDE0033E151 /* Build configuration list for PBXNativeTarget "NADA-iOS-forRelease" */;
buildPhases = (
63B126249E7D65994A592714 /* [CP] Check Pods Manifest.lock */,
968E60C36CA3B9A2790CB1AA /* [CP] Check Pods Manifest.lock */,
F8FC437E26C01CDD0033E151 /* Sources */,
F8FC437F26C01CDD0033E151 /* Frameworks */,
F8FC438026C01CDD0033E151 /* Resources */,
F8FC43BD26C0244D0033E151 /* ShellScript */,
F838B673298E5C5400D84340 /* Embed Foundation Extensions */,
2FD8F2B3BF35A3CA09A8E81C /* [CP] Embed Pods Frameworks */,
3DFB37457B9A5C839910082B /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand All @@ -1543,8 +1542,9 @@
F8FC437A26C01CDD0033E151 /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastSwiftUpdateCheck = 1420;
LastUpgradeCheck = 1250;
LastUpgradeCheck = 1430;
TargetAttributes = {
F838B65D298E5C5300D84340 = {
CreatedOnToolsVersion = 14.2;
Expand Down Expand Up @@ -1669,7 +1669,7 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
2FD8F2B3BF35A3CA09A8E81C /* [CP] Embed Pods Frameworks */ = {
3DFB37457B9A5C839910082B /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -1686,7 +1686,7 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-NADA-iOS-forRelease/Pods-NADA-iOS-forRelease-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
63B126249E7D65994A592714 /* [CP] Check Pods Manifest.lock */ = {
968E60C36CA3B9A2790CB1AA /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand Down Expand Up @@ -2278,7 +2278,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.2;
MARKETING_VERSION = 1.0.3;
PRODUCT_BUNDLE_IDENTIFIER = "YJC.NADA-iOS-forRelease";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "match Development YJC.NADA-iOS-forRelease";
Expand Down Expand Up @@ -2307,7 +2307,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0.2;
MARKETING_VERSION = 1.0.3;
PRODUCT_BUNDLE_IDENTIFIER = "YJC.NADA-iOS-forRelease";
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "match AppStore YJC.NADA-iOS-forRelease";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
wasCreatedForAppExtension = "YES"
version = "2.0">
<BuildAction
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
wasCreatedForAppExtension = "YES"
version = "2.0">
<BuildAction
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1310"
LastUpgradeVersion = "1430"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1420"
LastUpgradeVersion = "1430"
wasCreatedForAppExtension = "YES"
version = "2.0">
<BuildAction
Expand Down
8 changes: 4 additions & 4 deletions NADA-iOS-forRelease/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSLocationWhenInUseUsageDescription</key>
<string>&quot;사용자의 위치를 받아오려고 합니다.&quot;</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>&quot;사용자의 위치를 받아오려고 합니다.&quot;</string>
<key>CFBundleDevelopmentRegion</key>
<string>ko_KR</string>
<key>CFBundleDisplayName</key>
Expand Down Expand Up @@ -52,6 +48,10 @@
</dict>
<key>NSCameraUsageDescription</key>
<string>QR코드를 인식하여 명함을 추가하기 위해 카메라 권한 허용이 필요해요.</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>"사용자의 위치를 받아오려고 합니다."</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>"사용자의 위치를 받아오려고 합니다."</string>
<key>NSPhotoLibraryAddUsageDescription</key>
<string>명함을 이미지로 저장하기 위해 갤러리 권한 허용이 필요해요.</string>
<key>NSPhotoLibraryUsageDescription</key>
Expand Down
8 changes: 5 additions & 3 deletions NADA-iOS-forRelease/Resouces/Constants/UserDefaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ extension Const {
static let darkModeState = "darkModeState"
static let userID = "userID"
static let isFirstCard = "isFirstCard"
static let isOnboarding = "isOnboarding"
static let isOnboarding = "isOnboardingAvailable"
static let firstCardID = "firstCardID"
static let isAppleLogin = "isAppleLogin"
static let isKakaoLogin = "isKakaoLogin"
static let dynamicLinkCardUUID = "dynamicLinkCardUUID"
// TODO: - KeyChain 적용
static let accessToken = "accessToken"
static let accessToken = "AccessToken"
static let openQRCodeWidget = "openQRCodeWidget"
static let openMyCardWidget = "openMyCardWidget"
static let widgetCardUUID = "widgetCardUUID"
static let refreshToken = "refreshToken"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
import Foundation

extension UserDefaults {
static var appGroup = UserDefaults(suiteName: "group.NADA-iOS-forRelease")!
static var appGroup = UserDefaults(suiteName: "group.YJC.NADA-iOS-forRelease")!
}
Loading