Define global configuration variables in KMM

Viewed 1077

In native android project, we can define BuildConfig variables which can be change based on the selected build type (debug or release). For this we can add the code below in app level gradle file

buildTypes {
    release {
        buildConfigField 'String', "BASE_URL", '"https://stackoverflow.com/"'
    }
    debug {
        buildConfigField 'String', "BASE_URL", '"https://qa.stackoverflow.com/"'
    }
}

I am looking forward to create global configuration variables like this can be accessed from shared module and from Android and iOS module if possible. How I can achieve this?

1 Answers
Related