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
./gradlew test :demo:assembleDebug :runtime:assembleRelease :demo:assembleRelease :demo:assembleDebugAndroidTest
真机 adb install + am instrument,41 个 instrumentation tests 全部通过。
兼容性
无破坏性变更。
English
Added
Generate synthetic AttributeSet metadata for business custom Views and ViewFactory hooks, preserving android/app attribute names, raw values, and resource IDs from XML.
Add the layoutX2C.enableSyntheticAttributeSet option to disable synthetic attrs generation when needed.
Add a demo custom-attribute layout and device instrumentation coverage for ViewFactory synthetic attrs inspection.
Fixed
Keep generated custom-view default constructors on View(context) so Android does not crash by casting a plain Java/Kotlin AttributeSet to its internal XmlBlock.Parser.
Limit synthetic attrs to ViewFactory hook raw AttributeSet inspection; declared safe custom attributes continue to be replayed through typed setters.
Verified
./gradlew check
./gradlew test :demo:assembleDebug :runtime:assembleRelease :demo:assembleRelease :demo:assembleDebugAndroidTest
Real-device adb install + am instrument, all 41 instrumentation tests passed.