Merge branch 'android-fixes-2026-02'

This commit is contained in:
Jose Olarte III
2026-02-05 19:29:16 +08:00
5 changed files with 124 additions and 21 deletions
@@ -220,11 +220,23 @@ if ! npm run build; then
fi
log_info "Web assets built successfully"
# Step 2: Sync Capacitor
# Step 2: Sync Capacitor (Android-only when building only Android to avoid iOS pod install failure)
log_step "Syncing Capacitor with native projects..."
if ! npm run cap:sync; then
log_error "Capacitor sync failed"
exit 1
if [ "$BUILD_ALL" = true ]; then
if ! npm run cap:sync; then
log_error "Capacitor sync failed"
exit 1
fi
elif [ "$BUILD_ANDROID" = true ]; then
if ! npm run cap:sync:android; then
log_error "Capacitor sync (Android) failed"
exit 1
fi
elif [ "$BUILD_IOS" = true ]; then
if ! npm run cap:sync:ios; then
log_error "Capacitor sync (iOS) failed"
exit 1
fi
fi
log_info "Capacitor sync completed"