Compare commits

...

3 Commits

Author SHA1 Message Date
Vladimir Makarov 65a5af2e31 API Generator codegen fixed 2022-09-05 23:46:34 +05:00
Vladimir Makarov 8e13458c7f Merge pull request #320 from TouchInstinct/feature/xmx_update
API Generator `-Xmx` parameter updated to 12Gb
2022-08-19 21:00:43 +05:00
Vladimir Makarov 3f7c655c8e API Generator -Xmx parameter updated to 12Gb 2022-08-19 20:51:28 +05:00
+5 -5
View File
@@ -76,12 +76,12 @@ get_api_spec_current_commit()
{
if [ -z "${API_SPEC_DIR}" ]; then
if [ ! -z "${1}" ]; then
echo `git rev-parse HEAD:${1}`
echo `git -C ${1} rev-parse --verify HEAD`
else
echo `git rev-parse HEAD`
echo `git rev-parse --verify HEAD`
fi
else
echo `git rev-parse HEAD:${API_SPEC_DIR}`
echo `git -C ${API_SPEC_DIR} rev-parse --verify HEAD`
fi
}
@@ -114,7 +114,7 @@ is_nothing_changed_since_last_check()
fi
fi
if [ is_api_spec_under_source_control == "true" ]; then
if [ `is_api_spec_under_source_control` == "true" ]; then
local -r CURRENT_COMMIT=`get_api_spec_current_commit`
local -r LAST_CHECKED_COMMIT=`cat ${COMMIT_FILE_PATH} 2> /dev/null || echo ""`
@@ -245,7 +245,7 @@ api_generator_codegen()
. build-scripts/xcode/aux_scripts/download_file.sh ${FILE_NAME} ${DOWNLOAD_URL}
java -Xmx6g -jar "Downloads/${FILE_NAME}" generate-client-code --output-language SWIFT --specification-path ${API_SPEC_DIR} --output-path ${OUTPUT_PATH} --single-file $(is_single_file)
java -Xmx12g -jar "Downloads/${FILE_NAME}" generate-client-code --output-language SWIFT --specification-path ${API_SPEC_DIR} --output-path ${OUTPUT_PATH} --single-file $(is_single_file)
}
readonly BUILD_PHASES_DIR=${SRCROOT}/build_phases