File tree 1 file changed +4
-4
lines changed
Modules/Sources/BuildSettingsKit
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,14 +4,14 @@ extension BuildSettings {
4
4
static let live = BuildSettings ( bundle: . app)
5
5
6
6
init ( bundle: Bundle ) {
7
- self . pushNotificationAppID = bundle. infoPlistValue ( forKey: " WPPushNotificationAppID " )
8
- self . appGroupName = bundle. infoPlistValue ( forKey: " WPAppGroupName " )
9
- self . appKeychainAccessGroup = bundle. infoPlistValue ( forKey: " WPAppKeychainAccessGroup " )
7
+ pushNotificationAppID = bundle. infoValue ( forKey: " WPPushNotificationAppID " )
8
+ appGroupName = bundle. infoValue ( forKey: " WPAppGroupName " )
9
+ appKeychainAccessGroup = bundle. infoValue ( forKey: " WPAppKeychainAccessGroup " )
10
10
}
11
11
}
12
12
13
13
private extension Bundle {
14
- func infoPlistValue < T> ( forKey key: String ) -> T where T: LosslessStringConvertible {
14
+ func infoValue < T> ( forKey key: String ) -> T where T: LosslessStringConvertible {
15
15
guard let object = object ( forInfoDictionaryKey: key) else {
16
16
fatalError ( " missing value for key: \( key) " )
17
17
}
You can’t perform that action at this time.
0 commit comments