Skip to content
This repository was archived by the owner on Feb 27, 2022. It is now read-only.

Commit 9533a85

Browse files
author
Elad Gil
committed
some fixed for the test app on iOS
1 parent df7572d commit 9533a85

File tree

3 files changed

+27
-91
lines changed

3 files changed

+27
-91
lines changed

testApp/ios/testApp.xcodeproj/project.pbxproj

Lines changed: 21 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
00C302E81ABCBA2D00DB3ED1 /* libRCTImage.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302C01ABCB91800DB3ED1 /* libRCTImage.a */; };
1313
00C302E91ABCBA2D00DB3ED1 /* libRCTNetwork.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302DC1ABCB9D200DB3ED1 /* libRCTNetwork.a */; };
1414
00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 00C302E41ABCB9EE00DB3ED1 /* libRCTVibration.a */; };
15-
00E356F31AD99517003FC87E /* TestAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* TestAppTests.m */; };
1615
11D1A2F320CAFA9E000508D9 /* libRCTAnimation.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */; };
1716
133E29F31AD74F7200F7D852 /* libRCTLinking.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 78C398B91ACF4ADC00677621 /* libRCTLinking.a */; };
1817
139105C61AF99C1200B5F7CC /* libRCTSettings.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 139105C11AF99BAD00B5F7CC /* libRCTSettings.a */; };
@@ -33,11 +32,10 @@
3332
2D02E4C71E0B4AEC006451C7 /* libRCTText-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E941DF850E9000B6D8A /* libRCTText-tvOS.a */; };
3433
2D02E4C81E0B4AEC006451C7 /* libRCTWebSocket-tvOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3E991DF850E9000B6D8A /* libRCTWebSocket-tvOS.a */; };
3534
2D16E6881FA4F8E400B85C8A /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 2D16E6891FA4F8E400B85C8A /* libReact.a */; };
36-
2DCD954D1E0B4F2C00145EB5 /* TestAppTests.m in Sources */ = {isa = PBXBuildFile; fileRef = 00E356F21AD99517003FC87E /* TestAppTests.m */; };
3735
2DF0FFEE2056DD460020B375 /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 3DAD3EA31DF850E9000B6D8A /* libReact.a */; };
3836
562633DE2252129D001E55DF /* libReact.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 146834041AC3E56700842450 /* libReact.a */; };
3937
562633DF225212AA001E55DF /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED297162215061F000B7C4FE /* JavaScriptCore.framework */; };
40-
5626343622521520001E55DF /* libRNBackgroundDownloader.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 562634352252150A001E55DF /* libRNBackgroundDownloader.a */; };
38+
56FE924722D3314B00A2085A /* libRNBackgroundDownloader.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 56FE924622D3313200A2085A /* libRNBackgroundDownloader.a */; };
4139
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 832341B51AAA6A8300B99B32 /* libRCTText.a */; };
4240
ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */ = {isa = PBXBuildFile; fileRef = ADBDB9271DFEBF0700ED6528 /* libRCTBlob.a */; };
4341
ED2971652150620600B7C4FE /* JavaScriptCore.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = ED2971642150620600B7C4FE /* JavaScriptCore.framework */; };
@@ -282,20 +280,20 @@
282280
remoteGlobalIDString = ED296FEE214C9CF800B7C4FE;
283281
remoteInfo = "jsiexecutor-tvOS";
284282
};
285-
562634342252150A001E55DF /* PBXContainerItemProxy */ = {
286-
isa = PBXContainerItemProxy;
287-
containerPortal = 562634302252150A001E55DF /* RNBackgroundDownloader.xcodeproj */;
288-
proxyType = 2;
289-
remoteGlobalIDString = 134814201AA4EA6300B7C361;
290-
remoteInfo = RNBackgroundDownloader;
291-
};
292283
5626347722522D2C001E55DF /* PBXContainerItemProxy */ = {
293284
isa = PBXContainerItemProxy;
294285
containerPortal = 146833FF1AC3E56700842450 /* React.xcodeproj */;
295286
proxyType = 1;
296287
remoteGlobalIDString = 83CBBA2D1A601D0E00E9B192;
297288
remoteInfo = React;
298289
};
290+
56FE924522D3313200A2085A /* PBXContainerItemProxy */ = {
291+
isa = PBXContainerItemProxy;
292+
containerPortal = 56FE924122D3313200A2085A /* RNBackgroundDownloader.xcodeproj */;
293+
proxyType = 2;
294+
remoteGlobalIDString = 134814201AA4EA6300B7C361;
295+
remoteInfo = RNBackgroundDownloader;
296+
};
299297
5E9157321DD0AC6500FF2AA8 /* PBXContainerItemProxy */ = {
300298
isa = PBXContainerItemProxy;
301299
containerPortal = 5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */;
@@ -342,7 +340,6 @@
342340
00C302DF1ABCB9EE00DB3ED1 /* RCTVibration.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTVibration.xcodeproj; path = "../../node_modules/react-native/Libraries/Vibration/RCTVibration.xcodeproj"; sourceTree = "<group>"; };
343341
00E356EE1AD99517003FC87E /* testAppTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = testAppTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
344342
00E356F11AD99517003FC87E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
345-
00E356F21AD99517003FC87E /* TestAppTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TestAppTests.m; sourceTree = "<group>"; };
346343
139105B61AF99BAD00B5F7CC /* RCTSettings.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTSettings.xcodeproj; path = "../../node_modules/react-native/Libraries/Settings/RCTSettings.xcodeproj"; sourceTree = "<group>"; };
347344
139FDEE61B06529A00C62182 /* RCTWebSocket.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTWebSocket.xcodeproj; path = "../../node_modules/react-native/Libraries/WebSocket/RCTWebSocket.xcodeproj"; sourceTree = "<group>"; };
348345
13B07F961A680F5B00A75B9A /* testApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = testApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -356,7 +353,7 @@
356353
2D02E47B1E0B4A5D006451C7 /* testApp-tvOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "testApp-tvOS.app"; sourceTree = BUILT_PRODUCTS_DIR; };
357354
2D02E4901E0B4A5D006451C7 /* testApp-tvOSTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "testApp-tvOSTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
358355
2D16E6891FA4F8E400B85C8A /* libReact.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; path = libReact.a; sourceTree = BUILT_PRODUCTS_DIR; };
359-
562634302252150A001E55DF /* RNBackgroundDownloader.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNBackgroundDownloader.xcodeproj; path = ../../ios/RNBackgroundDownloader.xcodeproj; sourceTree = "<group>"; };
356+
56FE924122D3313200A2085A /* RNBackgroundDownloader.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RNBackgroundDownloader.xcodeproj; path = ../../ios/RNBackgroundDownloader.xcodeproj; sourceTree = "<group>"; };
360357
5E91572D1DD0AC6500FF2AA8 /* RCTAnimation.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTAnimation.xcodeproj; path = "../../node_modules/react-native/Libraries/NativeAnimation/RCTAnimation.xcodeproj"; sourceTree = "<group>"; };
361358
78C398B01ACF4ADC00677621 /* RCTLinking.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTLinking.xcodeproj; path = "../../node_modules/react-native/Libraries/LinkingIOS/RCTLinking.xcodeproj"; sourceTree = "<group>"; };
362359
832341B01AAA6A8300B99B32 /* RCTText.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = RCTText.xcodeproj; path = "../../node_modules/react-native/Libraries/Text/RCTText.xcodeproj"; sourceTree = "<group>"; };
@@ -378,6 +375,7 @@
378375
isa = PBXFrameworksBuildPhase;
379376
buildActionMask = 2147483647;
380377
files = (
378+
56FE924722D3314B00A2085A /* libRNBackgroundDownloader.a in Frameworks */,
381379
562633DF225212AA001E55DF /* JavaScriptCore.framework in Frameworks */,
382380
562633DE2252129D001E55DF /* libReact.a in Frameworks */,
383381
ADBDB9381DFEBF1600ED6528 /* libRCTBlob.a in Frameworks */,
@@ -391,7 +389,6 @@
391389
832341BD1AAA6AB300B99B32 /* libRCTText.a in Frameworks */,
392390
00C302EA1ABCBA2D00DB3ED1 /* libRCTVibration.a in Frameworks */,
393391
139FDEF61B0652A700C62182 /* libRCTWebSocket.a in Frameworks */,
394-
5626343622521520001E55DF /* libRNBackgroundDownloader.a in Frameworks */,
395392
);
396393
runOnlyForDeploymentPostprocessing = 0;
397394
};
@@ -467,7 +464,6 @@
467464
00E356EF1AD99517003FC87E /* testAppTests */ = {
468465
isa = PBXGroup;
469466
children = (
470-
00E356F21AD99517003FC87E /* TestAppTests.m */,
471467
00E356F01AD99517003FC87E /* Supporting Files */,
472468
);
473469
path = testAppTests;
@@ -541,18 +537,18 @@
541537
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
542538
isa = PBXGroup;
543539
children = (
544-
562634302252150A001E55DF /* RNBackgroundDownloader.xcodeproj */,
540+
56FE924122D3313200A2085A /* RNBackgroundDownloader.xcodeproj */,
545541
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
546542
ED2971642150620600B7C4FE /* JavaScriptCore.framework */,
547543
2D16E6891FA4F8E400B85C8A /* libReact.a */,
548544
);
549545
name = Frameworks;
550546
sourceTree = "<group>";
551547
};
552-
562634312252150A001E55DF /* Products */ = {
548+
56FE924222D3313200A2085A /* Products */ = {
553549
isa = PBXGroup;
554550
children = (
555-
562634352252150A001E55DF /* libRNBackgroundDownloader.a */,
551+
56FE924622D3313200A2085A /* libRNBackgroundDownloader.a */,
556552
);
557553
name = Products;
558554
sourceTree = "<group>";
@@ -802,8 +798,8 @@
802798
ProjectRef = 146833FF1AC3E56700842450 /* React.xcodeproj */;
803799
},
804800
{
805-
ProductGroup = 562634312252150A001E55DF /* Products */;
806-
ProjectRef = 562634302252150A001E55DF /* RNBackgroundDownloader.xcodeproj */;
801+
ProductGroup = 56FE924222D3313200A2085A /* Products */;
802+
ProjectRef = 56FE924122D3313200A2085A /* RNBackgroundDownloader.xcodeproj */;
807803
},
808804
);
809805
projectRoot = "";
@@ -1041,11 +1037,11 @@
10411037
remoteRef = 562633DA2252111A001E55DF /* PBXContainerItemProxy */;
10421038
sourceTree = BUILT_PRODUCTS_DIR;
10431039
};
1044-
562634352252150A001E55DF /* libRNBackgroundDownloader.a */ = {
1040+
56FE924622D3313200A2085A /* libRNBackgroundDownloader.a */ = {
10451041
isa = PBXReferenceProxy;
10461042
fileType = archive.ar;
10471043
path = libRNBackgroundDownloader.a;
1048-
remoteRef = 562634342252150A001E55DF /* PBXContainerItemProxy */;
1044+
remoteRef = 56FE924522D3313200A2085A /* PBXContainerItemProxy */;
10491045
sourceTree = BUILT_PRODUCTS_DIR;
10501046
};
10511047
5E9157331DD0AC6500FF2AA8 /* libRCTAnimation.a */ = {
@@ -1155,7 +1151,6 @@
11551151
isa = PBXSourcesBuildPhase;
11561152
buildActionMask = 2147483647;
11571153
files = (
1158-
00E356F31AD99517003FC87E /* TestAppTests.m in Sources */,
11591154
);
11601155
runOnlyForDeploymentPostprocessing = 0;
11611156
};
@@ -1181,7 +1176,6 @@
11811176
isa = PBXSourcesBuildPhase;
11821177
buildActionMask = 2147483647;
11831178
files = (
1184-
2DCD954D1E0B4F2C00145EB5 /* TestAppTests.m in Sources */,
11851179
);
11861180
runOnlyForDeploymentPostprocessing = 0;
11871181
};
@@ -1264,6 +1258,8 @@
12641258
CURRENT_PROJECT_VERSION = 1;
12651259
DEAD_CODE_STRIPPING = NO;
12661260
DEVELOPMENT_TEAM = 9G842F7GMT;
1261+
FRAMEWORK_SEARCH_PATHS = "";
1262+
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../../ios";
12671263
INFOPLIST_FILE = TestApp/Info.plist;
12681264
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
12691265
OTHER_LDFLAGS = (
@@ -1283,6 +1279,8 @@
12831279
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
12841280
CURRENT_PROJECT_VERSION = 1;
12851281
DEVELOPMENT_TEAM = 9G842F7GMT;
1282+
FRAMEWORK_SEARCH_PATHS = "";
1283+
HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../../ios";
12861284
INFOPLIST_FILE = TestApp/Info.plist;
12871285
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
12881286
OTHER_LDFLAGS = (

testApp/ios/testApp/AppDelegate.m

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#import <React/RCTBridge.h>
1111
#import <React/RCTBundleURLProvider.h>
1212
#import <React/RCTRootView.h>
13+
#import <RNBackgroundDownloader.h>
1314

1415
@implementation AppDelegate
1516

@@ -39,4 +40,9 @@ - (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
3940
#endif
4041
}
4142

43+
- (void)application:(UIApplication *)application handleEventsForBackgroundURLSession:(NSString *)identifier completionHandler:(void (^)(void))completionHandler
44+
{
45+
[RNBackgroundDownloader setCompletionHandlerWithIdentifier:identifier completionHandler:completionHandler];
46+
}
47+
4248
@end

testApp/ios/testAppTests/testAppTests.m

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)