Skip to content

Commit 9c3fa57

Browse files
alloyfacebook-github-bot
authored andcommitted
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. ## Changelog [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 39089b4 commit 9c3fa57

File tree

6 files changed

+4
-40
lines changed

6 files changed

+4
-40
lines changed

template/ios/HelloWorld.xcodeproj/project.pbxproj

+4-5
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@
244244
isa = PBXProject;
245245
attributes = {
246246
LastUpgradeCheck = 0940;
247-
ORGANIZATIONNAME = Facebook;
248247
TargetAttributes = {
249248
00E356ED1AD99517003FC87E = {
250249
CreatedOnToolsVersion = 6.2;
@@ -557,7 +556,7 @@
557556
"-ObjC",
558557
"-lc++",
559558
);
560-
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.HelloWorld-tvOS";
559+
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.HelloWorld-tvOS";
561560
PRODUCT_NAME = "$(TARGET_NAME)";
562561
SDKROOT = appletvos;
563562
TARGETED_DEVICE_FAMILY = 3;
@@ -584,7 +583,7 @@
584583
"-ObjC",
585584
"-lc++",
586585
);
587-
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.HelloWorld-tvOS";
586+
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.HelloWorld-tvOS";
588587
PRODUCT_NAME = "$(TARGET_NAME)";
589588
SDKROOT = appletvos;
590589
TARGETED_DEVICE_FAMILY = 3;
@@ -610,7 +609,7 @@
610609
"-ObjC",
611610
"-lc++",
612611
);
613-
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.HelloWorld-tvOSTests";
612+
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.HelloWorld-tvOSTests";
614613
PRODUCT_NAME = "$(TARGET_NAME)";
615614
SDKROOT = appletvos;
616615
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HelloWorld-tvOS.app/HelloWorld-tvOS";
@@ -636,7 +635,7 @@
636635
"-ObjC",
637636
"-lc++",
638637
);
639-
PRODUCT_BUNDLE_IDENTIFIER = "com.facebook.REACT.HelloWorld-tvOSTests";
638+
PRODUCT_BUNDLE_IDENTIFIER = "org.reactjs.native.example.HelloWorld-tvOSTests";
640639
PRODUCT_NAME = "$(TARGET_NAME)";
641640
SDKROOT = appletvos;
642641
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/HelloWorld-tvOS.app/HelloWorld-tvOS";

template/ios/HelloWorld/AppDelegate.h

-7
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

-7
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

-7
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

-7
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

template/ios/Swift.swift

-7
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
// Flipper requires Swift, feel free to delete this file if you do not plan to use Flipper.
92

103
import Foundation

0 commit comments

Comments
 (0)