Is it possible to add an option to build in .aab format? If instead of try "./gradlew assembleRelease --no-daemon --quiet" in apk() make.sh we use try "./gradlew bundleRelease --no-daemon --quiet", then the code would look like this:
bundle() {
if [ ! -f "app/my-release-key.jks" ]; then
error "Keystore file not found. Run './make.sh keygen' first"
fi
rm -f app/build/outputs/bundle/release/app-release.aab
info "Building Android App Bundle (AAB)..."
try "./gradlew bundleRelease --no-daemon --quiet"
if [ -f "app/build/outputs/bundle/release/app-release.aab" ]; then
log "AAB successfully built and signed"
try "cp app/build/outputs/bundle/release/app-release.aab '$appname.aab'"
echo -e "${BOLD}----------------"
echo -e "Final AAB copied to: ${GREEN}$appname.aab${NC}"
echo -e "Size: ${BLUE}$(du -h app/build/outputs/bundle/release/app-release.aab | cut -f1)${NC}"
echo -e "Package: ${BLUE}com.${appname}.webtoapk${NC}"
echo -e "App name: ${BLUE}$(grep -o 'app_name">[^<]*' app/src/main/res/values/strings.xml | cut -d'>' -f2)${NC}"
echo -e "URL: ${BLUE}$(grep 'String mainURL' app/src/main/java/com/$appname/webtoapk/*.java | cut -d'"' -f2)${NC}"
echo -e "${BOLD}----------------${NC}"
else
error "Build failed"
fi
}
Thank you!
Is it possible to add an option to build in
.aabformat? If instead oftry "./gradlew assembleRelease --no-daemon --quiet"inapk()make.shwe usetry "./gradlew bundleRelease --no-daemon --quiet", then the code would look like this:Thank you!