import groovy.json.JsonSlurper
plugins { id 'com.android.application' }
def brand = new JsonSlurper().parse(rootProject.file('brand.json'))
android {
    namespace 'com.beautypol.shell'
    compileSdk 36
    buildToolsVersion "36.0.0"
    defaultConfig {
        applicationId brand.package_name
        minSdk 26
        targetSdk 36
        versionCode brand.version_code as int
        versionName "1.0.${brand.version_code}"
    }
    signingConfigs {
        release {
            storeFile file(System.getenv('BEAUTYPOL_KEYSTORE'))
            storePassword System.getenv('BEAUTYPOL_STORE_PASSWORD')
            keyAlias System.getenv('BEAUTYPOL_KEY_ALIAS')
            keyPassword System.getenv('BEAUTYPOL_STORE_PASSWORD')
        }
    }
    buildTypes { release { signingConfig signingConfigs.release; minifyEnabled false; debuggable false } }
    compileOptions { sourceCompatibility JavaVersion.VERSION_17; targetCompatibility JavaVersion.VERSION_17 }
}
