• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Gradle problem:Using an .AAR in both Release and Debug

I have a app comprising some unit tests, which test functions packaged in an AAR file, which itself contains unmanaged (C++) binaries. This file is created through another build process that dumps it in it's Release or Debug forms in a directory of the form build/Android.${Configuration} .

I have figured out how to bring this file into my project as a module by adding the AAR through the 'Project Structure' dialog, which is pretty standard. However, I must point it at either the Release or Debug AAR.

For my needs up to now, that has been fine: Debug all the way. Now I need to support Release bits also. [FWIW the need is driven by a request to put it into a build/test harness that runs in an Azure pipeline and wants Release]. The user would have access to either build type when running/debugging locally, but the server builds would default to Release.

What is the gradle "school solution" to this?

There must be one.
 
Back
Top Bottom