A minimal Flutter fixture that builds against the local purchases_flutter and
purchases_ui_flutter packages on Flutter 3.44+ with AGP 9 and KGP 2.x.
This is a build-only fixture: it is never run on a device. The point is to
exercise the AGP 9 branch of purchases_ui_flutter/android/build.gradle
end-to-end through the Flutter Gradle plugin, which the configuration-only
checks in unit tests cannot do.
The Android template generated by flutter create on Flutter 3.44 pins:
- AGP
9.0.1 - KGP
2.3.20 - Gradle
9.1.0(via the wrapper) android.builtInKotlin=falseandroid.newDsl=false
These are the Flutter 3.44 defaults and are intentionally not customized here — the whole point of this fixture is to verify the plugin works under the out-of-the-box settings a Flutter 3.44 app would have.
Requires Flutter 3.44+ and JDK 21 on PATH:
cd e2e-tests/agp9_test_app
flutter pub get
flutter build apk --debugTo also exercise the AGP 9 default of android.builtInKotlin=true (without
duplicating the fixture), flip the flag and rebuild:
sed -i '' 's/^android.builtInKotlin=false$/android.builtInKotlin=true/' android/gradle.properties
flutter clean && rm -rf android/.gradle android/build
flutter build apk --debug(Drop the '' after -i on Linux.)