build.gradle 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. namespace 'com.jytc.speark'
  6. compileSdkVersion 30
  7. defaultConfig {
  8. minSdkVersion 16
  9. targetSdkVersion 30
  10. versionCode 1
  11. versionName "1.0"
  12. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  13. consumerProguardFiles "consumer-rules.pro"
  14. }
  15. buildTypes {
  16. release {
  17. minifyEnabled false
  18. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  19. }
  20. }
  21. sourceSets {
  22. main {
  23. jniLibs.srcDirs = ['libs']
  24. assets.srcDirs = ['src/main/assets']
  25. }
  26. }
  27. compileOptions {
  28. sourceCompatibility JavaVersion.VERSION_1_8
  29. targetCompatibility JavaVersion.VERSION_1_8
  30. }
  31. }
  32. dependencies {
  33. implementation fileTree(include: ['*.jar'], dir: 'libs')
  34. implementation 'androidx.appcompat:appcompat:1.1.0'
  35. implementation 'com.google.android.material:material:1.1.0'
  36. api files('libs/Msc.jar')
  37. androidTestImplementation 'androidx.test.ext:junit:1.1.1'
  38. androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
  39. }