build.gradle 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. apply plugin: 'com.android.library'
  2. android {
  3. compileSdkVersion 26
  4. defaultConfig {
  5. minSdkVersion 19
  6. targetSdkVersion 26
  7. versionCode 1
  8. versionName "1.0"
  9. testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  10. }
  11. buildTypes {
  12. release {
  13. minifyEnabled false
  14. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  15. }
  16. }
  17. task makeJar(type: Copy) {
  18. delete 'build/libs/bboxblelib.jar'
  19. // from('build/intermediates/bundles/release/')
  20. from('build/intermediates/packaged-classes/release/')
  21. into('build/libs/')
  22. include('classes.jar')
  23. rename('classes.jar', 'bboxblelib-1.1.jar')
  24. }
  25. makeJar.dependsOn(build)
  26. }
  27. dependencies {
  28. implementation fileTree(dir: 'libs', include: ['*.jar'])
  29. implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
  30. testImplementation 'junit:junit:4.12'
  31. androidTestImplementation 'com.android.support.test:runner:0.5'
  32. androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
  33. implementation 'org.greenrobot:eventbus:3.0.0'
  34. }