build.gradle 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 30
  4. buildToolsVersion "30.0.1"
  5. buildFeatures{
  6. dataBinding = true
  7. }
  8. defaultConfig {
  9. applicationId "com.poto.timeservice"
  10. minSdkVersion 21
  11. targetSdkVersion 30
  12. versionCode 1
  13. versionName "1.0"
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. }
  16. buildTypes {
  17. release {
  18. minifyEnabled false
  19. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  20. }
  21. debug {
  22. ext.alwaysUpdateBuildId = false
  23. }
  24. }
  25. // Butterknife requires Java 8.
  26. compileOptions {
  27. sourceCompatibility JavaVersion.VERSION_1_8
  28. targetCompatibility JavaVersion.VERSION_1_8
  29. }
  30. }
  31. dependencies {
  32. implementation fileTree(dir: 'libs', include: ['*.jar'])
  33. implementation 'androidx.appcompat:appcompat:1.2.0'
  34. implementation 'androidx.constraintlayout:constraintlayout:2.0.0'
  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.1.0'
  42. }