Using Android gradle plugin of version 3.0.1.
I have the application module :app
and the library module :lib
included in :app
module: implementation(project(':lib'))
.
Module :lib
has native code. So, it has :lib:externalNativeBuildRelease
task. I need to make this task dependent on the Proguard task of the root module :app
.
I need it due to native code obfuscation. I do not use standard approach of keeping java code called from native. I obfuscate it as well, replacing code in native. So, to process native code correctly, I need mapping.txt, generated by Proguard, before start of native build.