feat: [filesystem] 增加文件系统,文件前缀的自定义能力 - #320
Merged
Merged
Conversation
…ileSystemManager methods enumerable VIRTUAL_FILE_PREFIX reads from globalThis.__VIRTUAL_FILE_PREFIX__ (default 'difile://'), allowing native platforms to inject a custom scheme at runtime. getFileSystemManager() now binds prototype methods as own properties so Object.keys(fsm) returns them for Taro compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…atforms Android (QuickJS), iOS (JSC), and HarmonyOS (QuickJS) now set globalThis.__VIRTUAL_FILE_PREFIX__ = 'difile://' during engine initialization, before JSSDK code loads. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Member
问题[P1] 自定义文件前缀没有贯通容器和文件系统实现文件: 当前代码只使用
因此,默认情况下该变量只能得到 建议将文件前缀纳入四端公开容器配置,并在加载 [P2] 提交的 JSSDK 是 development 构建产物文件: 解压比较:
PR 产物还保留了未压缩代码和 development 调试分支。在该 head 上重新执行 production 构建后, 由于 验证情况
|
…er platform Each platform now defines the difile:// prefix in exactly one place and all consumers reference that constant instead of hardcoding the string. - Android: PathUtils.VIRTUAL_SCHEME / VIRTUAL_DOMAIN_URL, passed to C++ via JNI - iOS: DMPFileUtil.DMPFileURLScheme, referenced by FileAPI - HarmonyOS: DMPFileUrlConvertor.DMPFileURLScheme (exported), passed to C++ via NAPI - FE: webFileSystem.ts VIRTUAL_FILE_PREFIX / VIRTUAL_USER_PREFIX (exported) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- HarmonyOS: adapt virtualFilePrefix as 5th NAPI arg (after new debuggerAddress) - DMPFileUrlConvertor: keep export + accept upstream canvas temp file methods - Take upstream pbxproj, config.json, main.zip Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The example/pindou directory contains minified third-party code that cannot pass lint rules. Exclude the entire example directory. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.