build.gradle 844 B

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