Skip to content

Commit

Permalink
Merge pull request #43 from XiteTV/support-tvos
Browse files Browse the repository at this point in the history
Support tvos
  • Loading branch information
wumke authored Mar 5, 2020
2 parents a36a260 + ae32475 commit c57cad5
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 0 deletions.
103 changes: 103 additions & 0 deletions ios/RNExitApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,20 @@
objects = {

/* Begin PBXBuildFile section */
07927F51240E83A80037032C /* RNExitApp.m in Sources */ = {isa = PBXBuildFile; fileRef = AF75E3F71E2FBEDC005136CC /* RNExitApp.m */; };
AF75E3F81E2FBEDC005136CC /* RNExitApp.m in Sources */ = {isa = PBXBuildFile; fileRef = AF75E3F71E2FBEDC005136CC /* RNExitApp.m */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
07927F53240E83A80037032C /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "include/$(PRODUCT_NAME)";
dstSubfolderSpec = 16;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
15209BED1D250F63000D0F44 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -23,11 +33,19 @@
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
07927F57240E83A80037032C /* libRNExitApp-tvOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libRNExitApp-tvOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
15209BEF1D250F63000D0F44 /* libRNExitApp.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNExitApp.a; sourceTree = BUILT_PRODUCTS_DIR; };
AF75E3F71E2FBEDC005136CC /* RNExitApp.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = RNExitApp.m; path = RNExitApp/RNExitApp.m; sourceTree = SOURCE_ROOT; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
07927F52240E83A80037032C /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
15209BEC1D250F63000D0F44 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -58,13 +76,31 @@
isa = PBXGroup;
children = (
15209BEF1D250F63000D0F44 /* libRNExitApp.a */,
07927F57240E83A80037032C /* libRNExitApp-tvOS.a */,
);
name = Products;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
07927F4F240E83A80037032C /* RNExitApp-tvOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = 07927F54240E83A80037032C /* Build configuration list for PBXNativeTarget "RNExitApp-tvOS" */;
buildPhases = (
07927F50240E83A80037032C /* Sources */,
07927F52240E83A80037032C /* Frameworks */,
07927F53240E83A80037032C /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = "RNExitApp-tvOS";
productName = RNExitApp;
productReference = 07927F57240E83A80037032C /* libRNExitApp-tvOS.a */;
productType = "com.apple.product-type.library.static";
};
15209BEE1D250F63000D0F44 /* RNExitApp */ = {
isa = PBXNativeTarget;
buildConfigurationList = 15209BF51D250F63000D0F44 /* Build configuration list for PBXNativeTarget "RNExitApp" */;
Expand Down Expand Up @@ -101,6 +137,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
);
mainGroup = 327633391BFAAD7E004DA88E;
Expand All @@ -109,11 +146,20 @@
projectRoot = "";
targets = (
15209BEE1D250F63000D0F44 /* RNExitApp */,
07927F4F240E83A80037032C /* RNExitApp-tvOS */,
);
};
/* End PBXProject section */

/* Begin PBXSourcesBuildPhase section */
07927F50240E83A80037032C /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
07927F51240E83A80037032C /* RNExitApp.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
15209BEB1D250F63000D0F44 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
Expand All @@ -125,6 +171,52 @@
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
07927F55240E83A80037032C /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_TESTABILITY = YES;
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../react-native/React",
"$(SRCROOT)/../../react-native/React",
"$(SRCROOT)/../../../react-native/React/**",
"$(SRCROOT)/../../../node_modules/react-native/React/**",
"$(BUILT_PRODUCTS_DIR)",
);
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "appletvsimulator appletvos";
};
name = Debug;
};
07927F56240E83A80037032C /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ANALYZER_NONNULL = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../react-native/React",
"$(SRCROOT)/../../react-native/React",
"$(SRCROOT)/../../../react-native/React/**",
"$(SRCROOT)/../../../node_modules/react-native/React/**",
"$(BUILT_PRODUCTS_DIR)",
);
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SKIP_INSTALL = YES;
SUPPORTED_PLATFORMS = "appletvsimulator appletvos";
};
name = Release;
};
15209BF61D250F63000D0F44 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
Expand Down Expand Up @@ -214,6 +306,7 @@
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "appletvsimulator appletvos";
};
name = Debug;
};
Expand Down Expand Up @@ -255,13 +348,23 @@
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SUPPORTED_PLATFORMS = "appletvsimulator appletvos";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
07927F54240E83A80037032C /* Build configuration list for PBXNativeTarget "RNExitApp-tvOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
07927F55240E83A80037032C /* Debug */,
07927F56240E83A80037032C /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
15209BF51D250F63000D0F44 /* Build configuration list for PBXNativeTarget "RNExitApp" */ = {
isa = XCConfigurationList;
buildConfigurations = (
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
5 changes: 5 additions & 0 deletions ios/RNExitApp/RNExitApp.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#import <UIKit/UIKit.h>
#if __has_include("RCTBridgeModule.h")
#import "RCTBridgeModule.h"
#else
#import <React/RCTBridgeModule.h>
#endif



@interface RNExitApp : NSObject <RCTBridgeModule>
Expand Down

0 comments on commit c57cad5

Please sign in to comment.