build.gradle 769 B

123456789101112131415161718192021222324252627282930313233343536
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion COMPILE_SDK
  4. buildToolsVersion BUILD_TOOLS_VERSION
  5. defaultConfig {
  6. minSdkVersion 26
  7. targetSdkVersion 28
  8. }
  9. sourceSets {
  10. main {
  11. java.srcDirs = ['src', 'src_full_lib']
  12. manifest.srcFile 'AndroidManifest.xml'
  13. res.srcDirs = ['res']
  14. }
  15. }
  16. lintOptions {
  17. abortOnError false
  18. }
  19. tasks.withType(JavaCompile) {
  20. options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
  21. }
  22. compileOptions {
  23. sourceCompatibility JavaVersion.VERSION_1_8
  24. targetCompatibility JavaVersion.VERSION_1_8
  25. }
  26. }
  27. dependencies {
  28. implementation "androidx.core:core:${ANDROID_X_VERSION}"
  29. }