:
post_install do |installer_representation|
puts "Splitting up Gooogle Framework - It just too big to be presented in the Github :("
Dir.chdir("Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Versions/Current") do
`rm GoogleMaps_Split_*`
`split -b 30m GoogleMaps GoogleMaps_Split_`
end
end
- .gitignore
OurProject/Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Versions/A/GoogleMaps
BINARY_FILENAME=GoogleMaps
SPLIT_FILENAME_PREFIX=${BINARY_FILENAME}_Split
GMAPS_FRAMEWORK_DIR=Pods/GoogleMaps/Frameworks/GoogleMaps.framework/Versions/Current
GMAPS_FRAMEWORK_FILE=$GMAPS_FRAMEWORK_DIR/$BINARY_FILENAME
if [ ! -f ${GMAPS_FRAMEWORK_FILE} ]; then
echo "There no Google Maps framework at ${GMAPS_FRAMEWORK_FILE}"
cd ${GMAPS_FRAMEWORK_DIR}
if [ -f ${SPLIT_FILENAME_PREFIX}_aa ]; then
echo "Creating file from smaller files with ${SPLIT_FILENAME_PREFIX} prefix"
cat ${SPLIT_FILENAME_PREFIX}_* > ${BINARY_FILENAME}
fi
fi