How to get the flavor of the root project in the build.gradle child project if you install multiple projects in android

We have a multi-project setup for our Android application with more than one flavor present in the root project.

Our requirement is to get the root project for which this apk is being built in the project project of the gradle child library.

In android, we can run the task to create the whole flavor in one go. Is it possible that we can find the current source of the original root project, for which this library will be packaged only during the build process.

Please, help.

+4
source share

Source: https://habr.com/ru/post/1534761/


All Articles