Skip to content

fix: resolve NDK path discovery on Windows#3

Open
AttalliAyoub wants to merge 1 commit into
NexusDynamic:mainfrom
AttalliAyoub:main
Open

fix: resolve NDK path discovery on Windows#3
AttalliAyoub wants to merge 1 commit into
NexusDynamic:mainfrom
AttalliAyoub:main

Conversation

@AttalliAyoub
Copy link
Copy Markdown

What does this PR do?

Fixes an issue on Windows where locate_ndk.dart crashes because Platform.environment['HOME'] is null, and addresses a secondary issue where the Glob package fails to match Windows paths containing backslashes.

How was this fixed?

  1. Used Platform.environment['USERPROFILE'] as the home directory fallback on Windows.
  2. Normalized the Windows directory path separators (replaced \ with /) before passing them to the Glob package so that glob pattern matching correctly finds the NDK installation directories.
  3. Bumped version to 0.1.2 and updated the CHANGELOG.

Testing

Tested locally on Windows. NDKLocator.locate() now successfully discovers the NDK installation without crashing or failing to match directories.

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