Skip to content

16KB 内存页对齐、targetSdk 35 与编辑器状态栏 - #234

Open
xcl199f wants to merge 2 commits into
aiselp:setup-v7from
xcl199f:pr/build-16kb-align
Open

xcl199f wants to merge 2 commits into
aiselp:setup-v7from
xcl199f:pr/build-16kb-align

Conversation

@xcl199f

@xcl199f xcl199f commented Nov 14, 2026

Copy link
Copy Markdown
  • 替换 16KB 对齐的 lib_bin_aapt2.so,并升级带 native 库的依赖(tesseract4android 4.8.0、camera-core 1.5.3、ML Kit 条码扫描 17.3.0),其 .so 的加载段对齐由 4KB 提升到 16KB。
  • compileSdk / targetSdk 从 34 提升到 35,build tools 升至 35.0.0。
  • 新版 Web 编辑器与旧版编辑器补齐状态栏区域适配,内容不再被状态栏遮挡。
  • 应用信息读取适配 API 35 的可空返回值变化。

构建

  • buildV6Api / buildV7Api 任务支持增量构建。

- 替换 apkbuilder 内置 aapt2 为 16KB 对齐版本(ELF PT_LOAD p_align
  0x1000 -> 0x4000),供 16KB page size 设备上打包 APK 使用
- native 依赖换成 16KB 对齐版本:tesseract4android 4.1.1 -> 4.8.0
  (libtesseract/libleptonica/libjpeg/libpng 由 0x1000 升到 0x4000),
  新增 camera-core 1.5.3、mlkit barcode-scanning 17.3.0
- compileSdk / targetSdk / buildTools 升级到 35 / 35 / 35.0.0
- 老编辑器 AppBarLayout 补 fitsSystemWindows,Web 编辑器 Compose 内容
  补 enableEdgeToEdge + systemBarsPadding,适配 targetSdk 35 强制边到边
- 适配 compileSdk 35:GlobalAppContext 改用 getApplicationInfo 获取
  ApplicationInfo,规避 PackageInfo.applicationInfo 可空导致的类型错误
- 用 Gradle 原生 Task 替换 Exec,声明 inputs/outputs 支持增量构建
- inputs 排除 dist/ 与 node_modules/,避免任务自身产物造成自反馈,
  导致任务永远无法 UP-TO-DATE
- 输出只同步 *.js;preBuild 依赖 buildJsModule,编译前自动构建 JS 产物
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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