diff --git a/ios/ReactNativeConfig.xcodeproj/project.pbxproj b/ios/ReactNativeConfig.xcodeproj/project.pbxproj new file mode 100644 index 0000000..e386988 --- /dev/null +++ b/ios/ReactNativeConfig.xcodeproj/project.pbxproj @@ -0,0 +1,256 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + EB2648E31C7BE17A00B8F155 /* ReactNativeConfig.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = EB2648E21C7BE17A00B8F155 /* ReactNativeConfig.h */; }; + EB2648E51C7BE17A00B8F155 /* ReactNativeConfig.m in Sources */ = {isa = PBXBuildFile; fileRef = EB2648E41C7BE17A00B8F155 /* ReactNativeConfig.m */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + EB2648DD1C7BE17A00B8F155 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = "include/$(PRODUCT_NAME)"; + dstSubfolderSpec = 16; + files = ( + EB2648E31C7BE17A00B8F155 /* ReactNativeConfig.h in CopyFiles */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + EB2648DF1C7BE17A00B8F155 /* libReactNativeConfig.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libReactNativeConfig.a; sourceTree = BUILT_PRODUCTS_DIR; }; + EB2648E21C7BE17A00B8F155 /* ReactNativeConfig.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ReactNativeConfig.h; sourceTree = ""; }; + EB2648E41C7BE17A00B8F155 /* ReactNativeConfig.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ReactNativeConfig.m; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + EB2648DC1C7BE17A00B8F155 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + EB2648D61C7BE17A00B8F155 = { + isa = PBXGroup; + children = ( + EB2648E11C7BE17A00B8F155 /* ReactNativeConfig */, + EB2648E01C7BE17A00B8F155 /* Products */, + ); + sourceTree = ""; + }; + EB2648E01C7BE17A00B8F155 /* Products */ = { + isa = PBXGroup; + children = ( + EB2648DF1C7BE17A00B8F155 /* libReactNativeConfig.a */, + ); + name = Products; + sourceTree = ""; + }; + EB2648E11C7BE17A00B8F155 /* ReactNativeConfig */ = { + isa = PBXGroup; + children = ( + EB2648E21C7BE17A00B8F155 /* ReactNativeConfig.h */, + EB2648E41C7BE17A00B8F155 /* ReactNativeConfig.m */, + ); + path = ReactNativeConfig; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + EB2648DE1C7BE17A00B8F155 /* ReactNativeConfig */ = { + isa = PBXNativeTarget; + buildConfigurationList = EB2648E81C7BE17A00B8F155 /* Build configuration list for PBXNativeTarget "ReactNativeConfig" */; + buildPhases = ( + EB2648DB1C7BE17A00B8F155 /* Sources */, + EB2648DC1C7BE17A00B8F155 /* Frameworks */, + EB2648DD1C7BE17A00B8F155 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = ReactNativeConfig; + productName = ReactNativeConfig; + productReference = EB2648DF1C7BE17A00B8F155 /* libReactNativeConfig.a */; + productType = "com.apple.product-type.library.static"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + EB2648D71C7BE17A00B8F155 /* Project object */ = { + isa = PBXProject; + attributes = { + LastUpgradeCheck = 0720; + ORGANIZATIONNAME = "Pedro Belo"; + TargetAttributes = { + EB2648DE1C7BE17A00B8F155 = { + CreatedOnToolsVersion = 7.2.1; + }; + }; + }; + buildConfigurationList = EB2648DA1C7BE17A00B8F155 /* Build configuration list for PBXProject "ReactNativeConfig" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = EB2648D61C7BE17A00B8F155; + productRefGroup = EB2648E01C7BE17A00B8F155 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + EB2648DE1C7BE17A00B8F155 /* ReactNativeConfig */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + EB2648DB1C7BE17A00B8F155 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + EB2648E51C7BE17A00B8F155 /* ReactNativeConfig.m in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + EB2648E61C7BE17A00B8F155 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + 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 = 9.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + }; + name = Debug; + }; + EB2648E71C7BE17A00B8F155 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu99; + 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 = 9.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + EB2648E91C7BE17A00B8F155 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + HEADER_SEARCH_PATHS = "$(SRCROOT)/../../react-native/React/**"; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Debug; + }; + EB2648EA1C7BE17A00B8F155 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + HEADER_SEARCH_PATHS = "$(SRCROOT)/../../react-native/React/**"; + OTHER_LDFLAGS = "-ObjC"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SKIP_INSTALL = YES; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + EB2648DA1C7BE17A00B8F155 /* Build configuration list for PBXProject "ReactNativeConfig" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EB2648E61C7BE17A00B8F155 /* Debug */, + EB2648E71C7BE17A00B8F155 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + EB2648E81C7BE17A00B8F155 /* Build configuration list for PBXNativeTarget "ReactNativeConfig" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + EB2648E91C7BE17A00B8F155 /* Debug */, + EB2648EA1C7BE17A00B8F155 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = EB2648D71C7BE17A00B8F155 /* Project object */; +} diff --git a/ios/ReactNativeConfig.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/ReactNativeConfig.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..f0f44b4 --- /dev/null +++ b/ios/ReactNativeConfig.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ios/ReactNativeConfig.xcodeproj/project.xcworkspace/xcuserdata/pedro.xcuserdatad/UserInterfaceState.xcuserstate b/ios/ReactNativeConfig.xcodeproj/project.xcworkspace/xcuserdata/pedro.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..bf60a4a Binary files /dev/null and b/ios/ReactNativeConfig.xcodeproj/project.xcworkspace/xcuserdata/pedro.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/ios/ReactNativeConfig.xcodeproj/xcuserdata/pedro.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist b/ios/ReactNativeConfig.xcodeproj/xcuserdata/pedro.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist new file mode 100644 index 0000000..46509b3 --- /dev/null +++ b/ios/ReactNativeConfig.xcodeproj/xcuserdata/pedro.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist @@ -0,0 +1,35 @@ + + + + + + + + + + + + + diff --git a/ios/ReactNativeConfig.xcodeproj/xcuserdata/pedro.xcuserdatad/xcschemes/ReactNativeConfig.xcscheme b/ios/ReactNativeConfig.xcodeproj/xcuserdata/pedro.xcuserdatad/xcschemes/ReactNativeConfig.xcscheme new file mode 100644 index 0000000..b15bd37 --- /dev/null +++ b/ios/ReactNativeConfig.xcodeproj/xcuserdata/pedro.xcuserdatad/xcschemes/ReactNativeConfig.xcscheme @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/ReactNativeConfig.xcodeproj/xcuserdata/pedro.xcuserdatad/xcschemes/xcschememanagement.plist b/ios/ReactNativeConfig.xcodeproj/xcuserdata/pedro.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..8884d61 --- /dev/null +++ b/ios/ReactNativeConfig.xcodeproj/xcuserdata/pedro.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,22 @@ + + + + + SchemeUserState + + ReactNativeConfig.xcscheme + + orderHint + 0 + + + SuppressBuildableAutocreation + + EB2648DE1C7BE17A00B8F155 + + primary + + + + + diff --git a/ios/ReactNativeConfig/ReactNativeConfig.h b/ios/ReactNativeConfig/ReactNativeConfig.h new file mode 100644 index 0000000..07ba24a --- /dev/null +++ b/ios/ReactNativeConfig/ReactNativeConfig.h @@ -0,0 +1,12 @@ +// +// ReactNativeConfig.h +// ReactNativeConfig +// +// Created by Pedro Belo on 2/22/16. +// Copyright © 2016 Pedro Belo. All rights reserved. +// + +#import "RCTBridgeModule.h" + +@interface ReactNativeConfig : NSObject +@end diff --git a/ios/ReactNativeConfig/ReactNativeConfig.m b/ios/ReactNativeConfig/ReactNativeConfig.m new file mode 100644 index 0000000..8130718 --- /dev/null +++ b/ios/ReactNativeConfig/ReactNativeConfig.m @@ -0,0 +1,20 @@ +// +// ReactNativeConfig.m +// ReactNativeConfig +// +// Created by Pedro Belo on 2/22/16. +// Copyright © 2016 Pedro Belo. All rights reserved. +// + +#import "ReactNativeConfig.h" + +@implementation ReactNativeConfig + +RCT_EXPORT_MODULE() + +- (NSDictionary *)constantsToExport { +// NSDictionary *info = [[NSBundle mainBundle] infoDictionary]; + return @{@"FOO": @"BAR"}; +} + +@end