build.gradle 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. group 'com.example.vnote_device_plugin'
  2. version '1.0'
  3. buildscript {
  4. repositories {
  5. google()
  6. mavenCentral()
  7. }
  8. dependencies {
  9. classpath 'com.android.tools.build:gradle:7.3.0'
  10. }
  11. }
  12. rootProject.allprojects {
  13. repositories {
  14. google()
  15. mavenCentral()
  16. flatDir {
  17. dirs 'libs'
  18. }
  19. }
  20. }
  21. apply plugin: 'com.android.library'
  22. android {
  23. compileSdkVersion 31
  24. compileOptions {
  25. sourceCompatibility JavaVersion.VERSION_1_8
  26. targetCompatibility JavaVersion.VERSION_1_8
  27. }
  28. defaultConfig {
  29. minSdkVersion 16
  30. }
  31. dependencies {
  32. testImplementation 'junit:junit:4.13.2'
  33. testImplementation 'org.mockito:mockito-core:5.0.0'
  34. // implementation fileTree(dir: 'libs', include: ['*.jar','*.aar'])
  35. compileOnly fileTree(include: ['*.jar', '*.aar'], dir: 'libs')
  36. // implementation(name:'device_sdk',ext:'aar')
  37. }
  38. testOptions {
  39. unitTests.all {
  40. testLogging {
  41. events "passed", "skipped", "failed", "standardOut", "standardError"
  42. outputs.upToDateWhen {false}
  43. showStandardStreams = true
  44. }
  45. }
  46. }
  47. }