-
Notifications
You must be signed in to change notification settings - Fork 0
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 [#172] Amplitude Setting 및 적용 완료 #173
Changes from all commits
2e1a37b
8bc519d
a796ebf
61bc150
7a80b5b
38ac530
55aadf1
5aa516d
0343b84
2b275f5
c150b49
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -160,6 +160,7 @@ | |
3CF184D12B4EFF9900816D5F /* MyPageProfileView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3CF184D02B4EFF9900816D5F /* MyPageProfileView.swift */; }; | ||
3CF4293A2B8F416F00A1524B /* MyPageMemberDeleteDTO.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3CF429392B8F416F00A1524B /* MyPageMemberDeleteDTO.swift */; }; | ||
3CF4651B2B58398900997FCA /* PostTransparencyRequestDTO.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3CF4651A2B58398900997FCA /* PostTransparencyRequestDTO.swift */; }; | ||
3CFB30472BB305EE00A3F70A /* Amplitude in Frameworks */ = {isa = PBXBuildFile; productRef = 3CFB30462BB305EE00A3F70A /* Amplitude */; }; | ||
/* End PBXBuildFile section */ | ||
|
||
/* Begin PBXFileReference section */ | ||
|
@@ -326,6 +327,7 @@ | |
files = ( | ||
2AAA845F2B494AC50098A824 /* SnapKit in Frameworks */, | ||
2A8D70B12B4C4D8F009F4C6C /* KakaoSDK in Frameworks */, | ||
3CFB30472BB305EE00A3F70A /* Amplitude in Frameworks */, | ||
2FD9276A2B92245B0046193D /* Lottie in Frameworks */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
|
@@ -1185,6 +1187,7 @@ | |
2AAA845E2B494AC50098A824 /* SnapKit */, | ||
2A8D70B02B4C4D8F009F4C6C /* KakaoSDK */, | ||
2FD927692B92245B0046193D /* Lottie */, | ||
3CFB30462BB305EE00A3F70A /* Amplitude */, | ||
); | ||
productName = DontBe; | ||
productReference = 3C6192E92B3A719A00220CEB /* DontBe-iOS.app */; | ||
|
@@ -1218,6 +1221,7 @@ | |
2AAA845D2B494AC50098A824 /* XCRemoteSwiftPackageReference "SnapKit" */, | ||
2A8D70AF2B4C4D8F009F4C6C /* XCRemoteSwiftPackageReference "kakao-ios-sdk" */, | ||
2FD927682B92245B0046193D /* XCRemoteSwiftPackageReference "lottie-spm" */, | ||
3CFB30452BB305EE00A3F70A /* XCRemoteSwiftPackageReference "Amplitude-iOS" */, | ||
); | ||
productRefGroup = 3C6192EA2B3A719A00220CEB /* Products */; | ||
projectDirPath = ""; | ||
|
@@ -1546,7 +1550,7 @@ | |
"$(inherited)", | ||
"@executable_path/Frameworks", | ||
); | ||
MARKETING_VERSION = 1.0.0; | ||
MARKETING_VERSION = 1.0.1; | ||
PRODUCT_BUNDLE_IDENTIFIER = "com.SOPT33.DontBe-iOS"; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
PROVISIONING_PROFILE_SPECIFIER = ""; | ||
|
@@ -1583,7 +1587,7 @@ | |
"$(inherited)", | ||
"@executable_path/Frameworks", | ||
); | ||
MARKETING_VERSION = 1.0.0; | ||
MARKETING_VERSION = 1.0.1; | ||
PRODUCT_BUNDLE_IDENTIFIER = "com.SOPT33.DontBe-iOS"; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
PROVISIONING_PROFILE_SPECIFIER = ""; | ||
|
@@ -1644,6 +1648,14 @@ | |
minimumVersion = 4.4.1; | ||
}; | ||
}; | ||
3CFB30452BB305EE00A3F70A /* XCRemoteSwiftPackageReference "Amplitude-iOS" */ = { | ||
isa = XCRemoteSwiftPackageReference; | ||
repositoryURL = "https://github.com/amplitude/Amplitude-iOS"; | ||
requirement = { | ||
branch = main; | ||
kind = branch; | ||
}; | ||
}; | ||
/* End XCRemoteSwiftPackageReference section */ | ||
|
||
/* Begin XCSwiftPackageProductDependency section */ | ||
|
@@ -1662,6 +1674,11 @@ | |
package = 2FD927682B92245B0046193D /* XCRemoteSwiftPackageReference "lottie-spm" */; | ||
productName = Lottie; | ||
}; | ||
3CFB30462BB305EE00A3F70A /* Amplitude */ = { | ||
isa = XCSwiftPackageProductDependency; | ||
package = 3CFB30452BB305EE00A3F70A /* XCRemoteSwiftPackageReference "Amplitude-iOS" */; | ||
productName = Amplitude; | ||
}; | ||
/* End XCSwiftPackageProductDependency section */ | ||
}; | ||
rootObject = 3C6192E12B3A719A00220CEB /* Project object */; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이 코드 리뷰에서 발견된 잠재적인 버그 위험:
개선 제안:
코드 리뷰를 통해 더 나은 협업과 유지보수 가능한 코드베이스를 유지할 수 있도록 하세요. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,24 @@ | |
"version" : "5.8.1" | ||
} | ||
}, | ||
{ | ||
"identity" : "amplitude-ios", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/amplitude/Amplitude-iOS", | ||
"state" : { | ||
"branch" : "main", | ||
"revision" : "d4a71f3e06b5108696ca7b33567d0fc539597d82" | ||
} | ||
}, | ||
{ | ||
"identity" : "analytics-connector-ios", | ||
"kind" : "remoteSourceControl", | ||
"location" : "https://github.com/amplitude/analytics-connector-ios.git", | ||
"state" : { | ||
"revision" : "e2ca17ac735bcbc48b13062484541702ef45153d", | ||
"version" : "1.0.3" | ||
} | ||
}, | ||
{ | ||
"identity" : "kakao-ios-sdk", | ||
"kind" : "remoteSourceControl", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 이 코드 패치에는 몇 가지 문제가 있습니다.
위의 내용들을 고려하여 코드를 수정하시기 바랍니다. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
import AuthenticationServices | ||
import UIKit | ||
|
||
import Amplitude | ||
import KakaoSDKCommon | ||
|
||
@main | ||
|
@@ -26,6 +27,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate { | |
|
||
KakaoSDK.initSDK(appKey: Config.nativeAppKey) | ||
|
||
/// Amplitude 설정 | ||
Amplitude.instance().initializeApiKey(Config.amplitudeAppKey) | ||
|
||
NotificationCenter.default.addObserver(forName: ASAuthorizationAppleIDProvider.credentialRevokedNotification, object: nil, queue: nil) { (Notification) in | ||
// 앱 실행 중 강제로 연결 취소 시 로그인 페이지로 이동 | ||
if let sceneDelegate = UIApplication.shared.connectedScenes.first?.delegate as? SceneDelegate { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Amplitude를 추가한 코드 패치에 대한 간단한 코드 리뷰:
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,8 @@ | |
</array> | ||
<key>NATIVE_APP_KEY</key> | ||
<string>$(NATIVE_APP_KEY)</string> | ||
<key>AMPLITUDE_APP_KEY</key> | ||
<string>$(AMPLITUDE_APP_KEY)</string> | ||
<key>NSAppTransportSecurity</key> | ||
<dict> | ||
<key>NSAllowsArbitraryLoads</key> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 코드 리뷰:
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이 코드 패치의 요약:
Amplitude
가 추가되었습니다.개선 제안: