Skip to content

Commit

Permalink
[Setting] #319 - Config 및 Info.plist에 Reverse Geocoding API 관련 키 값 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
EunsuSeo01 committed Dec 30, 2024
1 parent 9d96f06 commit a872e22
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
16 changes: 16 additions & 0 deletions Hankkijogbo/Hankkijogbo/Global/Resources/Config.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ enum Config {
static let baseURL = "BASE_URL"
static let NMFClientId = "NMFClientId"
static let Amplitude = "Amplitude"
static let reverseGeocodingClientId = "ReverseGeocodingClientId"
static let reverseGeocodingClientSecret = "ReverseGeocodingClientSecret"
}
}

Expand All @@ -41,6 +43,20 @@ extension Config {
return key
}()

static let ReverseGeocodingClientId: String = {
guard let key = Config.infoDictionary[Keys.Plist.reverseGeocodingClientId] as? String else {
fatalError("ReverseGeocodingClientID is not set in plist for this configuration.")
}
return key
}()

static let ReverseGeocodingClientSecret: String = {
guard let key = Config.infoDictionary[Keys.Plist.reverseGeocodingClientSecret] as? String else {
fatalError("ReverseGeocodingClientSecret is not set in plist for this configuration.")
}
return key
}()

static let Amplitude: String = {
guard let key = Config.infoDictionary[Keys.Plist.Amplitude] as? String else {
fatalError("Amplitude is not set in plist for this configuration.")
Expand Down
8 changes: 6 additions & 2 deletions Hankkijogbo/Hankkijogbo/Global/Supporting Files/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ReverseGeocodingClientId</key>
<string>$(ReverseGeocodingClientId)</string>
<key>ReverseGeocodingClientSecret</key>
<string>$(ReverseGeocodingClientSecret)</string>
<key>Amplitude</key>
<string>$(Amplitude)</string>
<key>UIUserInterfaceStyle</key>
<string>Light</string>
<key>UIUserInterfaceStyle</key>
<string>Light</string>
<key>BASE_URL</key>
<string>$(BASE_URL)</string>
<key>ITSAppUsesNonExemptEncryption</key>
Expand Down

0 comments on commit a872e22

Please sign in to comment.