build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'com.huawei.agconnect'
  3. android {
  4. compileSdkVersion 27
  5. defaultConfig {
  6. minSdkVersion 14
  7. targetSdkVersion 25
  8. }
  9. buildTypes {
  10. release {
  11. minifyEnabled false
  12. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  13. }
  14. debug {
  15. minifyEnabled false
  16. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  17. }
  18. }
  19. sourceSets {
  20. main {
  21. manifest.srcFile 'AndroidManifest.xml'
  22. java.srcDirs = ['src']
  23. resources.srcDirs = ['src']
  24. aidl.srcDirs = ['src']
  25. renderscript.srcDirs = ['src']
  26. res.srcDirs = ['res']
  27. assets.srcDirs = ['assets']
  28. jniLibs.srcDirs = ['libs']
  29. }
  30. debug.setRoot('build-types/debug')
  31. release.setRoot('build-types/release')
  32. }
  33. android {
  34. lintOptions {
  35. abortOnError false
  36. }
  37. }
  38. }
  39. dependencies {
  40. api fileTree(include: ['*.jar'], dir: 'libs')
  41. }