Make CoreConfiguration a class for bundle lookup
This commit is contained in:
parent
470c50b037
commit
21b67fd9ff
|
@ -37,11 +37,11 @@
|
||||||
import Foundation
|
import Foundation
|
||||||
import __TunnelKitNative
|
import __TunnelKitNative
|
||||||
|
|
||||||
struct CoreConfiguration {
|
class CoreConfiguration {
|
||||||
static let identifier = "com.algoritmico.TunnelKit"
|
static let identifier = "com.algoritmico.TunnelKit"
|
||||||
|
|
||||||
static let version: String = {
|
static let version: String = {
|
||||||
let bundle = Bundle(for: SessionProxy.self)
|
let bundle = Bundle(for: CoreConfiguration.self)
|
||||||
guard let info = bundle.infoDictionary else {
|
guard let info = bundle.infoDictionary else {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue