build.gradle 817 B

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