build.gradle 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 26
  4. defaultConfig {
  5. minSdkVersion 19
  6. targetSdkVersion 26
  7. versionCode 1
  8. versionName "1.0"
  9. testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled false
  14. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  15. }
  16. }
  17. }
  18. repositories { //这几句代码一定要加 不然会找不到.aar文件
  19. flatDir {
  20. dirs 'libs' //this way we can find the .aar file in libs folder
  21. }
  22. }
  23. dependencies {
  24. implementation fileTree(dir: 'libs', include: ['*.jar'])
  25. implementation('pub.devrel:easypermissions:1.1.2') {
  26. exclude group: 'com.android.support'
  27. }
  28. implementation 'androidx.appcompat:appcompat:1.0.0'
  29. testImplementation 'junit:junit:4.12'
  30. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  31. androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
  32. }