Skip to content

Commit 6a10d5d

Browse files
committed
Remove FB copyright notices from iOS template (#27725)
Summary: Files that are to be part of the user’s project shouldn’t have FB copyright notices. There’s [one notice left](https://github.com/facebook/react-native/blob/66601e755fcad10698e61d20878d52194ad0e90c/template/android/app/src/debug/java/com/helloworld/ReactNativeFlipper.java#L2) in the `android` template, which is in a file that doesn’t seem to be intended to be changed by the user and so that seems fine to me. [iOS] [Removed] - Remove copyright notices from iOS application template Pull Request resolved: #27725 Test Plan: ```bash npx react-native init TestTemplateUpdates --template ~/Code/ReactNative/react-native cd ios xcodebuild -workspace TestTemplateUpdates.xcworkspace \ -scheme TestTemplateUpdates \ -destination 'platform=iOS Simulator,OS=latest,name=iPhone 8' build […] ** BUILD SUCCEEDED ** ``` Differential Revision: D19343386 Pulled By: TheSavior fbshipit-source-id: a78be5e5d2fdc2477adedb51d6bb3ff19845b75f
1 parent 60da507 commit 6a10d5d

File tree

5 files changed

+4
-33
lines changed

5 files changed

+4
-33
lines changed

template/ios/HelloWorld.xcodeproj/project.pbxproj

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@
241241
isa = PBXProject;
242242
attributes = {
243243
LastUpgradeCheck = 0940;
244-
ORGANIZATIONNAME = Facebook;
245244
TargetAttributes = {
246245
00E356ED1AD99517003FC87E = {
247246
CreatedOnToolsVersion = 6.2;
@@ -550,7 +549,7 @@
550549
"-ObjC",
551550
"-lc++",
552551
);
553-
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.HelloWorld-tvOS";
552+
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.HelloWorld-tvOS";
554553
PRODUCT_NAME = "$(TARGET_NAME)";
555554
SDKROOT = appletvos;
556555
TARGETED_DEVICE_FAMILY = 3;
@@ -577,7 +576,7 @@
577576
"-ObjC",
578577
"-lc++",
579578
);
580-
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.HelloWorld-tvOS";
579+
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.HelloWorld-tvOS";
581580
PRODUCT_NAME = "$(TARGET_NAME)";
582581
SDKROOT = appletvos;
583582
TARGETED_DEVICE_FAMILY = 3;
@@ -603,7 +602,7 @@
603602
"-ObjC",
604603
"-lc++",
605604
);
606-
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.HelloWorld-tvOSTests";
605+
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.HelloWorld-tvOSTests";
607606
PRODUCT_NAME = "$(TARGET_NAME)";
608607
SDKROOT = appletvos;
609608
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HelloWorld-tvOS.app/HelloWorld-tvOS";
@@ -629,7 +628,7 @@
629628
"-ObjC",
630629
"-lc++",
631630
);
632-
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.HelloWorld-tvOSTests";
631+
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.HelloWorld-tvOSTests";
633632
PRODUCT_NAME = "$(TARGET_NAME)";
634633
SDKROOT = appletvos;
635634
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HelloWorld-tvOS.app/HelloWorld-tvOS";

template/ios/HelloWorld/AppDelegate.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*/
7-
81
#import <React/RCTBridgeDelegate.h>
92
#import <UIKit/UIKit.h>
103

template/ios/HelloWorld/AppDelegate.m

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*/
7-
81
#import "AppDelegate.h"
92

103
#import <React/RCTBridge.h>

template/ios/HelloWorld/main.m

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*/
7-
81
#import <UIKit/UIKit.h>
92

103
#import "AppDelegate.h"

template/ios/HelloWorldTests/HelloWorldTests.m

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,3 @@
1-
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
3-
*
4-
* This source code is licensed under the MIT license found in the
5-
* LICENSE file in the root directory of this source tree.
6-
*/
7-
81
#import <UIKit/UIKit.h>
92
#import <XCTest/XCTest.h>
103

0 commit comments

Comments
 (0)