diff --git a/iOS/Sample/AppDelegate.mm b/iOS/Sample/AppDelegate.mm index 0b4ec63ed..568f8e94a 100644 --- a/iOS/Sample/AppDelegate.mm +++ b/iOS/Sample/AppDelegate.mm @@ -48,7 +48,7 @@ [_window setRootViewController: [[UINavigationController alloc] initWithRootViewController: mainViewController]]; [_window makeKeyAndVisible]; - NSLog(@"Hello from Sonar in an Objc app!"); + NSLog(@"Hello from Flipper in an Objc app!"); return YES; } diff --git a/iOS/Sample/Info.plist b/iOS/Sample/Info.plist index c20d05686..c12df3b8a 100644 --- a/iOS/Sample/Info.plist +++ b/iOS/Sample/Info.plist @@ -7,7 +7,7 @@ CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier - com.facebook.sonar + $(PRODUCT_BUNDLE_IDENTIFIER) CFBundleInfoDictionaryVersion 6.0 CFBundleName diff --git a/iOS/Sample/NetworkViewController.m b/iOS/Sample/NetworkViewController.m index 3696be0b1..c64f7a205 100644 --- a/iOS/Sample/NetworkViewController.m +++ b/iOS/Sample/NetworkViewController.m @@ -29,12 +29,12 @@ } - (IBAction)tappedPOSTAPI:(UIButton *)sender { - NSString *post = @"https://demo9512366.mockable.io/SonarPost"; + NSString *post = @"https://demo9512366.mockable.io/FlipperPost"; NSURL *url = [NSURL URLWithString:post]; NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL: url]; [urlRequest addValue:@"application/json" forHTTPHeaderField:@"Content-Type"]; [urlRequest addValue:@"application/json" forHTTPHeaderField:@"Accept"]; - NSDictionary *mapData = [[NSDictionary alloc] initWithObjectsAndKeys: @"Sonar", @"app", + NSDictionary *mapData = [[NSDictionary alloc] initWithObjectsAndKeys: @"Flipper", @"app", @"Its awesome", @"remarks", nil]; NSError *error = nil; @@ -60,7 +60,7 @@ - (IBAction)tappedGetAPI:(UIButton *)sender { __weak NetworkViewController *weakSelf = self; - [[[NSURLSession sharedSession] dataTaskWithURL:[NSURL URLWithString:@"https://demo9512366.mockable.io/"] completionHandler:^(NSData *_Nullable data, NSURLResponse *_Nullable response, NSError *_Nullable error) { + [[[NSURLSession sharedSession] dataTaskWithURL:[NSURL URLWithString:@"https://demo9512366.mockable.io/FlipperGet"] completionHandler:^(NSData *_Nullable data, NSURLResponse *_Nullable response, NSError *_Nullable error) { if (error || !data) { UIAlertController *alertController = [weakSelf alertControllerForMessage:@"Received error in GET API response"]; [weakSelf presentViewController:alertController animated:true completion:nil]; @@ -75,7 +75,7 @@ - (UIAlertController *)alertControllerForMessage:(nonnull NSString *)msg { - UIAlertController *controller = [UIAlertController alertControllerWithTitle:@"Sonar" message:msg preferredStyle:UIAlertControllerStyleAlert]; + UIAlertController *controller = [UIAlertController alertControllerWithTitle:@"Flipper" message:msg preferredStyle:UIAlertControllerStyleAlert]; UIAlertAction *action = [UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDefault handler:nil]; [controller addAction:action]; return controller; diff --git a/iOS/Sample/Sample.xcodeproj/project.pbxproj b/iOS/Sample/Sample.xcodeproj/project.pbxproj index e27b21f98..8e2287d2e 100644 --- a/iOS/Sample/Sample.xcodeproj/project.pbxproj +++ b/iOS/Sample/Sample.xcodeproj/project.pbxproj @@ -377,7 +377,7 @@ "\"UIKit\"", "-DFB_SONARKIT_ENABLED=1", ); - PRODUCT_BUNDLE_IDENTIFIER = FB.Sample; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.flipper; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; }; @@ -441,7 +441,7 @@ "\"UIKit\"", "-DFB_SONARKIT_ENABLED=1", ); - PRODUCT_BUNDLE_IDENTIFIER = FB.Sample; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.flipper; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; }; diff --git a/iOS/SampleSwift/SampleSwift.xcodeproj/project.pbxproj b/iOS/SampleSwift/SampleSwift.xcodeproj/project.pbxproj index 82cc83eb3..f2cba01fc 100644 --- a/iOS/SampleSwift/SampleSwift.xcodeproj/project.pbxproj +++ b/iOS/SampleSwift/SampleSwift.xcodeproj/project.pbxproj @@ -341,7 +341,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.facebook.sonar.SampleSwift; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.flipper.SampleSwift; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; @@ -375,7 +375,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.facebook.sonar.SampleSwift; + PRODUCT_BUNDLE_IDENTIFIER = com.facebook.flipper.SampleSwift; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; diff --git a/iOS/SampleSwift/SampleSwift/AppDelegate.swift b/iOS/SampleSwift/SampleSwift/AppDelegate.swift index 0d3395a5f..c8b12a596 100644 --- a/iOS/SampleSwift/SampleSwift/AppDelegate.swift +++ b/iOS/SampleSwift/SampleSwift/AppDelegate.swift @@ -24,14 +24,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate { let mainViewController = storyboard.instantiateViewController(withIdentifier: "MainViewController") let navigationController = UINavigationController(rootViewController: mainViewController) - navigationController.navigationBar.topItem?.title = "SampleSwift"; + navigationController.navigationBar.topItem?.title = "SampleFlipper"; navigationController.navigationBar.isTranslucent = false; window?.rootViewController = navigationController window?.makeKeyAndVisible() - // Use NSLog since Sonar doesn't capture print() by default - NSLog("Hello from Sonar in a Swift app!") + // Use NSLog since Flipepr doesn't capture print() by default + NSLog("Hello from Flipper in a Swift app!") return true }