This repository has been archived by the owner on Jul 5, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better manage internal settings. Add new api-key to Loggly.
- Loading branch information
Showing
4 changed files
with
33 additions
and
1 deletion.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// InfoInternal.swift | ||
// PotatsoBase | ||
// | ||
// Created by Wasin Thonkaew on 1/6/18. | ||
// Copyright © 2018 TouchingApp. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public class InfoInternal: NSObject { | ||
public static let shared = InfoInternal() | ||
var infoDict: Dictionary<String, Any> | ||
|
||
fileprivate override init() { | ||
infoDict = Bundle.main.infoDictionary!["PotatsoInternal"] as! Dictionary<String, Any> | ||
} | ||
|
||
public func getGroupIdentifier() -> String { | ||
return infoDict["GroupIdentifier"] as! String | ||
} | ||
|
||
public func getLogglyAPIKey() -> String { | ||
return infoDict["LogglyAPIKey"] as! String | ||
} | ||
} |