plugins { id 'com.android.application' id 'kotlin-android' } android { compileSdkVersion 29 buildToolsVersion "29.0.3" defaultConfig { applicationId "com.bearya.robot.bluetoothlowenergy" minSdkVersion 25 targetSdkVersion 29 versionCode 1 versionName "1.0" } signingConfigs { config { keyAlias 'BeiYa' storePassword 'BeiYa123' storeFile file('../bearya_keystore.jks') keyPassword 'BeiYa!@#' } } buildTypes { release { minifyEnabled false signingConfig signingConfigs.config proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' } } android.applicationVariants.all { variant -> variant.outputs.each { output -> if ("release" == buildType.name) output.outputFileName = "BluetoothLowEnergyRelease.apk" else output.outputFileName = "BluetoothLowEnergyDebug.apk" } } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } kotlinOptions { jvmTarget = '1.8' } } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version" implementation 'androidx.core:core-ktx:1.3.2' implementation 'androidx.appcompat:appcompat:1.2.0' implementation 'com.google.android.material:material:1.2.1' implementation 'androidx.constraintlayout:constraintlayout:2.0.4' }