Skip to content

Commit

Permalink
Merge pull request #861 from Infomaniak/fix-beta-text
Browse files Browse the repository at this point in the history
fix: Only display beta text in TestFlight builds
  • Loading branch information
PhilippeWeidmann committed Jul 6, 2023
2 parents 075cec1 + a928909 commit d51c456
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Infomaniak/ios-core",
"state" : {
"revision" : "e5fe8e03aa06375f20c8e40f4fae3a6af6e4d75e"
"revision" : "ef2811a288a3a4b94dd5d04c5f47ddd771e4176c"
}
},
{
Expand Down
4 changes: 3 additions & 1 deletion MailCore/Utils/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ public enum Constants {
let appName = Bundle.main.object(forInfoDictionaryKey: "CFBundleName") as! String? ?? "Mail"
let release = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String? ?? "x.x"
let build = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as! String? ?? "x"
return "\(appName) iOS version \(release)-beta\(build)"
let betaRelease = Bundle.main.isRunningInTestFlight ? "beta" : ""

return "\(appName) iOS version \(release)-\(betaRelease)\(build)"
}

public static let searchFolderId = "search_folder_id"
Expand Down
2 changes: 1 addition & 1 deletion Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let project = Project(name: "Mail",
packages: [
.package(url: "https://github.com/Infomaniak/ios-login", .upToNextMajor(from: "4.0.0")),
.package(url: "https://github.com/Infomaniak/ios-dependency-injection", .upToNextMajor(from: "1.1.6")),
.package(url: "https://github.com/Infomaniak/ios-core", .revision("e5fe8e03aa06375f20c8e40f4fae3a6af6e4d75e")),
.package(url: "https://github.com/Infomaniak/ios-core", .revision("ef2811a288a3a4b94dd5d04c5f47ddd771e4176c")),
.package(url: "https://github.com/Infomaniak/ios-core-ui", .upToNextMajor(from: "2.3.0")),
.package(url: "https://github.com/Infomaniak/ios-notifications", .upToNextMajor(from: "2.1.0")),
.package(url: "https://github.com/Infomaniak/ios-create-account", .upToNextMajor(from: "1.1.0")),
Expand Down

0 comments on commit d51c456

Please sign in to comment.