build.gradle 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. }
  18. task makeJar(type: Copy) {
  19. delete 'build/libs/mySdk.jar'
  20. from('build/intermediates/bundles/release/')
  21. into('build/libs/')
  22. include('classes.jar')
  23. rename('classes.jar', 'bboxblelib.jar')
  24. }
  25. makeJar.dependsOn(build)
  26. dependencies {
  27. implementation fileTree(dir: 'libs', include: ['*.jar'])
  28. implementation 'com.android.support:appcompat-v7:26.0.0-beta1'
  29. testImplementation 'junit:junit:4.12'
  30. androidTestImplementation 'com.android.support.test:runner:0.5'
  31. androidTestImplementation 'com.android.support.test.espresso:espresso-core:2.2.2'
  32. implementation 'org.greenrobot:eventbus:3.0.0'
  33. }