Skip to content

Commit 697d204

Browse files
committed
docs(release): split 1.1.0 notes by language
Match the 1.0.0 release format with separate Chinese and English sections. Tested: git diff --check
1 parent 5c9a49e commit 697d204

1 file changed

Lines changed: 112 additions & 30 deletions

File tree

‎docs/RELEASE_NOTES_1_1.md‎

Lines changed: 112 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,117 @@
11
# LayoutX2C 1.1.0
22

3-
LayoutX2C 1.1.0 是 1.0 稳定版之后的第一个 minor release。这个版本继续保持保守生成策略:
4-
可静态保证等价的 XML 会进入 generated path,无法保证的平台语义继续 fallback 到原生
5-
`LayoutInflater` / DataBinding,不改变 1.0 的 public API contract。
3+
## 中文
64

7-
## Highlights
5+
LayoutX2C 1.1.0 是 1.0 稳定版之后的第一个 minor 版本,重点扩展安全可生成属性、修复 DataBinding / BindingAdapter 边界问题,并增强资源追踪和发布验证。
86

9-
- 扩展常用 View 属性支持:transform、`EditText`、view state、scrollbar / over-scroll、accessibility
10-
importance 等安全子集可以进入 generated path。
7+
这个版本继续保持 1.0 的保守契约:可静态确认等价的 XML 会进入生成代码,不支持或无法确认等价的平台语义继续走原生 `LayoutInflater`、原生 DataBinding 或 fallback path。1.1.0 不引入 breaking change。
8+
9+
### 主要变化
10+
11+
- 扩展常用 View 属性支持,包括 transform、`EditText` 常用属性、view state、scrollbar / over-scroll 和 accessibility importance 等安全子集。
1112
- 支持可静态解析的 theme drawable attrs,在保持平台 inflation 语义等价的前提下减少 fallback。
12-
- 修复 DataBinding include / root 字段绑定路径,malformed include 会更保守地处理,避免生成无效
13-
binding facade code。
14-
- BindingAdapter 支持继续收紧边界:覆盖 config generation、unsupported expression、unprefixed fast
15-
binding attrs 等路径。
16-
- qualified layout resources 已进入 resource digest tracking,layout 变体和 values qualifier 会参与
17-
cache / regeneration 判断。
13+
- 修复 malformed DataBinding include 处理,避免生成无效 binding facade code。
14+
- 修复 DataBinding include / root 字段绑定路径,保持 include root ID 和 binding 字段语义一致。
15+
- 补齐 BindingAdapter config generation、unsupported expression 和 unprefixed fast binding attrs 等路径覆盖。
16+
- qualified layout resources 已进入 resource digest tracking,layout 变体和 values qualifier 会参与 cache / regeneration 判断。
1817
- ConstraintLayout Guideline 参数保留已补齐,并加入 demo equivalence coverage。
19-
- 新增 Kover / Codecov CI 上报,并补充 registry、dimension、fallback path、plugin provider、report
20-
task 等覆盖。
21-
- 新增 fallback performance notes,明确 full-tree extraction、batched extraction,以及不采用 partial
22-
`XmlPullParser` inflate / native hook 的原因。
18+
- 新增 Kover / Codecov CI 上报,补充 registry、dimension、fallback path、plugin provider 和 report task 等覆盖。
19+
- 新增 fallback performance notes,明确 full-tree extraction、batched extraction,以及不采用 partial `XmlPullParser` inflate / native hook 的原因。
20+
21+
### 从 1.0.0 到 1.1.0
22+
23+
- 新增 transform / EditText / view state / theme drawable attrs 的安全生成能力。
24+
- 改进 DataBinding include 和 BindingAdapter 的生成边界,遇到不安全结构时更保守地 fallback。
25+
- 改进 layout resource digest,避免 qualified resources 或 values 变体变化时复用过期生成结果。
26+
- 补充 generated-vs-inflated 等价性测试,覆盖 TextView、ImageView、RelativeLayout、EditText、view state 和 Guideline 场景。
27+
- 强化 CI 覆盖率上报和报告任务测试,便于持续观察 fallback 和生成质量。
28+
- 记录 fallback 性能边界,避免重新引入不安全的 runtime partial inflate 方案。
29+
30+
### 兼容信息
31+
32+
- Minimum SDK:23
33+
- Compile SDK:36
34+
- Target SDK:36
35+
- Android Gradle Plugin:9.2.1
36+
- Kotlin:2.2.21
37+
- KSP:2.3.8
38+
- Java source / target compatibility:11
39+
- Release build toolchain:JDK 21
40+
41+
### 接入方式
42+
43+
```kotlin
44+
plugins {
45+
id("io.github.donglua.layoutx2c") version "1.1.0"
46+
}
47+
```
48+
49+
手动依赖配置:
50+
51+
```kotlin
52+
dependencies {
53+
implementation("io.github.donglua.layoutx2c:runtime:1.1.0")
54+
ksp("io.github.donglua.layoutx2c:ksp-processor:1.1.0")
55+
}
56+
```
57+
58+
发布坐标:
59+
60+
- `io.github.donglua.layoutx2c:runtime:1.1.0`
61+
- `io.github.donglua.layoutx2c:compiler-core:1.1.0`
62+
- `io.github.donglua.layoutx2c:ksp-processor:1.1.0`
63+
- `io.github.donglua.layoutx2c:gradle-plugin:1.1.0`
64+
- Gradle plugin id:`io.github.donglua.layoutx2c`
65+
66+
### 已知边界
67+
68+
- 未支持的 View 类或不安全属性仍会 fallback 到平台 inflation。
69+
- 动态 theme 语义不会默认编译成常量,`?attr/` 等运行时主题能力仍保持保守处理。
70+
- DataBinding 支持仍是有边界的。LayoutX2C 不替代完整原生 DataBinding runtime、复杂表达式引擎、Observable / LiveData 订阅模型或 lifecycle 分发。
71+
- 自定义 View 和 BindingAdapter 只有显式加入白名单后才会进入生成代码。
72+
- `:demo:connectedDebugAndroidTest` 建议在有设备或 CI emulator 的环境中补跑,用于验证真实 Android runtime 下的 generated-vs-inflated 等价性。
73+
74+
---
75+
76+
## English
77+
78+
LayoutX2C 1.1.0 is the first minor release after the 1.0 stable release. It expands safe attribute generation, fixes DataBinding / BindingAdapter boundary cases, and improves resource tracking and release verification.
79+
80+
This release keeps the 1.0 conservative contract: XML that can be statically proven equivalent is generated into code, while unsupported or unsafe platform semantics continue to use native `LayoutInflater`, native DataBinding, or the fallback path. 1.1.0 does not introduce breaking changes.
81+
82+
### Highlights
83+
84+
- Expanded common View attribute support, including safe subsets for transform, common `EditText` attributes, view state, scrollbar / over-scroll, and accessibility importance.
85+
- Added support for statically resolvable theme drawable attrs when the generated path can preserve platform inflation semantics.
86+
- Fixed malformed DataBinding include handling so invalid structures do not generate invalid binding facade code.
87+
- Fixed DataBinding include / root field binding paths so include root IDs and binding fields stay consistent.
88+
- Added coverage for BindingAdapter config generation, unsupported expressions, and unprefixed fast binding attrs.
89+
- Added qualified layout resources to resource digest tracking, so layout variants and values qualifiers participate in cache / regeneration decisions.
90+
- Preserved ConstraintLayout Guideline params in generated code and added demo equivalence coverage.
91+
- Added Kover / Codecov CI reporting and expanded coverage for registry, dimension, fallback path, plugin provider, and report task behavior.
92+
- Added fallback performance notes covering full-tree extraction, batched extraction, and why partial `XmlPullParser` inflate / native hooks are not used.
93+
94+
### Changes since 1.0.0
95+
96+
- Added safe generation support for transform / EditText / view state / theme drawable attrs.
97+
- Improved DataBinding include and BindingAdapter generation boundaries, with more conservative fallback for unsafe structures.
98+
- Improved layout resource digests to avoid reusing stale generated outputs when qualified resources or values variants change.
99+
- Expanded generated-vs-inflated equivalence tests for TextView, ImageView, RelativeLayout, EditText, view state, and Guideline cases.
100+
- Hardened CI coverage reporting and report task tests for ongoing fallback and generation quality checks.
101+
- Documented fallback performance boundaries to avoid reintroducing unsafe runtime partial-inflate approaches.
23102

24-
## Compatibility
103+
### Compatibility
25104

26105
- Minimum SDK: 23
27106
- Compile SDK: 36
107+
- Target SDK: 36
28108
- Android Gradle Plugin: 9.2.1
29109
- Kotlin: 2.2.21
30110
- KSP: 2.3.8
31-
- Java toolchain: 21
111+
- Java source / target compatibility: 11
112+
- Release build toolchain: JDK 21
32113

33-
## Artifacts
114+
### Setup
34115

35116
```kotlin
36117
plugins {
@@ -47,17 +128,18 @@ dependencies {
47128
}
48129
```
49130

50-
## Notes
131+
Published coordinates:
51132

52-
- 这个版本不引入 breaking change。
53-
- 复杂 DataBinding 表达式、Observable / LiveData lifecycle tracking、未声明的 BindingAdapter、
54-
未声明的 custom View 属性和动态 theme 语义仍由原生 DataBinding 或 fallback path 处理。
55-
- `:demo:connectedDebugAndroidTest` 仍建议在有设备或 CI emulator 的环境中补跑,用于验证真实
56-
Android runtime 下的 generated-vs-inflated 等价性。
133+
- `io.github.donglua.layoutx2c:runtime:1.1.0`
134+
- `io.github.donglua.layoutx2c:compiler-core:1.1.0`
135+
- `io.github.donglua.layoutx2c:ksp-processor:1.1.0`
136+
- `io.github.donglua.layoutx2c:gradle-plugin:1.1.0`
137+
- Gradle plugin id: `io.github.donglua.layoutx2c`
57138

58-
## Documentation
139+
### Known boundaries
59140

60-
- Usage and support matrix: `README.md`
61-
- Benchmark guidance: `docs/BENCHMARKS.md`
62-
- Fallback performance notes: `docs/FALLBACK_PERFORMANCE_NOTES.md`
63-
- Release process: `docs/RELEASE.md`
141+
- Unsupported View classes or unsafe attributes still fall back to platform inflation.
142+
- Dynamic theme semantics are not compiled into constants by default. Runtime theme features such as `?attr/` remain conservative.
143+
- DataBinding support is intentionally scoped. LayoutX2C does not replace the full native DataBinding runtime, complex expression engine, Observable / LiveData subscription model, or lifecycle dispatch.
144+
- Custom views and BindingAdapters only enter generated code when explicitly whitelisted.
145+
- `:demo:connectedDebugAndroidTest` should still be run in an environment with a device or CI emulator to verify generated-vs-inflated equivalence on a real Android runtime.

0 commit comments

Comments
 (0)