mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-17 21:48:19 +00:00
Remove unused GE_NO_APK_BUILD
variable
This variable is always empty and we don't need to support not building the APK file.
This commit is contained in:
parent
930836f349
commit
69102880c9
|
@ -54,33 +54,30 @@ if [[ "${_APK_BUILD_TYPE}" == "Debug" ]]; then
|
||||||
sed -i "s/android.enableR8.fullMode=true/android.enableR8.fullMode=false/g" gradle.properties
|
sed -i "s/android.enableR8.fullMode=true/android.enableR8.fullMode=false/g" gradle.properties
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z ${GE_NO_APK_BUILD} || "${GE_NO_APK_BUILD}" != "1" ]]; then
|
_RELEASE_TYPE_NAME=debug
|
||||||
|
_RELEASE_TYPE_APK_NAME=
|
||||||
|
if [[ "${_APK_BUILD_TYPE}" == "Debug" ]]; then
|
||||||
_RELEASE_TYPE_NAME=debug
|
_RELEASE_TYPE_NAME=debug
|
||||||
_RELEASE_TYPE_APK_NAME=
|
fi
|
||||||
if [[ "${_APK_BUILD_TYPE}" == "Debug" ]]; then
|
|
||||||
_RELEASE_TYPE_NAME=debug
|
if [[ "${_APK_BUILD_TYPE}" == "Release" ]]; then
|
||||||
fi
|
_RELEASE_TYPE_NAME=release
|
||||||
|
_RELEASE_TYPE_APK_NAME=
|
||||||
if [[ "${_APK_BUILD_TYPE}" == "Release" ]]; then
|
fi
|
||||||
_RELEASE_TYPE_NAME=release
|
|
||||||
_RELEASE_TYPE_APK_NAME=
|
APP_BASE_NAME=Gradle
|
||||||
fi
|
CLASSPATH=gradle-wrapper.jar
|
||||||
|
java "-Dorg.gradle.appname=${APP_BASE_NAME}" -classpath "${CLASSPATH}" org.gradle.wrapper.GradleWrapperMain --warning-mode all
|
||||||
APP_BASE_NAME=Gradle
|
if [[ "${_APK_BUILD_TYPE}" == "Debug" ]]; then
|
||||||
CLASSPATH=gradle-wrapper.jar
|
java "-Dorg.gradle.appname=${APP_BASE_NAME}" -classpath "${CLASSPATH}" org.gradle.wrapper.GradleWrapperMain --warning-mode all builddebug
|
||||||
java "-Dorg.gradle.appname=${APP_BASE_NAME}" -classpath "${CLASSPATH}" org.gradle.wrapper.GradleWrapperMain --warning-mode all
|
java "-Dorg.gradle.appname=${APP_BASE_NAME}" -classpath "${CLASSPATH}" org.gradle.wrapper.GradleWrapperMain --warning-mode all assembleDebug
|
||||||
if [[ "${_APK_BUILD_TYPE}" == "Debug" ]]; then
|
else
|
||||||
java "-Dorg.gradle.appname=${APP_BASE_NAME}" -classpath "${CLASSPATH}" org.gradle.wrapper.GradleWrapperMain --warning-mode all builddebug
|
java "-Dorg.gradle.appname=${APP_BASE_NAME}" -classpath "${CLASSPATH}" org.gradle.wrapper.GradleWrapperMain --warning-mode all buildrelease
|
||||||
java "-Dorg.gradle.appname=${APP_BASE_NAME}" -classpath "${CLASSPATH}" org.gradle.wrapper.GradleWrapperMain --warning-mode all assembleDebug
|
java "-Dorg.gradle.appname=${APP_BASE_NAME}" -classpath "${CLASSPATH}" org.gradle.wrapper.GradleWrapperMain --warning-mode all assembleRelease
|
||||||
else
|
fi
|
||||||
java "-Dorg.gradle.appname=${APP_BASE_NAME}" -classpath "${CLASSPATH}" org.gradle.wrapper.GradleWrapperMain --warning-mode all buildrelease
|
cp build/outputs/apk/"$_RELEASE_TYPE_NAME"/"$_APK_BASENAME"-"$_RELEASE_TYPE_NAME""$_RELEASE_TYPE_APK_NAME".apk "$_APK_BASENAME".apk
|
||||||
java "-Dorg.gradle.appname=${APP_BASE_NAME}" -classpath "${CLASSPATH}" org.gradle.wrapper.GradleWrapperMain --warning-mode all assembleRelease
|
|
||||||
fi
|
if [[ "${_APK_BUILD_TYPE}" == "Release" ]]; then
|
||||||
cp build/outputs/apk/"$_RELEASE_TYPE_NAME"/"$_APK_BASENAME"-"$_RELEASE_TYPE_NAME""$_RELEASE_TYPE_APK_NAME".apk "$_APK_BASENAME".apk
|
java "-Dorg.gradle.appname=${APP_BASE_NAME}" -classpath "${CLASSPATH}" org.gradle.wrapper.GradleWrapperMain --warning-mode all bundleRelease
|
||||||
|
cp build/outputs/bundle/"$_RELEASE_TYPE_NAME"/"$_APK_BASENAME"-"$_RELEASE_TYPE_NAME""$_RELEASE_TYPE_APK_NAME".aab "$_APK_BASENAME".aab
|
||||||
if [[ "${_APK_BUILD_TYPE}" == "Release" ]]; then
|
|
||||||
java "-Dorg.gradle.appname=${APP_BASE_NAME}" -classpath "${CLASSPATH}" org.gradle.wrapper.GradleWrapperMain --warning-mode all bundleRelease
|
|
||||||
|
|
||||||
cp build/outputs/bundle/"$_RELEASE_TYPE_NAME"/"$_APK_BASENAME"-"$_RELEASE_TYPE_NAME""$_RELEASE_TYPE_APK_NAME".aab "$_APK_BASENAME".aab
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue