plugins { id 'com.android.application' }

def configuredUrl = providers.gradleProperty('APP_URL').orElse('https://example.com/public/').get()
if (configuredUrl == null || configuredUrl.trim().isEmpty()) configuredUrl = 'https://example.com/public/'
android {
    namespace 'com.ludoarena.wrapper'
    compileSdk 35
    defaultConfig {
        applicationId 'com.ludoarena.wrapper'
        minSdk 23
        targetSdk 35
        versionCode 20
        versionName '2.0.0'
        buildConfigField 'String', 'APP_URL', '"' + configuredUrl.replace('"','\\"') + '"'
    }
    buildFeatures { buildConfig true }
}
