mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-17 23:18:27 +02:00
MESSENGER-4034 app icon name
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// App identity
|
// App identity
|
||||||
BUNDLE_DISPLAY_NAME = BundesMessenger
|
BUNDLE_DISPLAY_NAME = Messenger
|
||||||
BASE_BUNDLE_IDENTIFIER = de.bwi.messenger
|
BASE_BUNDLE_IDENTIFIER = de.bwi.messenger
|
||||||
APPLICATION_GROUP_IDENTIFIER = group.de.messenger
|
APPLICATION_GROUP_IDENTIFIER = group.de.messenger
|
||||||
APPLICATION_SCHEME = element
|
APPLICATION_SCHEME = element
|
||||||
|
|||||||
@@ -74,6 +74,8 @@ class BWIBuildSettings: NSObject {
|
|||||||
|
|
||||||
// MARK: -
|
// MARK: -
|
||||||
|
|
||||||
|
var secondaryAppName = ""
|
||||||
|
|
||||||
// Location Sharing
|
// Location Sharing
|
||||||
// (this disables error messages when map laoding failed)
|
// (this disables error messages when map laoding failed)
|
||||||
var locationSharingSSLProblemWorkaround = true
|
var locationSharingSSLProblemWorkaround = true
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import Foundation
|
|||||||
extension BWIBuildSettings {
|
extension BWIBuildSettings {
|
||||||
|
|
||||||
func overrideTargetSpecificSettings() {
|
func overrideTargetSpecificSettings() {
|
||||||
|
secondaryAppName = "BundesMessenger"
|
||||||
authScreenShowRegister = true
|
authScreenShowRegister = true
|
||||||
showTopBanner = false
|
showTopBanner = false
|
||||||
bwiShowDeveloperSettings = true
|
bwiShowDeveloperSettings = true
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
|
|
||||||
// App identity
|
// App identity
|
||||||
BUNDLE_DISPLAY_NAME = BundesMessenger
|
BUNDLE_DISPLAY_NAME = Messenger
|
||||||
BASE_BUNDLE_IDENTIFIER = de.bwi.messenger
|
BASE_BUNDLE_IDENTIFIER = de.bwi.messenger
|
||||||
APPLICATION_GROUP_IDENTIFIER = group.de.messenger
|
APPLICATION_GROUP_IDENTIFIER = group.de.messenger
|
||||||
APPLICATION_SCHEME = element
|
APPLICATION_SCHEME = element
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ import Foundation
|
|||||||
extension BWIBuildSettings {
|
extension BWIBuildSettings {
|
||||||
|
|
||||||
func overrideTargetSpecificSettings() {
|
func overrideTargetSpecificSettings() {
|
||||||
|
secondaryAppName = "BundesMessenger"
|
||||||
locationSharingEnabled = false
|
locationSharingEnabled = false
|
||||||
bwiLocationShareButtonVisible = false
|
bwiLocationShareButtonVisible = false
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,9 +51,10 @@ final class AppInfo: NSObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static var bundleDisplayName: String {
|
private static var bundleDisplayName: String {
|
||||||
guard let bundleDisplayName = Bundle.app.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String else {
|
if !BWIBuildSettings.shared.secondaryAppName.isEmpty {
|
||||||
fatalError("CFBundleDisplayName should be defined")
|
return BWIBuildSettings.shared.secondaryAppName
|
||||||
|
} else {
|
||||||
|
return Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String ?? ""
|
||||||
}
|
}
|
||||||
return bundleDisplayName
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3506,7 +3506,12 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
|
|||||||
callerDisplayname = event.sender;
|
callerDisplayname = event.sender;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSString *appDisplayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
|
NSString *appDisplayName;
|
||||||
|
if(![BWIBuildSettings.shared.secondaryAppName isEqualToString:@""]) {
|
||||||
|
appDisplayName = BWIBuildSettings.shared.secondaryAppName;
|
||||||
|
} else {
|
||||||
|
appDisplayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
|
||||||
|
}
|
||||||
|
|
||||||
NSString *message = [VectorL10n noVoip:callerDisplayname :appDisplayName];
|
NSString *message = [VectorL10n noVoip:callerDisplayname :appDisplayName];
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,12 @@ final class CameraAccessAlertPresenter {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
let appDisplayName = Bundle.main.infoDictionary?["CFBundleDisplayName"] as? String ?? ""
|
let appDisplayName: String
|
||||||
|
if !BWIBuildSettings.shared.secondaryAppName.isEmpty {
|
||||||
|
appDisplayName = BWIBuildSettings.shared.secondaryAppName
|
||||||
|
} else {
|
||||||
|
appDisplayName = Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String ?? ""
|
||||||
|
}
|
||||||
|
|
||||||
let alert = UIAlertController(title: VectorL10n.camera, message: VectorL10n.cameraAccessNotGranted(appDisplayName), preferredStyle: .alert)
|
let alert = UIAlertController(title: VectorL10n.camera, message: VectorL10n.cameraAccessNotGranted(appDisplayName), preferredStyle: .alert)
|
||||||
|
|
||||||
|
|||||||
@@ -928,7 +928,12 @@
|
|||||||
NSString *displayName = myUser.displayname ?: myUser.userId;
|
NSString *displayName = myUser.displayname ?: myUser.userId;
|
||||||
displayName = displayName ?: @"";
|
displayName = displayName ?: @"";
|
||||||
|
|
||||||
NSString *appName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
|
NSString *appName;
|
||||||
|
if(![BWIBuildSettings.shared.secondaryAppName isEqualToString:@""]) {
|
||||||
|
appName = BWIBuildSettings.shared.secondaryAppName;
|
||||||
|
} else {
|
||||||
|
appName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
|
||||||
|
}
|
||||||
NSString *title = [VectorL10n homeEmptyViewTitle:appName :displayName];
|
NSString *title = [VectorL10n homeEmptyViewTitle:appName :displayName];
|
||||||
|
|
||||||
[self.emptyView fillWith:[self emptyViewArtwork]
|
[self.emptyView fillWith:[self emptyViewArtwork]
|
||||||
|
|||||||
@@ -362,7 +362,12 @@ static const CGFloat kLocalPreviewMargin = 20;
|
|||||||
{
|
{
|
||||||
// Access to the camera is mandatory to display the self view
|
// Access to the camera is mandatory to display the self view
|
||||||
// Check the permission right now
|
// Check the permission right now
|
||||||
NSString *appDisplayName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
|
NSString *appDisplayName;
|
||||||
|
if(![BWIBuildSettings.shared.secondaryAppName isEqualToString:@""]) {
|
||||||
|
appDisplayName = BWIBuildSettings.shared.secondaryAppName;
|
||||||
|
} else {
|
||||||
|
appDisplayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
|
||||||
|
}
|
||||||
[MXKTools checkAccessForMediaType:AVMediaTypeVideo
|
[MXKTools checkAccessForMediaType:AVMediaTypeVideo
|
||||||
manualChangeMessage:[VectorL10n cameraAccessNotGrantedForCall:appDisplayName]
|
manualChangeMessage:[VectorL10n cameraAccessNotGrantedForCall:appDisplayName]
|
||||||
|
|
||||||
@@ -638,7 +643,12 @@ static const CGFloat kLocalPreviewMargin = 20;
|
|||||||
{
|
{
|
||||||
// If we are here, we have access to the camera
|
// If we are here, we have access to the camera
|
||||||
// The following check is mainly to check microphone access permission
|
// The following check is mainly to check microphone access permission
|
||||||
NSString *appDisplayName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
|
NSString *appDisplayName;
|
||||||
|
if(![BWIBuildSettings.shared.secondaryAppName isEqualToString:@""]) {
|
||||||
|
appDisplayName = BWIBuildSettings.shared.secondaryAppName;
|
||||||
|
} else {
|
||||||
|
appDisplayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
|
||||||
|
}
|
||||||
|
|
||||||
[MXKTools checkAccessForCall:mxCall.isVideoCall
|
[MXKTools checkAccessForCall:mxCall.isVideoCall
|
||||||
manualChangeMessageForAudio:[VectorL10n microphoneAccessNotGrantedForCall:appDisplayName]
|
manualChangeMessageForAudio:[VectorL10n microphoneAccessNotGrantedForCall:appDisplayName]
|
||||||
|
|||||||
@@ -1515,7 +1515,12 @@ static NSArray<NSNumber*> *initialSyncSilentErrorsHTTPStatusCodes;
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
NSString *appDisplayName = [NSString stringWithFormat:@"%@ (iOS)", [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"]];
|
NSString *appDisplayName;
|
||||||
|
if(![BWIBuildSettings.shared.secondaryAppName isEqualToString:@""]) {
|
||||||
|
appDisplayName = BWIBuildSettings.shared.secondaryAppName;
|
||||||
|
} else {
|
||||||
|
appDisplayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
|
||||||
|
}
|
||||||
|
|
||||||
NSString *b64Token = [token base64EncodedStringWithOptions:0];
|
NSString *b64Token = [token base64EncodedStringWithOptions:0];
|
||||||
|
|
||||||
|
|||||||
@@ -1174,7 +1174,12 @@ NSString *const MXKContactManagerDataType = @"org.matrix.kit.MXKContactManagerDa
|
|||||||
|
|
||||||
+ (void)requestUserConfirmationForLocalContactsSyncInViewController:(UIViewController *)viewController completionHandler:(void (^)(BOOL))handler
|
+ (void)requestUserConfirmationForLocalContactsSyncInViewController:(UIViewController *)viewController completionHandler:(void (^)(BOOL))handler
|
||||||
{
|
{
|
||||||
NSString *appDisplayName = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleDisplayName"];
|
NSString *appDisplayName;
|
||||||
|
if(![BWIBuildSettings.shared.secondaryAppName isEqualToString:@""]) {
|
||||||
|
appDisplayName = BWIBuildSettings.shared.secondaryAppName;
|
||||||
|
} else {
|
||||||
|
appDisplayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
|
||||||
|
}
|
||||||
|
|
||||||
[MXKContactManager requestUserConfirmationForLocalContactsSyncWithTitle:[VectorL10n localContactsAccessDiscoveryWarningTitle]
|
[MXKContactManager requestUserConfirmationForLocalContactsSyncWithTitle:[VectorL10n localContactsAccessDiscoveryWarningTitle]
|
||||||
message:[VectorL10n localContactsAccessDiscoveryWarning:appDisplayName]
|
message:[VectorL10n localContactsAccessDiscoveryWarning:appDisplayName]
|
||||||
|
|||||||
@@ -257,8 +257,13 @@
|
|||||||
|
|
||||||
- (void)presentPermissionDeniedAlert
|
- (void)presentPermissionDeniedAlert
|
||||||
{
|
{
|
||||||
NSString *appDisplayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
|
NSString *appDisplayName;
|
||||||
|
if(![BWIBuildSettings.shared.secondaryAppName isEqualToString:@""]) {
|
||||||
|
appDisplayName = BWIBuildSettings.shared.secondaryAppName;
|
||||||
|
} else {
|
||||||
|
appDisplayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
|
||||||
|
}
|
||||||
|
|
||||||
NSString *message = [VectorL10n photoLibraryAccessNotGranted:appDisplayName];
|
NSString *message = [VectorL10n photoLibraryAccessNotGranted:appDisplayName];
|
||||||
|
|
||||||
UIAlertController *alert = [UIAlertController alertControllerWithTitle:[VectorL10n mediaPickerTitle]
|
UIAlertController *alert = [UIAlertController alertControllerWithTitle:[VectorL10n mediaPickerTitle]
|
||||||
|
|||||||
@@ -45,7 +45,11 @@ import MatomoTracker
|
|||||||
var session: MXSession? = nil
|
var session: MXSession? = nil
|
||||||
|
|
||||||
private override init() {
|
private override init() {
|
||||||
appName = Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as! String
|
if !BWIBuildSettings.shared.secondaryAppName.isEmpty {
|
||||||
|
appName = BWIBuildSettings.shared.secondaryAppName
|
||||||
|
} else {
|
||||||
|
appName = Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as! String
|
||||||
|
}
|
||||||
appVersion = AppDelegate.theDelegate().appVersion
|
appVersion = AppDelegate.theDelegate().appVersion
|
||||||
|
|
||||||
if BWIBuildSettings.shared.bwiEnableErrorTracking {
|
if BWIBuildSettings.shared.bwiEnableErrorTracking {
|
||||||
|
|||||||
@@ -72,8 +72,14 @@ import WebKit
|
|||||||
flavor = ServerURLHelper.shared.flavor()!
|
flavor = ServerURLHelper.shared.flavor()!
|
||||||
}
|
}
|
||||||
|
|
||||||
guard let appName = Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName"),
|
let appName: String
|
||||||
let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString"),
|
if !BWIBuildSettings.shared.secondaryAppName.isEmpty {
|
||||||
|
appName = BWIBuildSettings.shared.secondaryAppName
|
||||||
|
} else {
|
||||||
|
appName = Bundle.main.object(forInfoDictionaryKey: "CFBundleDisplayName") as! String
|
||||||
|
}
|
||||||
|
|
||||||
|
guard let version = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString"),
|
||||||
let build = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion"),
|
let build = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion"),
|
||||||
let network = self.networkVersion(),
|
let network = self.networkVersion(),
|
||||||
let darwin = self.darwinVersion()
|
let darwin = self.darwinVersion()
|
||||||
|
|||||||
Reference in New Issue
Block a user