Skip to content

Commit 7c66c7a

Browse files
committed
build: fix compilation issue on OUDSBuildType and OUDSSDKChangelog get as String?
1 parent 684f27b commit 7c66c7a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

DesignToolbox/DesignToolbox/Utils/Bundle+extension.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extension Bundle {
3838
#if DEBUG
3939
"debug"
4040
#else
41-
string(forInfoDictionaryKey: "OUDSBuildType")
41+
string(forInfoDictionaryKey: "OUDSBuildType") ?? "NotFound"
4242
#endif
4343
}
4444

@@ -90,7 +90,11 @@ extension Bundle {
9090
#if DEBUG
9191
nil
9292
#else
93-
URL(string: string(forInfoDictionaryKey: "OUDSSDKChangelog"))
93+
if let string = string(forInfoDictionaryKey: "OUDSSDKChangelog") {
94+
return URL(string: string)
95+
} else {
96+
return nil
97+
}
9498
#endif
9599
}
96100

0 commit comments

Comments
 (0)