docs(testing): EMULATOR_GUIDE prerequisites, API 35, Apple Silicon; build.sh Android-only sync
EMULATOR_GUIDE.md: - Add "Checking and Installing Prerequisites" (how to check Node, npm, Java, ANDROID_HOME, adb, emulator, AVDs; install steps; reference to scripts/check-environment.js) - Use API 35 and Pixel8_API35 throughout to match project compileSdk/targetSdk - Document arm64-v8a for Apple Silicon and x86_64 for Intel; add troubleshooting for "x86_64 not supported on aarch64 host" - Bump version to 1.1.0 and last-updated date test-apps/daily-notification-test/scripts/build.sh: - When building only Android (--android / --run-android), run cap:sync:android instead of cap:sync so iOS pod install is skipped and Android build/run succeeds without fixing the iOS Podfile
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user