Skip to content

Commit ef85643

Browse files
authored
update example to use 2.0.0 version (#6)
1 parent ed6dc3f commit ef85643

File tree

4 files changed

+28
-20
lines changed

4 files changed

+28
-20
lines changed

example/android/app/src/main/java/com/testconfig/MainApplication.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import android.app.Application;
44

55
import com.facebook.react.ReactApplication;
6-
import com.reactlibrary.RNConfigReaderPackage;
6+
import com.csath.RNConfigReaderPackage;
77
import com.facebook.react.ReactNativeHost;
88
import com.facebook.react.ReactPackage;
99
import com.facebook.react.shell.MainReactPackage;

example/ios/testConfig.xcodeproj/project.pbxproj

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; };
3737
2DCD954D1E0B4F2C00145EB5 /* testConfigTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* testConfigTests.m */; };
3838
2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; };
39-
43F34379FB754522A63B49BE /* libRNConfigReader.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78EFB122B4F34CB4AADF0EFD /* libRNConfigReader.a */; };
4039
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
4140
ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; };
41+
B043CBDB46E644ECB6E04D00 /* libRNConfigReader.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 7C7F95F9A6D44EFA89E1C25F /* libRNConfigReader.a */; };
4242
ED297163215061F000B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; };
4343
ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2971642150620600B7C4FE /* JavaScriptCore.framework */; };
4444
/* End PBXBuildFile section */
@@ -296,9 +296,9 @@
296296
remoteGlobalIDString = ED296FEE214C9CF800B7C4FE;
297297
remoteInfo = "jsiexecutor-tvOS";
298298
};
299-
70E944C822565726001E94C9 /* PBXContainerItemProxy */ = {
299+
70EBE38E225C9FCF0005DE55 /* PBXContainerItemProxy */ = {
300300
isa = PBXContainerItemProxy;
301-
containerPortal = EE3FDBC11A734D21831910B0 /* RNConfigReader.xcodeproj */;
301+
containerPortal = 0D6F0F730C4E4874BBE23042 /* RNConfigReader.xcodeproj */;
302302
proxyType = 2;
303303
remoteGlobalIDString = 134814201AA4EA6300B7C361;
304304
remoteInfo = RNConfigReader;
@@ -336,6 +336,7 @@
336336
00E356EE1AD99517003FC87E /* testConfigTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = testConfigTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
337337
00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
338338
00E356F21AD99517003FC87E /* testConfigTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = testConfigTests.m; sourceTree = "<group>"; };
339+
0D6F0F730C4E4874BBE23042 /* RNConfigReader.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNConfigReader.xcodeproj; path = "../node_modules/react-native-config-reader/ios/RNConfigReader.xcodeproj"; sourceTree = "<group>"; };
339340
139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = "<group>"; };
340341
139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = "<group>"; };
341342
13B07F961A680F5B00A75B9A /* testConfig.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = testConfig.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -351,12 +352,11 @@
351352
2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; };
352353
5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = "<group>"; };
353354
78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = "<group>"; };
354-
78EFB122B4F34CB4AADF0EFD /* libRNConfigReader.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNConfigReader.a; sourceTree = "<group>"; };
355+
7C7F95F9A6D44EFA89E1C25F /* libRNConfigReader.a */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = archive.ar; path = libRNConfigReader.a; sourceTree = "<group>"; };
355356
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = "<group>"; };
356357
ADBDB91F1DFEBF0600ED6528 /* RCTBlob.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTBlob.xcodeproj; path = "../node_modules/react-native/Libraries/Blob/RCTBlob.xcodeproj"; sourceTree = "<group>"; };
357358
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
358359
ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
359-
EE3FDBC11A734D21831910B0 /* RNConfigReader.xcodeproj */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 9; includeInIndex = 0; lastKnownFileType = "wrapper.pb-project"; name = RNConfigReader.xcodeproj; path = "../node_modules/react-native-config-reader/ios/RNConfigReader.xcodeproj"; sourceTree = "<group>"; };
360360
/* End PBXFileReference section */
361361

362362
/* Begin PBXFrameworksBuildPhase section */
@@ -385,7 +385,7 @@
385385
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
386386
00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
387387
139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
388-
43F34379FB754522A63B49BE /* libRNConfigReader.a in Frameworks */,
388+
B043CBDB46E644ECB6E04D00 /* libRNConfigReader.a in Frameworks */,
389389
);
390390
runOnlyForDeploymentPostprocessing = 0;
391391
};
@@ -554,15 +554,15 @@
554554
70E9445522565346001E94C9 /* Recovered References */ = {
555555
isa = PBXGroup;
556556
children = (
557-
78EFB122B4F34CB4AADF0EFD /* libRNConfigReader.a */,
557+
7C7F95F9A6D44EFA89E1C25F /* libRNConfigReader.a */,
558558
);
559559
name = "Recovered References";
560560
sourceTree = "<group>";
561561
};
562-
70E944C522565725001E94C9 /* Products */ = {
562+
70EBE38B225C9FCF0005DE55 /* Products */ = {
563563
isa = PBXGroup;
564564
children = (
565-
70E944C922565726001E94C9 /* libRNConfigReader.a */,
565+
70EBE38F225C9FCF0005DE55 /* libRNConfigReader.a */,
566566
);
567567
name = Products;
568568
sourceTree = "<group>";
@@ -591,7 +591,7 @@
591591
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */,
592592
00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */,
593593
139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */,
594-
EE3FDBC11A734D21831910B0 /* RNConfigReader.xcodeproj */,
594+
0D6F0F730C4E4874BBE23042 /* RNConfigReader.xcodeproj */,
595595
);
596596
name = Libraries;
597597
sourceTree = "<group>";
@@ -800,8 +800,8 @@
800800
ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
801801
},
802802
{
803-
ProductGroup = 70E944C522565725001E94C9 /* Products */;
804-
ProjectRef = EE3FDBC11A734D21831910B0 /* RNConfigReader.xcodeproj */;
803+
ProductGroup = 70EBE38B225C9FCF0005DE55 /* Products */;
804+
ProjectRef = 0D6F0F730C4E4874BBE23042 /* RNConfigReader.xcodeproj */;
805805
},
806806
);
807807
projectRoot = "";
@@ -1053,11 +1053,11 @@
10531053
remoteRef = 70E9448122565354001E94C9 /* PBXContainerItemProxy */;
10541054
sourceTree = BUILT_PRODUCTS_DIR;
10551055
};
1056-
70E944C922565726001E94C9 /* libRNConfigReader.a */ = {
1056+
70EBE38F225C9FCF0005DE55 /* libRNConfigReader.a */ = {
10571057
isa = PBXReferenceProxy;
10581058
fileType = archive.ar;
10591059
path = libRNConfigReader.a;
1060-
remoteRef = 70E944C822565726001E94C9 /* PBXContainerItemProxy */;
1060+
remoteRef = 70EBE38E225C9FCF0005DE55 /* PBXContainerItemProxy */;
10611061
sourceTree = BUILT_PRODUCTS_DIR;
10621062
};
10631063
78C398B91ACF4ADC00677621 /* libRCTLinking.a */ = {
@@ -1222,6 +1222,7 @@
12221222
HEADER_SEARCH_PATHS = (
12231223
"$(inherited)",
12241224
"$(SRCROOT)/../node_modules/react-native-config-reader/ios",
1225+
"$(SRCROOT)/../node_modules/react-native-config-reader/ios/**",
12251226
);
12261227
INFOPLIST_FILE = testConfigTests/Info.plist;
12271228
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
@@ -1248,6 +1249,7 @@
12481249
HEADER_SEARCH_PATHS = (
12491250
"$(inherited)",
12501251
"$(SRCROOT)/../node_modules/react-native-config-reader/ios",
1252+
"$(SRCROOT)/../node_modules/react-native-config-reader/ios/**",
12511253
);
12521254
INFOPLIST_FILE = testConfigTests/Info.plist;
12531255
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
@@ -1275,6 +1277,7 @@
12751277
HEADER_SEARCH_PATHS = (
12761278
"$(inherited)",
12771279
"$(SRCROOT)/../node_modules/react-native-config-reader/ios",
1280+
"$(SRCROOT)/../node_modules/react-native-config-reader/ios/**",
12781281
);
12791282
INFOPLIST_FILE = testConfig/Info.plist;
12801283
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -1297,6 +1300,7 @@
12971300
HEADER_SEARCH_PATHS = (
12981301
"$(inherited)",
12991302
"$(SRCROOT)/../node_modules/react-native-config-reader/ios",
1303+
"$(SRCROOT)/../node_modules/react-native-config-reader/ios/**",
13001304
);
13011305
INFOPLIST_FILE = testConfig/Info.plist;
13021306
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -1326,6 +1330,7 @@
13261330
HEADER_SEARCH_PATHS = (
13271331
"$(inherited)",
13281332
"$(SRCROOT)/../node_modules/react-native-config-reader/ios",
1333+
"$(SRCROOT)/../node_modules/react-native-config-reader/ios/**",
13291334
);
13301335
INFOPLIST_FILE = "testConfig-tvOS/Info.plist";
13311336
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -1360,6 +1365,7 @@
13601365
HEADER_SEARCH_PATHS = (
13611366
"$(inherited)",
13621367
"$(SRCROOT)/../node_modules/react-native-config-reader/ios",
1368+
"$(SRCROOT)/../node_modules/react-native-config-reader/ios/**",
13631369
);
13641370
INFOPLIST_FILE = "testConfig-tvOS/Info.plist";
13651371
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
@@ -1393,6 +1399,7 @@
13931399
HEADER_SEARCH_PATHS = (
13941400
"$(inherited)",
13951401
"$(SRCROOT)/../node_modules/react-native-config-reader/ios",
1402+
"$(SRCROOT)/../node_modules/react-native-config-reader/ios/**",
13961403
);
13971404
INFOPLIST_FILE = "testConfig-tvOSTests/Info.plist";
13981405
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
@@ -1426,6 +1433,7 @@
14261433
HEADER_SEARCH_PATHS = (
14271434
"$(inherited)",
14281435
"$(SRCROOT)/../node_modules/react-native-config-reader/ios",
1436+
"$(SRCROOT)/../node_modules/react-native-config-reader/ios/**",
14291437
);
14301438
INFOPLIST_FILE = "testConfig-tvOSTests/Info.plist";
14311439
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"dependencies": {
1010
"react": "16.8.3",
1111
"react-native": "0.59.3",
12-
"react-native-config-reader": "^1.0.2"
12+
"react-native-config-reader": "^2.0.0"
1313
},
1414
"devDependencies": {
1515
"@babel/core": "^7.4.3",

example/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4903,10 +4903,10 @@ react-is@^16.8.1, react-is@^16.8.3, react-is@^16.8.4:
49034903
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.8.6.tgz#5bbc1e2d29141c9fbdfed456343fe2bc430a6a16"
49044904
integrity sha512-aUk3bHfZ2bRSVFFbbeVS4i+lNPZr3/WM5jT2J5omUVV1zzcs1nAaf3l51ctA5FFvCRbhrH0bdAsRRQddFJZPtA==
49054905

4906-
react-native-config-reader@^1.0.2:
4907-
version "1.0.2"
4908-
resolved "https://registry.yarnpkg.com/react-native-config-reader/-/react-native-config-reader-1.0.2.tgz#aa68c1445e8722b08e6671a1636f26e8678e449d"
4909-
integrity sha512-XRz94j3g5TA3MIpU4+FH7V0gVARRIyf/WTOYkUsx1Vb8QjE06QN5/kWBqs4eYM4cb8KtY71hW9mvwN+6k0Fr8A==
4906+
react-native-config-reader@^2.0.0:
4907+
version "2.0.0"
4908+
resolved "https://registry.yarnpkg.com/react-native-config-reader/-/react-native-config-reader-2.0.0.tgz#bbb7d00cf048d43f74629e1e21e5ba4f65fbcf31"
4909+
integrity sha512-U2ZFjJDnHHLzEJRIgezAmKtJEXuKkZF/2Zaf67977W/ZNrTPyDlcVaKCSA9IjGtyq0JSIUelBooSiK+Q7HCr/w==
49104910

49114911
49124912
version "0.59.3"

0 commit comments

Comments
 (0)