Skip to content

Commit

Permalink
feat: support RN < 0.60
Browse files Browse the repository at this point in the history
Added target for RN < 0.60
  • Loading branch information
doomsower authored Sep 12, 2019
2 parents 5683066 + 79f6618 commit 7846f48
Show file tree
Hide file tree
Showing 3 changed files with 224 additions and 0 deletions.
223 changes: 223 additions & 0 deletions ios/RNStartupTime.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,99 @@
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
C7FD2121232A644300BBE856 /* RNStartupTime.m in Sources */ = {isa = PBXBuildFile; fileRef = C7FD2120232A644300BBE856 /* RNStartupTime.m */; };
C7FD2122232A644300BBE856 /* RNStartupTime.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = C7FD211F232A644300BBE856 /* RNStartupTime.h */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
C7FD211A232A644300BBE856 /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "include/$(PRODUCT_NAME)";
dstSubfolderSpec = 16;
files = (
C7FD2122232A644300BBE856 /* RNStartupTime.h in CopyFiles */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
C7FD211C232A644300BBE856 /* libRNStartupTime.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNStartupTime.a; sourceTree = BUILT_PRODUCTS_DIR; };
C7FD211F232A644300BBE856 /* RNStartupTime.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNStartupTime.h; sourceTree = "<group>"; };
C7FD2120232A644300BBE856 /* RNStartupTime.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNStartupTime.m; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
C7FD2119232A644300BBE856 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
75ABFFBC232673FB00875F97 = {
isa = PBXGroup;
children = (
C7FD211E232A644300BBE856 /* RNStartupTime */,
C7FD211D232A644300BBE856 /* Products */,
);
sourceTree = "<group>";
};
C7FD211D232A644300BBE856 /* Products */ = {
isa = PBXGroup;
children = (
C7FD211C232A644300BBE856 /* libRNStartupTime.a */,
);
name = Products;
sourceTree = "<group>";
};
C7FD211E232A644300BBE856 /* RNStartupTime */ = {
isa = PBXGroup;
children = (
C7FD211F232A644300BBE856 /* RNStartupTime.h */,
C7FD2120232A644300BBE856 /* RNStartupTime.m */,
);
path = RNStartupTime;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
C7FD211B232A644300BBE856 /* RNStartupTime */ = {
isa = PBXNativeTarget;
buildConfigurationList = C7FD2123232A644300BBE856 /* Build configuration list for PBXNativeTarget "RNStartupTime" */;
buildPhases = (
C7FD2118232A644300BBE856 /* Sources */,
C7FD2119232A644300BBE856 /* Frameworks */,
C7FD211A232A644300BBE856 /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = RNStartupTime;
productName = RNStartupTime;
productReference = C7FD211C232A644300BBE856 /* libRNStartupTime.a */;
productType = "com.apple.product-type.library.static";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
75ABFFBD232673FB00875F97 /* Project object */ = {
isa = PBXProject;
attributes = {
DefaultBuildSystemTypeForWorkspace = Original;
LastUpgradeCheck = 1010;
TargetAttributes = {
C7FD211B232A644300BBE856 = {
CreatedOnToolsVersion = 10.1;
};
};
};
buildConfigurationList = 75ABFFC0232673FB00875F97 /* Build configuration list for PBXProject "RNStartupTime" */;
compatibilityVersion = "Xcode 9.3";
Expand All @@ -29,13 +108,26 @@
en,
);
mainGroup = 75ABFFBC232673FB00875F97;
productRefGroup = C7FD211D232A644300BBE856 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
C7FD211B232A644300BBE856 /* RNStartupTime */,
);
};
/* End PBXProject section */

/* Begin PBXSourcesBuildPhase section */
C7FD2118232A644300BBE856 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
C7FD2121232A644300BBE856 /* RNStartupTime.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
75ABFFC1232673FB00875F97 /* Debug */ = {
isa = XCBuildConfiguration;
Expand All @@ -49,6 +141,128 @@
};
name = Release;
};
C7FD2124232A644300BBE856 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
C7FD2125232A644300BBE856 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
CODE_SIGN_STYLE = Automatic;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 12.1;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand All @@ -61,6 +275,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
C7FD2123232A644300BBE856 /* Build configuration list for PBXNativeTarget "RNStartupTime" */ = {
isa = XCConfigurationList;
buildConfigurations = (
C7FD2124232A644300BBE856 /* Debug */,
C7FD2125232A644300BBE856 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 75ABFFBD232673FB00875F97 /* Project object */;
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions ios/RNStartupTime.m → ios/RNStartupTime/RNStartupTime.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#import "RNStartupTime.h"
#import <sys/sysctl.h>
#include <math.h>
#import <QuartzCore/QuartzCore.h>

@implementation RNStartupTime

Expand Down

0 comments on commit 7846f48

Please sign in to comment.