buildscript {
    repositories {
        google()
        mavenCentral()
    }
}
apply plugin: 'com.android.application'

android {
    namespace 'com.automattic.simplenote'
    compileSdk 36

    buildTypes {
        release {
            minifyEnabled true
            shrinkResources false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    defaultConfig {
        applicationId "com.automattic.simplenote"
        minSdkVersion 23
        targetSdkVersion 35
        versionCode 2
        versionName "1.1.0"
    }
}

dependencies {
    compileOnly 'androidx.wear:wear:1.3.0'

    implementation 'androidx.wear:wear:1.3.0'
    implementation 'com.google.android.gms:play-services-wearable:19.0.0'
}

repositories {
    mavenCentral()
    maven {
        url "https://maven.google.com"
    }
}

if(["storeFile", "storePassword", "keyAlias", "keyPassword"].count { !project.hasProperty(it) } == 0 ){
    android {
        signingConfigs {
            release {
                storeFile = file(project.storeFile.replaceFirst("^~", System.getProperty("user.home")))
                storePassword = project.storePassword
                keyAlias = project.keyAlias
                keyPassword = project.keyPassword
            }
            debug {
                storeFile = file(project.storeFile.replaceFirst("^~", System.getProperty("user.home")))
                storePassword = project.storePassword
                keyAlias = project.keyAlias
                keyPassword = project.keyPassword
            }
        }
    }
    android.buildTypes.release.signingConfig = android.signingConfigs.release
}
