Skip to content

Commit 7eac32e

Browse files
committed
Fix iOS example
1 parent 23b59f6 commit 7eac32e

7 files changed

Lines changed: 2117 additions & 67 deletions

File tree

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ example/ios/Pods
4949
example/vendor/
5050

5151
# Example Assets - copied by postinstall script
52-
example/ios/assets
53-
example/android/app/src/main/assets
52+
example/ios/react-native-d3-chart-*
53+
example/android/app/src/main/assets/react-native-d3-chart
5454

5555
# node.js
5656
#

example/ios/D3ChartExample.xcodeproj/project.pbxproj

Lines changed: 29 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,26 @@
1111
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1212
761780ED2CA45674006654EE /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 761780EC2CA45674006654EE /* AppDelegate.swift */; };
1313
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */; };
14+
A4D260C2742C1F89E393F756 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */; };
15+
HSXSUJVTDBA6CY3XVVUML /* react-native-d3-chart-d3-time-format.js in Resources */ = {isa = PBXBuildFile; fileRef = M6XQLR76ALI8A44NKTR8U8 /* react-native-d3-chart-d3-time-format.js */; };
16+
IU7BSZHH2BN06WLJKXUZKHH /* react-native-d3-chart-d3.v7.min.js in Resources */ = {isa = PBXBuildFile; fileRef = H4LXY5NKHBUQCGWZQGQ3P8 /* react-native-d3-chart-d3.v7.min.js */; };
17+
OAKK1RZJD5LTFA0HU7V5RG /* react-native-d3-chart-chart.html in Resources */ = {isa = PBXBuildFile; fileRef = 2Y6RWYC1U14WXRY2MT1BF /* react-native-d3-chart-chart.html */; };
1418
/* End PBXBuildFile section */
1519

16-
/* Begin PBXContainerItemProxy section */
17-
00E356F41AD99517003FC87E /* PBXContainerItemProxy */ = {
18-
isa = PBXContainerItemProxy;
19-
containerPortal = 83CBB9F71A601CBA00E9B192 /* Project object */;
20-
proxyType = 1;
21-
remoteGlobalIDString = 13B07F861A680F5B00A75B9A;
22-
remoteInfo = D3ChartExample;
23-
};
24-
/* End PBXContainerItemProxy section */
25-
2620
/* Begin PBXFileReference section */
27-
00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
2821
13B07F961A680F5B00A75B9A /* D3ChartExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = D3ChartExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
2922
13B07FB51A68108700A75B9A /* Images.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Images.xcassets; path = D3ChartExample/Images.xcassets; sourceTree = "<group>"; };
3023
13B07FB61A68108700A75B9A /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = Info.plist; path = D3ChartExample/Info.plist; sourceTree = "<group>"; };
3124
13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = PrivacyInfo.xcprivacy; path = D3ChartExample/PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
25+
2Y6RWYC1U14WXRY2MT1BF /* react-native-d3-chart-chart.html */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.html; name = "react-native-d3-chart-chart.html"; path = "react-native-d3-chart-chart.html"; sourceTree = "<group>"; };
3226
3B4392A12AC88292D35C810B /* Pods-D3ChartExample.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-D3ChartExample.debug.xcconfig"; path = "Target Support Files/Pods-D3ChartExample/Pods-D3ChartExample.debug.xcconfig"; sourceTree = "<group>"; };
3327
5709B34CF0A7D63546082F79 /* Pods-D3ChartExample.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-D3ChartExample.release.xcconfig"; path = "Target Support Files/Pods-D3ChartExample/Pods-D3ChartExample.release.xcconfig"; sourceTree = "<group>"; };
3428
5DCACB8F33CDC322A6C60F78 /* libPods-D3ChartExample.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-D3ChartExample.a"; sourceTree = BUILT_PRODUCTS_DIR; };
3529
761780EC2CA45674006654EE /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = D3ChartExample/AppDelegate.swift; sourceTree = "<group>"; };
3630
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = LaunchScreen.storyboard; path = D3ChartExample/LaunchScreen.storyboard; sourceTree = "<group>"; };
3731
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
32+
H4LXY5NKHBUQCGWZQGQ3P8 /* react-native-d3-chart-d3.v7.min.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = "react-native-d3-chart-d3.v7.min.js"; path = "react-native-d3-chart-d3.v7.min.js"; sourceTree = "<group>"; };
33+
M6XQLR76ALI8A44NKTR8U8 /* react-native-d3-chart-d3-time-format.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; name = "react-native-d3-chart-d3-time-format.js"; path = "react-native-d3-chart-d3-time-format.js"; sourceTree = "<group>"; };
3834
/* End PBXFileReference section */
3935

4036
/* Begin PBXFrameworksBuildPhase section */
@@ -49,14 +45,6 @@
4945
/* End PBXFrameworksBuildPhase section */
5046

5147
/* Begin PBXGroup section */
52-
00E356F01AD99517003FC87E /* Supporting Files */ = {
53-
isa = PBXGroup;
54-
children = (
55-
00E356F11AD99517003FC87E /* Info.plist */,
56-
);
57-
name = "Supporting Files";
58-
sourceTree = "<group>";
59-
};
6048
13B07FAE1A68108700A75B9A /* D3ChartExample */ = {
6149
isa = PBXGroup;
6250
children = (
@@ -65,6 +53,9 @@
6553
13B07FB61A68108700A75B9A /* Info.plist */,
6654
81AB9BB72411601600AC10FF /* LaunchScreen.storyboard */,
6755
13B07FB81A68108700A75B9A /* PrivacyInfo.xcprivacy */,
56+
2Y6RWYC1U14WXRY2MT1BF /* react-native-d3-chart-chart.html */,
57+
M6XQLR76ALI8A44NKTR8U8 /* react-native-d3-chart-d3-time-format.js */,
58+
H4LXY5NKHBUQCGWZQGQ3P8 /* react-native-d3-chart-d3.v7.min.js */,
6859
);
6960
name = D3ChartExample;
7061
sourceTree = "<group>";
@@ -172,19 +163,16 @@
172163
/* End PBXProject section */
173164

174165
/* Begin PBXResourcesBuildPhase section */
175-
00E356EC1AD99517003FC87E /* Resources */ = {
176-
isa = PBXResourcesBuildPhase;
177-
buildActionMask = 2147483647;
178-
files = (
179-
);
180-
runOnlyForDeploymentPostprocessing = 0;
181-
};
182166
13B07F8E1A680F5B00A75B9A /* Resources */ = {
183167
isa = PBXResourcesBuildPhase;
184168
buildActionMask = 2147483647;
185169
files = (
186170
81AB9BB82411601600AC10FF /* LaunchScreen.storyboard in Resources */,
187171
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
172+
OAKK1RZJD5LTFA0HU7V5RG /* react-native-d3-chart-chart.html in Resources */,
173+
HSXSUJVTDBA6CY3XVVUML /* react-native-d3-chart-d3-time-format.js in Resources */,
174+
IU7BSZHH2BN06WLJKXUZKHH /* react-native-d3-chart-d3.v7.min.js in Resources */,
175+
A4D260C2742C1F89E393F756 /* PrivacyInfo.xcprivacy in Resources */,
188176
);
189177
runOnlyForDeploymentPostprocessing = 0;
190178
};
@@ -276,14 +264,6 @@
276264
};
277265
/* End PBXSourcesBuildPhase section */
278266

279-
/* Begin PBXTargetDependency section */
280-
00E356F51AD99517003FC87E /* PBXTargetDependency */ = {
281-
isa = PBXTargetDependency;
282-
target = 13B07F861A680F5B00A75B9A /* D3ChartExample */;
283-
targetProxy = 00E356F41AD99517003FC87E /* PBXContainerItemProxy */;
284-
};
285-
/* End PBXTargetDependency section */
286-
287267
/* Begin XCBuildConfiguration section */
288268
13B07F941A680F5B00A75B9A /* Debug */ = {
289269
isa = XCBuildConfiguration;
@@ -305,7 +285,7 @@
305285
"-ObjC",
306286
"-lc++",
307287
);
308-
PRODUCT_BUNDLE_IDENTIFIER = "d3chart.example";
288+
PRODUCT_BUNDLE_IDENTIFIER = d3chart.example;
309289
PRODUCT_NAME = D3ChartExample;
310290
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
311291
SWIFT_VERSION = 5.0;
@@ -332,7 +312,7 @@
332312
"-ObjC",
333313
"-lc++",
334314
);
335-
PRODUCT_BUNDLE_IDENTIFIER = "d3chart.example";
315+
PRODUCT_BUNDLE_IDENTIFIER = d3chart.example;
336316
PRODUCT_NAME = D3ChartExample;
337317
SWIFT_VERSION = 5.0;
338318
VERSIONING_SYSTEM = "apple-generic";
@@ -408,7 +388,14 @@
408388
"-DFOLLY_CFG_NO_COROUTINES=1",
409389
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
410390
);
391+
OTHER_LDFLAGS = (
392+
"$(inherited)",
393+
" ",
394+
);
395+
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
411396
SDKROOT = iphoneos;
397+
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "$(inherited) DEBUG";
398+
USE_HERMES = true;
412399
};
413400
name = Debug;
414401
};
@@ -473,7 +460,13 @@
473460
"-DFOLLY_CFG_NO_COROUTINES=1",
474461
"-DFOLLY_HAVE_CLOCK_GETTIME=1",
475462
);
463+
OTHER_LDFLAGS = (
464+
"$(inherited)",
465+
" ",
466+
);
467+
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
476468
SDKROOT = iphoneos;
469+
USE_HERMES = true;
477470
VALIDATE_PRODUCT = YES;
478471
};
479472
name = Release;

example/ios/D3ChartExample.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)