build.gradle 687 B

123456789101112131415161718192021222324252627282930
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 30
  4. buildToolsVersion "30.0.3"
  5. defaultConfig {
  6. minSdkVersion 14
  7. targetSdkVersion 30
  8. }
  9. buildTypes {
  10. release {
  11. minifyEnabled false
  12. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  13. }
  14. }
  15. namespace 'com.clj.fastble'
  16. }
  17. dependencies {
  18. implementation fileTree(dir: 'libs', include: ['*.jar'])
  19. }
  20. task makeAAR(type: Copy) {
  21. from('build/outputs/aar/')
  22. into('build/aarFloder/')
  23. include('FastBleLib-release.aar')
  24. rename ('FastBleLib-release.aar', 'FastBLE-2.4.0.aar' )
  25. }
  26. makeAAR.dependsOn(build)