Android.gradle: Is It Possible To Get Current Module Name Programmatically?
Android Studio 2.3.3, Gradle 4.2. In my app/build.gradle myProp.load(new FileInputStream(rootProject.file('app/keystore.properties'))) OK. It's work. But I want to remove hard co
Solution 1:
You can store buildType/buildFlavor name as BuildConfig value. And use it like BuildConfig.your_variable_name
.
To get current flavor/buildType use this solution.
Post a Comment for "Android.gradle: Is It Possible To Get Current Module Name Programmatically?"