build.gradle 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.hujiang.android-aspectjx'
  3. android {
  4. compileSdkVersion versions.compileSdk
  5. buildToolsVersion versions.buildTools
  6. defaultConfig {
  7. applicationId "com.miekir.newmvp"
  8. minSdkVersion versions.minSdk
  9. targetSdkVersion versions.targetSdk
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. }
  14. buildTypes {
  15. release {
  16. minifyEnabled false
  17. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  18. }
  19. }
  20. }
  21. dependencies {
  22. implementation fileTree(dir: 'libs', include: ['*.jar'])
  23. implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
  24. testImplementation 'junit:junit:4.12'
  25. androidTestImplementation 'androidx.test.ext:junit:1.1.0'
  26. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
  27. implementation project(path: ':mvp')
  28. // 查看内存泄露
  29. debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.1'
  30. compile 'org.aspectj:aspectjrt:1.8.+'
  31. }
  32. aspectjx {
  33. exclude "android.support",'androidx','com.google','com.squareup.leakcanary','com.squareup.leakcanary.core','com.alipay','org.apache','com.tencent'
  34. }