How fukusaka/function-test-201909-constraintlayout works
Project type and purpose
• This is a sample Android application (Kotlin) whose sole purpose is to verify that layouts built with ConstraintLayout 1.x behave identically when linked against ConstraintLayout 2.x. It exercises two build variants—oneDebug (v1.1.3) and twoDebug (v2.0.0-beta2/beta3)—to reproduce a margin/spacing issue and confirm its fix in beta3.
File structure
• Top-level Gradle files: settings.gradle, build.gradle, gradle.properties, Gradle wrapper.
• Single module “app” with build.gradle and proguard rules.
• Source code under app/src/main/java/jp/fukusaka/constraintlayout001/MainActivity.kt.
• Layout resource under app/src/main/res/layout/activity_main.xml.
• Test code in app/src/test (unit tests) and app/src/androidTest (instrumented tests).
README for additional insights
• Purpose: confirm ConstraintLayout v1 layouts still work under v2.
• Build instructions use ./gradlew assembleDebug and switching Build Variants in Android Studio.
Detail
• Both build-time and run-time components.
• Test harnesses separately.
• Two build variants side by side to contrast v1 vs. v2 behavior.