-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Store 3rd party podspecs in the repo
- Loading branch information
Showing
7 changed files
with
705 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,6 @@ yarn-error.log* | |
*.class | ||
|
||
# generated files | ||
bin/ | ||
gen/ | ||
build/ | ||
build.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
|
||
# Exit if any command fails | ||
set -e | ||
|
||
# Change to the expected directory. | ||
cd "$( dirname $0 )" | ||
cd .. | ||
|
||
# Check for cocoapods | ||
command -v pod > /dev/null || ( echo Cocoapods is required to generate podspecs; exit 1 ) | ||
|
||
PODSPECS=$(cat <<EOP | ||
node_modules/react-native/React.podspec | ||
node_modules/react-native/ReactCommon/yoga/yoga.podspec | ||
node_modules/react-native/third-party-podspecs/Folly.podspec | ||
node_modules/react-native/third-party-podspecs/DoubleConversion.podspec | ||
node_modules/react-native/third-party-podspecs/glog.podspec | ||
EOP | ||
) | ||
|
||
DEST="react-native-gutenberg-bridge/third-party-podspecs" | ||
|
||
for podspec in $PODSPECS | ||
do | ||
pod=`basename $podspec .podspec` | ||
echo "Generating podspec for $pod" | ||
INSTALL_YOGA_WITHOUT_PATH_OPTION=1 pod ipc spec $podspec > "$DEST/$pod.podspec.json" | ||
done |
21 changes: 21 additions & 0 deletions
21
react-native-gutenberg-bridge/third-party-podspecs/DoubleConversion.podspec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "DoubleConversion", | ||
"version": "1.1.6", | ||
"license": { | ||
"type": "MIT" | ||
}, | ||
"homepage": "https://github.com/google/double-conversion", | ||
"summary": "Efficient binary-decimal and decimal-binary conversion routines for IEEE doubles", | ||
"authors": "Google", | ||
"prepare_command": "mv src double-conversion", | ||
"source": { | ||
"git": "https://github.com/google/double-conversion.git", | ||
"tag": "v1.1.6" | ||
}, | ||
"module_name": "DoubleConversion", | ||
"source_files": "double-conversion/*.{h,cc}", | ||
"platforms": { | ||
"ios": "9.0", | ||
"tvos": "9.2" | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
react-native-gutenberg-bridge/third-party-podspecs/Folly.podspec.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ | ||
"name": "Folly", | ||
"version": "2016.10.31.00", | ||
"license": { | ||
"type": "Apache License, Version 2.0" | ||
}, | ||
"homepage": "https://github.com/facebook/folly", | ||
"summary": "An open-source C++ library developed and used at Facebook.", | ||
"authors": "Facebook", | ||
"source": { | ||
"git": "https://github.com/facebook/folly.git", | ||
"tag": "v2016.10.31.00" | ||
}, | ||
"module_name": "folly", | ||
"dependencies": { | ||
"boost-for-react-native": [ | ||
|
||
], | ||
"DoubleConversion": [ | ||
|
||
], | ||
"glog": [ | ||
|
||
] | ||
}, | ||
"compiler_flags": "-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1", | ||
"source_files": [ | ||
"folly/Bits.cpp", | ||
"folly/Conv.cpp", | ||
"folly/Demangle.cpp", | ||
"folly/StringBase.cpp", | ||
"folly/Unicode.cpp", | ||
"folly/dynamic.cpp", | ||
"folly/json.cpp", | ||
"folly/portability/BitsFunctexcept.cpp", | ||
"folly/detail/MallocImpl.cpp" | ||
], | ||
"preserve_paths": [ | ||
"folly/*.h", | ||
"folly/detail/*.h", | ||
"folly/portability/*.h" | ||
], | ||
"libraries": "stdc++", | ||
"pod_target_xcconfig": { | ||
"USE_HEADERMAP": "NO", | ||
"CLANG_CXX_LANGUAGE_STANDARD": "c++14", | ||
"HEADER_SEARCH_PATHS": "\"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\"" | ||
}, | ||
"platforms": { | ||
"ios": "9.0", | ||
"tvos": "9.2" | ||
} | ||
} |
Oops, something went wrong.