Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
103 changes: 97 additions & 6 deletions ios/RNBuildConfig.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

/* Begin PBXBuildFile section */
B3E7B58A1CC2AC0600A0062D /* RNBuildConfig.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNBuildConfig.m */; };
CCC8A27E27EA874B0009BA6F /* RNBuildConfig.m in Sources */ = {isa = PBXBuildFile; fileRef = B3E7B5891CC2AC0600A0062D /* RNBuildConfig.m */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
Expand All @@ -20,12 +21,22 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
CCC8A28027EA874B0009BA6F /* CopyFiles */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "include/$(PRODUCT_NAME)";
dstSubfolderSpec = 16;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
134814201AA4EA6300B7C361 /* libRNBuildConfig.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNBuildConfig.a; sourceTree = BUILT_PRODUCTS_DIR; };
B3E7B5881CC2AC0600A0062D /* RNBuildConfig.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RNBuildConfig.h; sourceTree = "<group>"; };
B3E7B5891CC2AC0600A0062D /* RNBuildConfig.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = RNBuildConfig.m; sourceTree = "<group>"; };
CCC8A28427EA874B0009BA6F /* libRNBuildConfig-macOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libRNBuildConfig-macOS.a"; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -36,6 +47,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
CCC8A27F27EA874B0009BA6F /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
Expand All @@ -53,15 +71,16 @@
B3E7B5881CC2AC0600A0062D /* RNBuildConfig.h */,
B3E7B5891CC2AC0600A0062D /* RNBuildConfig.m */,
134814211AA4EA7D00B7C361 /* Products */,
CCC8A28427EA874B0009BA6F /* libRNBuildConfig-macOS.a */,
);
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
58B511DA1A9E6C8500147676 /* RNBuildConfig */ = {
58B511DA1A9E6C8500147676 /* RNBuildConfig-iOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNBuildConfig" */;
buildConfigurationList = 58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNBuildConfig-iOS" */;
buildPhases = (
58B511D71A9E6C8500147676 /* Sources */,
58B511D81A9E6C8500147676 /* Frameworks */,
Expand All @@ -71,11 +90,28 @@
);
dependencies = (
);
name = RNBuildConfig;
name = "RNBuildConfig-iOS";
productName = RCTDataManager;
productReference = 134814201AA4EA6300B7C361 /* libRNBuildConfig.a */;
productType = "com.apple.product-type.library.static";
};
CCC8A27C27EA874B0009BA6F /* RNBuildConfig-macOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = CCC8A28127EA874B0009BA6F /* Build configuration list for PBXNativeTarget "RNBuildConfig-macOS" */;
buildPhases = (
CCC8A27D27EA874B0009BA6F /* Sources */,
CCC8A27F27EA874B0009BA6F /* Frameworks */,
CCC8A28027EA874B0009BA6F /* CopyFiles */,
);
buildRules = (
);
dependencies = (
);
name = "RNBuildConfig-macOS";
productName = RCTDataManager;
productReference = CCC8A28427EA874B0009BA6F /* libRNBuildConfig-macOS.a */;
productType = "com.apple.product-type.library.static";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
Expand All @@ -95,14 +131,16 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
);
mainGroup = 58B511D21A9E6C8500147676;
productRefGroup = 58B511D21A9E6C8500147676;
projectDirPath = "";
projectRoot = "";
targets = (
58B511DA1A9E6C8500147676 /* RNBuildConfig */,
58B511DA1A9E6C8500147676 /* RNBuildConfig-iOS */,
CCC8A27C27EA874B0009BA6F /* RNBuildConfig-macOS */,
);
};
/* End PBXProject section */
Expand All @@ -116,6 +154,14 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
CCC8A27D27EA874B0009BA6F /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
CCC8A27E27EA874B0009BA6F /* RNBuildConfig.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin XCBuildConfiguration section */
Expand Down Expand Up @@ -157,6 +203,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MACOSX_DEPLOYMENT_TARGET = 10.9;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
Expand Down Expand Up @@ -194,6 +241,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
MACOSX_DEPLOYMENT_TARGET = 10.9;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
VALIDATE_PRODUCT = YES;
Expand All @@ -204,7 +252,7 @@
isa = XCBuildConfiguration;
buildSettings = {
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../../../React/**",
"$(SRCROOT)/../../react-native/React/**",
Expand Down Expand Up @@ -232,6 +280,40 @@
};
name = Release;
};
CCC8A28227EA874B0009BA6F /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../../../React/**",
"$(SRCROOT)/../../react-native/React/**",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SKIP_INSTALL = YES;
};
name = Debug;
};
CCC8A28327EA874B0009BA6F /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
HEADER_SEARCH_PATHS = (
"$(inherited)",
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include,
"$(SRCROOT)/../../../React/**",
"$(SRCROOT)/../../react-native/React/**",
);
LIBRARY_SEARCH_PATHS = "$(inherited)";
OTHER_LDFLAGS = "-ObjC";
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx;
SKIP_INSTALL = YES;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand All @@ -244,7 +326,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNBuildConfig" */ = {
58B511EF1A9E6C8500147676 /* Build configuration list for PBXNativeTarget "RNBuildConfig-iOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
58B511F01A9E6C8500147676 /* Debug */,
Expand All @@ -253,6 +335,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
CCC8A28127EA874B0009BA6F /* Build configuration list for PBXNativeTarget "RNBuildConfig-macOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
CCC8A28227EA874B0009BA6F /* Debug */,
CCC8A28327EA874B0009BA6F /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 58B511D31A9E6C8500147676 /* Project object */;
Expand Down
45 changes: 23 additions & 22 deletions react-native-build-config.podspec
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
require 'json'


Pod::Spec.new do |s|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

s.name = package['name']
s.version = package['version']
s.summary = package['description']
s.homepage = package['homepage']
s.license = package['license']
s.author = package['author']
s.source = { :git => s.homepage, :tag => 'v#{s.version}' }

s.requires_arc = true
s.ios.deployment_target = '8.0'

s.preserve_paths = 'README.md', 'package.json', 'lib/index.js'
s.source_files = 'ios/*.{h,m}'

s.dependency 'React'
end
require 'json'


Pod::Spec.new do |s|
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

s.name = package['name']
s.version = package['version']
s.summary = package['description']
s.homepage = package['homepage']
s.license = package['license']
s.author = package['author']
s.source = { :git => s.homepage, :tag => 'v#{s.version}' }

s.requires_arc = true
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'

s.preserve_paths = 'README.md', 'package.json', 'lib/index.js'
s.source_files = 'ios/*.{h,m}'

s.dependency 'React'
end