• Gray Mackall's avatar
    [Re-land] Enforce a policy on supported Gradle, Java, AGP, and KGP versions (#143132) · 4b0abc77
    Gray Mackall authored
    Re land of https://github.com/flutter/flutter/pull/142000. 
    Differences:
    1. Fixed the test that was failing in postsubmit. The reason was that the Flutter Gradle Plugin was being applied after KGP in that test, so we couldn't find the KGP version. This caused a log, and the test expects no logs. I moved FGP to after KGP
    2. Added to the logs for when we can't find AGP. Change is from
    >  "Warning: unable to detect project AGP version. Skipping version checking."
    
    to 
    > ~"Warning: unable to detect project AGP version. Skipping version checking. \nThis may be because you have applied the Flutter Gradle Plugin after AGP."~
    
    update: the above is wrong, changed to 
    > "Warning: unable to detect project KGP version. Skipping version checking. \nThis may be because you have applied AGP after the Flutter Gradle Plugin."
    
    3. Added a note to the app-level build.gradle templates that FGP must go last
    > // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugin.
    4b0abc77
Name
Last commit
Last update
..
app Loading commit data...
gradle/wrapper Loading commit data...
build.gradle Loading commit data...
buildscript-gradle.lockfile Loading commit data...
gradle.properties Loading commit data...
project-app.lockfile Loading commit data...
project-integration_test.lockfile Loading commit data...
settings.gradle Loading commit data...