build.gradle 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion versions.compileSdk
  4. buildToolsVersion versions.buildTools
  5. defaultConfig {
  6. applicationId "com.miekir.newmvp"
  7. minSdkVersion versions.minSdk
  8. targetSdkVersion versions.targetSdk
  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. }
  19. }
  20. dependencies {
  21. implementation fileTree(dir: 'libs', include: ['*.jar'])
  22. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  23. testImplementation 'junit:junit:4.12'
  24. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  25. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  26. implementation project(path: ':mvp')
  27. // 查看内存泄露
  28. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.1'
  29. }