build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 30
  4. buildToolsVersion "30.0.0"
  5. defaultConfig {
  6. applicationId "com.poto.timeservice"
  7. minSdkVersion 21
  8. targetSdkVersion 30
  9. versionCode 1
  10. versionName "1.0"
  11. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  12. }
  13. buildTypes {
  14. release {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  17. }
  18. debug {
  19. ext.alwaysUpdateBuildId = false
  20. }
  21. }
  22. // Butterknife requires Java 8.
  23. compileOptions {
  24. sourceCompatibility JavaVersion.VERSION_1_8
  25. targetCompatibility JavaVersion.VERSION_1_8
  26. }
  27. dataBinding {
  28. enabled = true
  29. }
  30. }
  31. dependencies {
  32. implementation fileTree(dir: 'libs', include: ['*.jar'])
  33. implementation 'androidx.appcompat:appcompat:1.1.0'
  34. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  35. testImplementation 'junit:junit:4.12'
  36. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  37. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  38. /*butterknife*/
  39. implementation 'com.jakewharton:butterknife:10.2.1'
  40. annotationProcessor 'com.jakewharton:butterknife-compiler:10.2.1'
  41. implementation 'androidx.recyclerview:recyclerview:1.0.0'
  42. }