mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Introduce a build setting to detect Nightly builds. (#5852)
* Allow the AppIconBanner tool to be called with purely the build number. And use that for the Element Pro Nightly. * Use a build setting to determine Nightly builds.
This commit is contained in:
@@ -40,11 +40,10 @@ nonisolated enum AppBuildType {
|
||||
#if DEBUG
|
||||
return .debug
|
||||
#else
|
||||
switch InfoPlistReader.main.baseBundleIdentifier {
|
||||
case "io.element.elementx.nightly":
|
||||
return .nightly
|
||||
default:
|
||||
return .release
|
||||
if InfoPlistReader.main.isNightlyBuild {
|
||||
.nightly
|
||||
} else {
|
||||
.release
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user