-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ADD] GoogleAdUnitID 스킴 분기 처리 (#150)
- Loading branch information
1 parent
76b5971
commit 3c7e7ae
Showing
4 changed files
with
33 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
Projects/Core/Services/Sources/SocialLogin/Util/APIKey.swift
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// APIKey.swift | ||
// CoreKit | ||
// | ||
// Created by kyuchul on 6/17/24. | ||
// Copyright © 2024 com.jordyma.blink. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
enum APIKey { | ||
static let kakao = getInfoValue(for: "KAKAO_NATIVE_APP_KEY") | ||
static let googleAdUnitID = getInfoValue(for: "GOOGLE_AD_UNITID") | ||
|
||
private static func getInfoValue(for key: String) -> String { | ||
guard let infoDictionary = Bundle.main.infoDictionary, | ||
let value = infoDictionary[key] as? String else { | ||
fatalError("Wrong \(key)") | ||
} | ||
return value | ||
} | ||
} |