build.gradle 707 B

12345678910111213141516171819202122232425262728293031
  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. versionCode 240
  9. versionName "2.4.0"
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled false
  14. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  15. }
  16. }
  17. }
  18. dependencies {
  19. implementation fileTree(dir: 'libs', include: ['*.jar'])
  20. }
  21. task makeAAR(type: Copy) {
  22. from('build/outputs/aar/')
  23. into('build/aarFloder/')
  24. include('FastBleLib-release.aar')
  25. rename ('FastBleLib-release.aar', 'FastBLE-2.4.0.aar' )
  26. }
  27. makeAAR.dependsOn(build)