I have a problem related to using urls from NDK. I want to use these depending on build variants, but I don't want to use this with runtime conditions like this
if (BuildConfig.BUILD_TYPE.equalsIgnoreCase("prod")) {
//call native method getPROD_URL()
} else if (BuildConfig.BUILD_TYPE.equalsIgnoreCase("stage")) {
//call native method getSTAGE_URL()
}
How can I connect ndk methods with gradle build types, like gradle.properties ?