Skip to content

Commit 20b3915

Browse files
authored
Merge pull request itinance#291 from JulienKode/master
[tvOS] Add target
2 parents 26657b4 + 03d18df commit 20b3915

File tree

2 files changed

+99
-1
lines changed

2 files changed

+99
-1
lines changed

RNFS.podspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ Pod::Spec.new do |s|
99
s.summary = pjson["description"]
1010
s.license = pjson["license"]
1111
s.author = { "Johannes Lumpe" => "[email protected]" }
12-
s.platform = :ios, "8.0"
12+
s.ios.deployment_target = '8.0'
13+
s.tvos.deployment_target = '9.0'
1314
s.source = { :git => "https://github.com/itinance/react-native-fs", :tag => "v#{s.version}" }
1415
s.source_files = '*.{h,m}'
1516
s.preserve_paths = "**/*.js"

RNFS.xcodeproj/project.pbxproj

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,26 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10+
645644281EB8DAA100672408 /* NSArray+Map.m in Sources */ = {isa = PBXBuildFile; fileRef = F1EB08BA1AFD0E6A008F8F2B /* NSArray+Map.m */; };
11+
645644291EB8DAA100672408 /* RNFSManager.m in Sources */ = {isa = PBXBuildFile; fileRef = F1E59BDE1ADD662800ACA28A /* RNFSManager.m */; };
12+
6456442A1EB8DAA100672408 /* Downloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BF740761C033A2E0057A1E7 /* Downloader.m */; };
13+
6456442B1EB8DAA100672408 /* Uploader.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BB364CB1CDA130000435A01 /* Uploader.m */; };
1014
8BB364CC1CDA130000435A01 /* Uploader.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BB364CB1CDA130000435A01 /* Uploader.m */; };
1115
8BF740771C033A2E0057A1E7 /* Downloader.m in Sources */ = {isa = PBXBuildFile; fileRef = 8BF740761C033A2E0057A1E7 /* Downloader.m */; };
1216
F1E59BDF1ADD662800ACA28A /* RNFSManager.m in Sources */ = {isa = PBXBuildFile; fileRef = F1E59BDE1ADD662800ACA28A /* RNFSManager.m */; };
1317
F1EB08BB1AFD0E6A008F8F2B /* NSArray+Map.m in Sources */ = {isa = PBXBuildFile; fileRef = F1EB08BA1AFD0E6A008F8F2B /* NSArray+Map.m */; };
1418
/* End PBXBuildFile section */
1519

1620
/* Begin PBXCopyFilesBuildPhase section */
21+
6456441D1EB8DA9100672408 /* CopyFiles */ = {
22+
isa = PBXCopyFilesBuildPhase;
23+
buildActionMask = 2147483647;
24+
dstPath = "include/$(PRODUCT_NAME)";
25+
dstSubfolderSpec = 16;
26+
files = (
27+
);
28+
runOnlyForDeploymentPostprocessing = 0;
29+
};
1730
F12AFB991ADAF8F800E0535D /* CopyFiles */ = {
1831
isa = PBXCopyFilesBuildPhase;
1932
buildActionMask = 2147483647;
@@ -26,6 +39,7 @@
2639
/* End PBXCopyFilesBuildPhase section */
2740

2841
/* Begin PBXFileReference section */
42+
6456441F1EB8DA9100672408 /* libRNFS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNFS.a; sourceTree = BUILT_PRODUCTS_DIR; };
2943
8BB364CA1CDA130000435A01 /* Uploader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Uploader.h; sourceTree = "<group>"; };
3044
8BB364CB1CDA130000435A01 /* Uploader.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Uploader.m; sourceTree = "<group>"; };
3145
8BF740751C033A2E0057A1E7 /* Downloader.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Downloader.h; sourceTree = "<group>"; };
@@ -38,6 +52,13 @@
3852
/* End PBXFileReference section */
3953

4054
/* Begin PBXFrameworksBuildPhase section */
55+
6456441C1EB8DA9100672408 /* Frameworks */ = {
56+
isa = PBXFrameworksBuildPhase;
57+
buildActionMask = 2147483647;
58+
files = (
59+
);
60+
runOnlyForDeploymentPostprocessing = 0;
61+
};
4162
F12AFB981ADAF8F800E0535D /* Frameworks */ = {
4263
isa = PBXFrameworksBuildPhase;
4364
buildActionMask = 2147483647;
@@ -67,13 +88,31 @@
6788
isa = PBXGroup;
6889
children = (
6990
F12AFB9B1ADAF8F800E0535D /* libRNFS.a */,
91+
6456441F1EB8DA9100672408 /* libRNFS.a */,
7092
);
7193
name = Products;
7294
sourceTree = "<group>";
7395
};
7496
/* End PBXGroup section */
7597

7698
/* Begin PBXNativeTarget section */
99+
6456441E1EB8DA9100672408 /* RNFS-tvOS */ = {
100+
isa = PBXNativeTarget;
101+
buildConfigurationList = 645644271EB8DA9100672408 /* Build configuration list for PBXNativeTarget "RNFS-tvOS" */;
102+
buildPhases = (
103+
6456441B1EB8DA9100672408 /* Sources */,
104+
6456441C1EB8DA9100672408 /* Frameworks */,
105+
6456441D1EB8DA9100672408 /* CopyFiles */,
106+
);
107+
buildRules = (
108+
);
109+
dependencies = (
110+
);
111+
name = "RNFS-tvOS";
112+
productName = "RNFS-tvOS";
113+
productReference = 6456441F1EB8DA9100672408 /* libRNFS.a */;
114+
productType = "com.apple.product-type.library.static";
115+
};
77116
F12AFB9A1ADAF8F800E0535D /* RNFS */ = {
78117
isa = PBXNativeTarget;
79118
buildConfigurationList = F12AFBAF1ADAF8F800E0535D /* Build configuration list for PBXNativeTarget "RNFS" */;
@@ -100,6 +139,10 @@
100139
LastUpgradeCheck = 0630;
101140
ORGANIZATIONNAME = "Johannes Lumpe";
102141
TargetAttributes = {
142+
6456441E1EB8DA9100672408 = {
143+
CreatedOnToolsVersion = 8.3.2;
144+
ProvisioningStyle = Automatic;
145+
};
103146
F12AFB9A1ADAF8F800E0535D = {
104147
CreatedOnToolsVersion = 6.3;
105148
};
@@ -118,11 +161,23 @@
118161
projectRoot = "";
119162
targets = (
120163
F12AFB9A1ADAF8F800E0535D /* RNFS */,
164+
6456441E1EB8DA9100672408 /* RNFS-tvOS */,
121165
);
122166
};
123167
/* End PBXProject section */
124168

125169
/* Begin PBXSourcesBuildPhase section */
170+
6456441B1EB8DA9100672408 /* Sources */ = {
171+
isa = PBXSourcesBuildPhase;
172+
buildActionMask = 2147483647;
173+
files = (
174+
645644281EB8DAA100672408 /* NSArray+Map.m in Sources */,
175+
645644291EB8DAA100672408 /* RNFSManager.m in Sources */,
176+
6456442A1EB8DAA100672408 /* Downloader.m in Sources */,
177+
6456442B1EB8DAA100672408 /* Uploader.m in Sources */,
178+
);
179+
runOnlyForDeploymentPostprocessing = 0;
180+
};
126181
F12AFB971ADAF8F800E0535D /* Sources */ = {
127182
isa = PBXSourcesBuildPhase;
128183
buildActionMask = 2147483647;
@@ -137,6 +192,40 @@
137192
/* End PBXSourcesBuildPhase section */
138193

139194
/* Begin XCBuildConfiguration section */
195+
645644251EB8DA9100672408 /* Debug */ = {
196+
isa = XCBuildConfiguration;
197+
buildSettings = {
198+
CLANG_ANALYZER_NONNULL = YES;
199+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
200+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
201+
CLANG_WARN_INFINITE_RECURSION = YES;
202+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
203+
DEBUG_INFORMATION_FORMAT = dwarf;
204+
ENABLE_TESTABILITY = YES;
205+
OTHER_LDFLAGS = "-ObjC";
206+
PRODUCT_NAME = RNFS;
207+
SDKROOT = appletvos;
208+
SKIP_INSTALL = YES;
209+
TVOS_DEPLOYMENT_TARGET = 10.2;
210+
};
211+
name = Debug;
212+
};
213+
645644261EB8DA9100672408 /* Release */ = {
214+
isa = XCBuildConfiguration;
215+
buildSettings = {
216+
CLANG_ANALYZER_NONNULL = YES;
217+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
218+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
219+
CLANG_WARN_INFINITE_RECURSION = YES;
220+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
221+
OTHER_LDFLAGS = "-ObjC";
222+
PRODUCT_NAME = RNFS;
223+
SDKROOT = appletvos;
224+
SKIP_INSTALL = YES;
225+
TVOS_DEPLOYMENT_TARGET = 10.2;
226+
};
227+
name = Release;
228+
};
140229
F12AFBAD1ADAF8F800E0535D /* Debug */ = {
141230
isa = XCBuildConfiguration;
142231
buildSettings = {
@@ -250,6 +339,14 @@
250339
/* End XCBuildConfiguration section */
251340

252341
/* Begin XCConfigurationList section */
342+
645644271EB8DA9100672408 /* Build configuration list for PBXNativeTarget "RNFS-tvOS" */ = {
343+
isa = XCConfigurationList;
344+
buildConfigurations = (
345+
645644251EB8DA9100672408 /* Debug */,
346+
645644261EB8DA9100672408 /* Release */,
347+
);
348+
defaultConfigurationIsVisible = 0;
349+
};
253350
F12AFB961ADAF8F800E0535D /* Build configuration list for PBXProject "RNFS" */ = {
254351
isa = XCConfigurationList;
255352
buildConfigurations = (

0 commit comments

Comments
 (0)