forked from mirrors/linphone-iphone
simplify the group name for extensions
This commit is contained in:
parent
40c58b3bf0
commit
2492991a6a
9 changed files with 19 additions and 17 deletions
|
|
@ -27,7 +27,6 @@
|
|||
#import "DevicesListView.h"
|
||||
|
||||
@implementation ChatConversationView
|
||||
static NSString* groupName = @"group.belledonne-communications.linphone";
|
||||
|
||||
#pragma mark - Lifecycle Functions
|
||||
|
||||
|
|
@ -250,6 +249,7 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
}
|
||||
|
||||
- (void)shareFile {
|
||||
NSString* groupName = [NSString stringWithFormat:@"group.%@.linphoneExtension",[[NSBundle mainBundle] bundleIdentifier]];
|
||||
NSUserDefaults *defaults = [[NSUserDefaults alloc] initWithSuiteName:groupName];
|
||||
NSDictionary *dict = [defaults valueForKey:@"photoData"];
|
||||
NSDictionary *dictFile = [defaults valueForKey:@"icloudData"];
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@ static int sorted_history_comparison(LinphoneChatRoom *to_insert, LinphoneChatRo
|
|||
}
|
||||
|
||||
+ (void) saveDataToUserDefaults {
|
||||
NSUserDefaults *defaults = [[NSUserDefaults alloc] initWithSuiteName:@"group.belledonne-communications.linphone.widget"];
|
||||
NSUserDefaults *defaults = [[NSUserDefaults alloc] initWithSuiteName:[NSString stringWithFormat:@"group.%@.latestChatroomsWidget",[[NSBundle mainBundle] bundleIdentifier]]];
|
||||
MSList *sorted = nil;
|
||||
const MSList *unsorted = linphone_core_get_chat_rooms(LC);
|
||||
const MSList *iter = unsorted;
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@
|
|||
|
||||
+ (void) saveDataToUserDefaults {
|
||||
const bctbx_list_t *logs = linphone_core_get_call_logs(LC);
|
||||
NSUserDefaults *mySharedDefaults = [[NSUserDefaults alloc] initWithSuiteName: @"group.belledonne-communications.linphone.widget"];
|
||||
NSUserDefaults *mySharedDefaults = [[NSUserDefaults alloc] initWithSuiteName: [NSString stringWithFormat:@"group.%@.latestCallsWidget",[[NSBundle mainBundle] bundleIdentifier]]];
|
||||
NSMutableArray *logsShare = [NSMutableArray array];
|
||||
NSMutableDictionary *tmpStoreDict = [NSMutableDictionary dictionary];
|
||||
NSMutableArray *addedContacts = [NSMutableArray array];
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
@implementation TodayViewController
|
||||
|
||||
- (void)loadData {
|
||||
NSUserDefaults *mySharedDefaults = [[NSUserDefaults alloc] initWithSuiteName: @"group.belledonne-communications.linphone.widget"];
|
||||
NSUserDefaults *mySharedDefaults = [[NSUserDefaults alloc] initWithSuiteName: [NSString stringWithFormat:@"group.%@",[[NSBundle mainBundle] bundleIdentifier]]];
|
||||
[_imgs removeAllObjects];
|
||||
[_logIds removeAllObjects];
|
||||
[_displayNames removeAllObjects];
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
@implementation TodayViewController
|
||||
|
||||
- (void)loadData {
|
||||
NSUserDefaults *mySharedDefaults = [[NSUserDefaults alloc] initWithSuiteName: @"group.belledonne-communications.linphone.widget"];
|
||||
NSUserDefaults *mySharedDefaults = [[NSUserDefaults alloc] initWithSuiteName: [NSString stringWithFormat:@"group.%@",[[NSBundle mainBundle] bundleIdentifier]]];
|
||||
[_imgs removeAllObjects];
|
||||
[_addresses removeAllObjects];
|
||||
[_localAddress removeAllObjects];
|
||||
|
|
|
|||
|
|
@ -124,7 +124,7 @@
|
|||
</dict>
|
||||
</array>
|
||||
<key>UIApplicationShortcutWidget</key>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER).widget.latestChatrooms</string>
|
||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER).latestChatroomsWidget</string>
|
||||
<key>UIBackgroundModes</key>
|
||||
<array>
|
||||
<string>audio</string>
|
||||
|
|
|
|||
|
|
@ -20,8 +20,9 @@
|
|||
<string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string>
|
||||
<key>com.apple.security.application-groups</key>
|
||||
<array>
|
||||
<string>group.belledonne-communications.linphone.widget</string>
|
||||
<string>group.belledonne-communications.linphone</string>
|
||||
<string>group.org.linphone.phone.linphoneExtension</string>
|
||||
<string>group.org.linphone.phone.latestCallsWidget</string>
|
||||
<string>group.org.linphone.phone.latestChatroomsWidget</string>
|
||||
</array>
|
||||
</dict>
|
||||
</plist>
|
||||
|
|
|
|||
|
|
@ -5929,7 +5929,7 @@
|
|||
GCC_WARN_UNUSED_FUNCTION = YES;
|
||||
INFOPLIST_FILE = latestChatroomsWidget/Info.plist;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.widget.latestChatrooms;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.latestChatroomsWidget;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE = "";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
|
|
@ -5970,7 +5970,7 @@
|
|||
INFOPLIST_FILE = latestChatroomsWidget/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.widget.latestChatrooms;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.latestChatroomsWidget;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE = "";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
|
|
@ -6013,7 +6013,7 @@
|
|||
INFOPLIST_FILE = latestChatroomsWidget/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.widget.latestChatrooms;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.latestChatroomsWidget;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE = "";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
|
|
@ -6056,7 +6056,7 @@
|
|||
INFOPLIST_FILE = latestChatroomsWidget/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.widget.latestChatrooms;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.latestChatroomsWidget;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE = "";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
|
|
@ -6268,7 +6268,7 @@
|
|||
INFOPLIST_FILE = latestCallsWidget/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
MTL_ENABLE_DEBUG_INFO = YES;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.widget.latestCalls;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.latestCallsWidget;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE = "";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
|
|
@ -6310,7 +6310,7 @@
|
|||
INFOPLIST_FILE = latestCallsWidget/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.widget.latestCalls;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.latestCallsWidget;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE = "";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
|
|
@ -6353,7 +6353,7 @@
|
|||
INFOPLIST_FILE = latestCallsWidget/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.widget.latestCalls;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.latestCallsWidget;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE = "";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
|
|
@ -6396,7 +6396,7 @@
|
|||
INFOPLIST_FILE = latestCallsWidget/Info.plist;
|
||||
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
|
||||
MTL_ENABLE_DEBUG_INFO = NO;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.widget.latestCalls;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = org.linphone.phone.latestCallsWidget;
|
||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||
PROVISIONING_PROFILE = "";
|
||||
PROVISIONING_PROFILE_SPECIFIER = "";
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
@interface ShareViewController ()
|
||||
|
||||
@end
|
||||
static NSString* groupName = @"group.belledonne-communications.linphone";
|
||||
|
||||
@implementation ShareViewController
|
||||
|
||||
- (BOOL)isContentValid {
|
||||
|
|
@ -19,6 +19,7 @@ static NSString* groupName = @"group.belledonne-communications.linphone";
|
|||
}
|
||||
|
||||
- (void)didSelectPost {
|
||||
NSString* groupName = [NSString stringWithFormat:@"group.%@",[[NSBundle mainBundle] bundleIdentifier]];
|
||||
// This is called after the user selects Post. Do the upload of contentText and/or NSExtensionContext attachments.
|
||||
BOOL support = TRUE;
|
||||
// Inform the host that we're done, so it un-blocks its UI. Note: Alternatively you could call super's -didSelectPost, which will similarly complete the extension context.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue