build.gradle 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 28
  4. defaultConfig {
  5. applicationId "com.yxf.clippathlayout.sample"
  6. minSdkVersion 19
  7. targetSdkVersion 28
  8. versionCode 1
  9. versionName "1.0"
  10. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. compileOptions {
  19. sourceCompatibility JavaVersion.VERSION_1_8
  20. targetCompatibility JavaVersion.VERSION_1_8
  21. }
  22. }
  23. dependencies {
  24. implementation fileTree(include: ['*.jar'], dir: 'libs')
  25. implementation 'com.android.support:appcompat-v7:28.0.0'
  26. implementation 'com.android.support:design:28.0.0'
  27. implementation 'com.android.support.constraint:constraint-layout:1.1.3'
  28. testImplementation 'junit:junit:4.12'
  29. androidTestImplementation 'com.android.support.test:runner:1.0.2'
  30. androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
  31. implementation project(':clippathlayout')
  32. // implementation 'com.yxf:clippathlayout:1.0.+'
  33. //LeakCanary
  34. debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.3'
  35. releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
  36. // Optional, if you use support library fragments:
  37. debugImplementation 'com.squareup.leakcanary:leakcanary-support-fragment:1.6.3'
  38. }