build.gradle 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. apply plugin: 'com.android.application'
  2. dependencies {
  3. implementation fileTree(dir: 'libs', include: '*.jar')
  4. implementation(name: 'android-smartband-sdk-sxrblejy2library-release', ext: 'aar')
  5. implementation(name: 'android-smartband-sdk-sxrblejy2aidl-release', ext: 'aar')
  6. }
  7. android {
  8. compileSdkVersion 21
  9. buildToolsVersion '28.0.2'
  10. compileOptions {
  11. sourceCompatibility JavaVersion.VERSION_1_7
  12. targetCompatibility JavaVersion.VERSION_1_7
  13. }
  14. sourceSets {
  15. main {
  16. manifest.srcFile 'AndroidManifest.xml'
  17. java.srcDirs = ['src']
  18. resources.srcDirs = ['src']
  19. aidl.srcDirs = ['src']
  20. renderscript.srcDirs = ['src']
  21. res.srcDirs = ['res']
  22. assets.srcDirs = ['assets']
  23. }
  24. // Move the tests to tests/java, tests/res, etc...
  25. androidTest.setRoot('tests')
  26. // Move the build types to build-types/<type>
  27. // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
  28. // This moves them out of them default location under src/<type>/... which would
  29. // conflict with src/ being used by the main source set.
  30. // Adding new build types or product flavors should be accompanied
  31. // by a similar customization.
  32. debug.setRoot('build-types/debug')
  33. release.setRoot('build-types/release')
  34. }
  35. defaultConfig {
  36. minSdkVersion = 18
  37. }
  38. }