NativeScript / NativeScript/android

cant disable multidex

未关闭
#1,681 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
C++
星标
563
派生
144
平均合并
10 小时 46 分钟
30 天内合并 PR
14

描述

because of that line https://github.com/NativeScript/android-runtime/blob/master/build-artifacts/project-template-gradle/app/src/main/java/com/tns/NativeScriptApplication.java#L32 a user cant decide to disable multidex if possible (would make app smaller).
The reason is that without multidex enabled that line would not compile. I tried a few things but it is a bit tricky to do preprocessor through gradle 7.0 (plugins not working anymore).
The idea would be to use a preprocessor to get rid of the line at compilation if multidex is disabled

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 build-artifacts/project-template-gradle/app/src/main/java/com/tns/NativeScriptApplication.java 的第 32 行开始,检查 Gradle 7.0 项目模板如何启用 multidex。确定在禁用 multidex 时如何排除该行,然后验证启用和禁用 multidex 的配置都能编译,并且禁用 multidex 的配置会生成更小的应用。

由索引模型根据 Issue 内容生成。

评估

技术栈
android, java
领域
build-system, mobile
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。