build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. }
  5. android {
  6. compileSdkVersion 29
  7. buildToolsVersion "29.0.3"
  8. defaultConfig {
  9. applicationId "com.bearya.robot.bluetoothlowenergy"
  10. minSdkVersion 25
  11. targetSdkVersion 29
  12. versionCode 1
  13. versionName "1.0"
  14. }
  15. signingConfigs {
  16. config {
  17. keyAlias 'BeiYa'
  18. storePassword 'BeiYa123'
  19. storeFile file('../bearya_keystore.jks')
  20. keyPassword 'BeiYa!@#'
  21. }
  22. }
  23. buildTypes {
  24. release {
  25. minifyEnabled false
  26. signingConfig signingConfigs.config
  27. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  28. }
  29. }
  30. android.applicationVariants.all { variant ->
  31. variant.outputs.each { output ->
  32. if ("release" == buildType.name) output.outputFileName = "BluetoothLowEnergyRelease.apk"
  33. else output.outputFileName = "BluetoothLowEnergyDebug.apk"
  34. }
  35. }
  36. compileOptions {
  37. sourceCompatibility JavaVersion.VERSION_1_8
  38. targetCompatibility JavaVersion.VERSION_1_8
  39. }
  40. kotlinOptions {
  41. jvmTarget = '1.8'
  42. }
  43. }
  44. dependencies {
  45. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  46. implementation 'androidx.core:core-ktx:1.3.2'
  47. implementation 'androidx.appcompat:appcompat:1.2.0'
  48. implementation 'com.google.android.material:material:1.2.1'
  49. implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
  50. }