Skip to content

Commit

Permalink
Store 3rd party podspecs in the repo
Browse files Browse the repository at this point in the history
  • Loading branch information
koke committed Nov 21, 2018
1 parent 9041936 commit c328570
Show file tree
Hide file tree
Showing 7 changed files with 705 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ yarn-error.log*
*.class

# generated files
bin/
gen/
build/
build.log
Expand Down
29 changes: 29 additions & 0 deletions bin/generate-podspecs.sh
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
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"
}
}
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"
}
}
Loading

0 comments on commit c328570

Please sign in to comment.