Skip to content

Conversation

lluisemper
Copy link
Contributor

@lluisemper lluisemper commented Aug 19, 2025

Replace hardcoded Android patch application with JSON configuration to improve maintainability and enable multiple patches.

The current patch_android() function only applies a single hardcoded patch, making it difficult to add new patches needed for Android builds. Recent contributions show multiple patches are required for proper Android cross-compilation support.

This change:

  • Creates android-patches.json for patch configuration
  • Refactors patch_android() to read from JSON
  • Enables platform-specific patch filtering
  • Maintains 100% backward compatibility
  • Prepares infrastructure for additional patches

Implements TODO comment in android_configure.py line 5
Refs: #57748

@lluisemper lluisemper force-pushed the build-json-android-patches branch from f1a42e1 to a0528fc Compare August 19, 2025 20:45
Replace hardcoded Android patch application with JSON configuration
to improve maintainability and enable multiple patches.

The current patch_android() function only applies a single hardcoded
patch, making it difficult to add new patches needed for Android builds.
Recent contributions show multiple patches are required for proper
Android cross-compilation support.

This change:
- Creates android-patches.json for patch configuration
- Refactors patch_android() to read from JSON
- Enables platform-specific patch filtering
- Maintains 100% backward compatibility
- Prepares infrastructure for additional patches

Implements TODO comment in android_configure.py line 5
Refs: nodejs#57748
@lluisemper lluisemper force-pushed the build-json-android-patches branch from a0528fc to 118a8da Compare August 19, 2025 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant