From 07a8a00c3f7d42718e1f7655b99d0e376d3c617c Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Mon, 1 Dec 2014 14:22:25 +0100 Subject: [PATCH] Only target iPhone for LinphoneTester --- .../Base.lproj/Main_iPhone.storyboard | 90 ++----------------- LinphoneTester/DetailViewController.m | 2 + linphone.xcodeproj/project.pbxproj | 4 + 3 files changed, 13 insertions(+), 83 deletions(-) diff --git a/LinphoneTester/Base.lproj/Main_iPhone.storyboard b/LinphoneTester/Base.lproj/Main_iPhone.storyboard index 00ded41d0..d2b7677dd 100644 --- a/LinphoneTester/Base.lproj/Main_iPhone.storyboard +++ b/LinphoneTester/Base.lproj/Main_iPhone.storyboard @@ -1,8 +1,8 @@ - + - - + + @@ -20,7 +20,7 @@ - + @@ -57,27 +57,13 @@ - - - - - + - + @@ -105,78 +91,16 @@ - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/LinphoneTester/DetailViewController.m b/LinphoneTester/DetailViewController.m index 17bb0d84b..4dbbfa71d 100644 --- a/LinphoneTester/DetailViewController.m +++ b/LinphoneTester/DetailViewController.m @@ -54,6 +54,7 @@ static NSString* const kAllTestsName = @"Run All tests"; // Update the view. [self configureView]; + [self.tableView reloadData]; } if (self.masterPopoverController != nil) { @@ -64,6 +65,7 @@ static NSString* const kAllTestsName = @"Run All tests"; - (void)configureView { const char* suite = [self.detailItem UTF8String]; + if( suite == NULL ) return; NSString* nssuite = [NSString stringWithUTF8String:suite]; int count = liblinphone_tester_nb_tests(suite); _tests = [[NSMutableArray alloc] initWithCapacity:count]; diff --git a/linphone.xcodeproj/project.pbxproj b/linphone.xcodeproj/project.pbxproj index 742c56b9c..231db8350 100755 --- a/linphone.xcodeproj/project.pbxproj +++ b/linphone.xcodeproj/project.pbxproj @@ -4873,6 +4873,7 @@ ONLY_ACTIVE_ARCH = YES; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; + TARGETED_DEVICE_FAMILY = 1; WRAPPER_EXTENSION = app; }; name = Debug; @@ -4921,6 +4922,7 @@ ); PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; + TARGETED_DEVICE_FAMILY = 1; VALIDATE_PRODUCT = YES; WRAPPER_EXTENSION = app; }; @@ -4970,6 +4972,7 @@ ); PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; + TARGETED_DEVICE_FAMILY = 1; VALIDATE_PRODUCT = YES; WRAPPER_EXTENSION = app; }; @@ -5019,6 +5022,7 @@ ); PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE = ""; + TARGETED_DEVICE_FAMILY = 1; VALIDATE_PRODUCT = YES; WRAPPER_EXTENSION = app; };