Updating definitions to arbitrary android sdk version
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 30/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- android, java, typescript
- 领域
- mobile-dev, tooling
调研方向
从 tns-platform-declarations/android/android.d.ts 开始,将生成的 android23.d.ts 与原始的 android17.d.ts 进行比较,重点关注缺失的 native 命名空间以及 TypeScript 报告的重复标识符。针对列出的 SDK 版本重新运行生成过程,并确定生成的声明是否能够在没有这些错误的情况下编译。
由索引模型根据 Issue 内容生成。
描述
I'm trying to update my tns-platform-declarations to use the latest android sdk.
I've generated the definitions for the respective sdks and replaced the include in tns-platform-declarations/android/android.d.ts to use the generated file (currently android23.d.ts).
Problem is I now get - among others, including a lot of duplicate identifiers - a million error TS2503: Cannot find namespace 'native'., which tells me not everything has been extracted. Where do I go from here? The sdk declaration files have wildly differing sizes:
-rw-rw-r-- 1 yule yule 13777754 Apr 25 13:17 android17.d.ts # Original file
-rw-rw-r-- 1 yule yule 4686196 Apr 25 14:20 android20.d.ts
-rw-rw-r-- 1 yule yule 5191200 Apr 25 14:20 android21.d.ts
-rw-rw-r-- 1 yule yule 5214515 Apr 25 14:20 android22.d.ts
-rw-rw-r-- 1 yule yule 5006948 Apr 25 14:20 android23.d.ts
-rw-rw-r-- 1 yule yule 17178798 Apr 25 14:19 android24.d.ts
-rw-rw-r-- 1 yule yule 5730638 Apr 25 13:17 android25.d.ts
Which tells me I'm probably doing something wrong.
Do I have to include anything else?
- 主要语言
- Java
- 星标
- 96
- 派生
- 25
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NativeScript/android-dts-generator 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 45/100
NativeScript/android-dts-generator#84 · 4 条评论 ·
-
难度 4/5 3-5 天 新手友好度 48/100
-
难度 4/5 3-5 天 新手友好度 25/100
-
难度 4/5 3-5 天 新手友好度 30/100
查看 NativeScript/android-dts-generator 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
liquid-java/liquidjava#321 ·
维护者通常 2 天内回复
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
OpenConext/OpenConext-access#1015 ·
维护者通常 1 天内回复
-
68000: FDBcc branch target is 2 bytes too low (uses inst_start+2 instead of the displacement word)未关闭
难度 2/5 1-3 小时 新手友好度 82/100
NationalSecurityAgency/ghidra#9702 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
apache/rocketmq-dashboard#5358 ·
维护者通常 3 天内回复