You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 697d204
Browse filesBrowse the repository at this point in the historyBrowse files
-`: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.
- 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