build.gradle 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'kotlin-android'
  3. apply plugin: 'kotlin-android-extensions'
  4. android {
  5. compileSdkVersion 29
  6. buildToolsVersion "29.0.3"
  7. defaultConfig {
  8. applicationId "com.mrozon.mycustomview"
  9. minSdkVersion 21
  10. targetSdkVersion 29
  11. versionCode 1
  12. versionName "1.0"
  13. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. compileOptions {
  22. sourceCompatibility JavaVersion.VERSION_1_8
  23. targetCompatibility JavaVersion.VERSION_1_8
  24. }
  25. kotlinOptions {
  26. jvmTarget = '1.8'
  27. }
  28. }
  29. dependencies {
  30. implementation fileTree(dir: "libs", include: ["*.jar"])
  31. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  32. implementation 'androidx.core:core-ktx:1.3.1'
  33. implementation 'androidx.appcompat:appcompat:1.2.0'
  34. implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
  35. implementation 'com.jakewharton.timber:timber:4.7.1'
  36. testImplementation 'junit:junit:4.12'
  37. androidTestImplementation 'androidx.test.ext:junit:1.1.2'
  38. androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
  39. }