Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
feat :: info plist base url 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
HongSJae committed Oct 12, 2023
1 parent 37754af commit 4b07fea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Projects/App/Support/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>API_BASE_URL</key>
<string>$(API_BASE_URL)</string>
<key>AppIdentifierPrefix</key>
<string>$(AppIdentifierPrefix)</string>
<key>CFBundleDevelopmentRegion</key>
Expand Down Expand Up @@ -33,6 +35,8 @@
</dict>
<key>NSCameraUsageDescription</key>
<string>프로필 사진 변경을 하기 위해 사진을 찍으려면 카메라 권한이 필요합니다.</string>
<key>S3_BASE_URL</key>
<string>$(S3_BASE_URL)</string>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>UILaunchStoryboardName</key>
Expand Down
2 changes: 1 addition & 1 deletion Projects/Domain/BaseDomain/Sources/JobisAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public protocol JobisAPI: TargetType, JwtAuthorizable {
public extension JobisAPI {
var baseURL: URL {
URL(
string: Bundle.main.object(forInfoDictionaryKey: "BASE_URL") as? String ?? ""
string: Bundle.main.object(forInfoDictionaryKey: "API_BASE_URL") as? String ?? ""
) ?? URL(string: "https://www.google.com")!
}

Expand Down

0 comments on commit 4b07fea

Please sign in to comment.