Skip to content

fix(android): load require() TFLite assets from res/raw and HTTP (v3)#192

Open
ivan-thilian wants to merge 1 commit into
mrousavy:mainfrom
ivan-thilian:fix/android-v3-asset-loader
Open

fix(android): load require() TFLite assets from res/raw and HTTP (v3)#192
ivan-thilian wants to merge 1 commit into
mrousavy:mainfrom
ivan-thilian:fix/android-v3-asset-loader

Conversation

@ivan-thilian

Copy link
Copy Markdown

Fixes #191

Restores Android asset loading from v1/v2 (PR #30):

  • Paths without ://res/raw (release require())
  • http(s):// → Metro dev server (debug)
  • file:// → local files

Tested on React Native 0.86 with bundled .tflite models (release + debug).

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.

[Android v3] HybridAssetLoader cannot load require() assets in release (regression from v1/v2)

1 participant