xcode: add missing permissions description required for ios10

This commit is contained in:
Gautier Pelloux-Prayer 2016-08-22 15:19:05 +02:00
parent 13c43d0d46
commit 8689faad8e
3 changed files with 35 additions and 9 deletions

View file

@ -55,16 +55,14 @@
if (default_proxy != NULL) {
const LinphoneAddress *addr = linphone_proxy_config_get_identity_address(default_proxy);
[ContactDisplay setDisplayNameLabel:_nameLabel forAddress:addr];
char *as_string = linphone_address_as_string_uri_only(addr);
_addressLabel.text = [NSString stringWithUTF8String:as_string];
ms_free(as_string);
_addressLabel.text = [NSString stringWithUTF8String:linphone_proxy_config_get_identity(default_proxy)];
_presenceImage.image = [StatusBarView imageForState:linphone_proxy_config_get_state(default_proxy)];
} else {
_nameLabel.text = @"No account";
// display direct IP:port address so that we can be reached
LinphoneAddress *addr = linphone_core_get_primary_contact_parsed(LC);
if (addr) {
char *as_string = linphone_address_as_string_uri_only(addr);
char *as_string = linphone_address_as_string(addr);
_addressLabel.text = [NSString stringWithFormat:@"%s", as_string];
ms_free(as_string);
linphone_address_destroy(addr);

View file

@ -1,5 +1,15 @@
{
"images" : [
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "iphone",
"size" : "20x20",
"scale" : "3x"
},
{
"idiom" : "iphone",
"size" : "29x29",
@ -48,6 +58,16 @@
"size" : "60x60",
"scale" : "3x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "1x"
},
{
"idiom" : "ipad",
"size" : "20x20",
"scale" : "2x"
},
{
"idiom" : "ipad",
"size" : "29x29",
@ -113,4 +133,4 @@
"version" : 1,
"author" : "xcode"
}
}
}

View file

@ -60,6 +60,18 @@
<string>b5cb085f-772a-4a4f-8c77-5d1332b1f93f</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSBluetoothPeripheralUsageDescription</key>
<string>Use your BT headset</string>
<key>NSCameraUsageDescription</key>
<string>Share photos with your friends and customize avatars</string>
<key>NSContactsUsageDescription</key>
<string>Make calls with your friends</string>
<key>NSMicrophoneUsageDescription</key>
<string>Use microphone to make audio calls</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Share photos with your friends and customize avatars</string>
<key>NSVoIPUsageDescription</key>
<string>Make audio/video calls</string>
<key>UIApplicationExitsOnSuspend</key>
<false/>
<key>UIBackgroundModes</key>
@ -99,9 +111,5 @@
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>NSVoIPUsageDescription</key>
<string>Make audio/video calls</string>
<key>NSContactsUsageDescription</key>
<string>Make calls with your friends</string>
</dict>
</plist>