My question: How to get the build variant of an app hosting my AAR library code?
Background: - A method that returns an apps build variant should use: BuildConfig.BUILD_TYPE
I'm writing an SDK library. I want to know the build variant of the application hosting my library (mainly to avoid running my code in release variant).
BuildConfig.BUILD_TYPE is package dependant, I don't know the package of the app hosting me and BuildConfig has no getter. I can't ask for the host app's BuildConfig.