ExternalNativeBuildTask.soFolder and objFolder return File in AGP 7.0 and DirectoryProperty in 7.2. To work around this we now use reflection on these properties and handle either case based on the returned value.
This PR also includes a change to the test fixture, using sed to alter the gradle-wrapper.properties avoiding versioning problems with the gradle wrapper task (which can have conflicts between the Gradle version and AGP version intended to be tested).
Testing
New test pipeline for AGP 7.2 using existing fixtures.
Goal
Basic support for Android Gradle Plugin 7.2.
Design
ExternalNativeBuildTask.soFolder
andobjFolder
returnFile
in AGP 7.0 andDirectoryProperty
in 7.2. To work around this we now use reflection on these properties and handle either case based on the returned value.This PR also includes a change to the test fixture, using
sed
to alter thegradle-wrapper.properties
avoiding versioning problems with thegradle wrapper
task (which can have conflicts between the Gradle version and AGP version intended to be tested).Testing
New test pipeline for AGP 7.2 using existing fixtures.