您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

build.gradle 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. namespace 'com.elinkthings.otalibrary'
  6. compileSdk 34
  7. defaultConfig {
  8. minSdk 24
  9. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  10. consumerProguardFiles "consumer-rules.pro"
  11. }
  12. buildTypes {
  13. release {
  14. minifyEnabled false
  15. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  16. }
  17. }
  18. compileOptions {
  19. sourceCompatibility JavaVersion.VERSION_1_8
  20. targetCompatibility JavaVersion.VERSION_1_8
  21. }
  22. repositories {
  23. flatDir {
  24. dirs 'libs'
  25. }
  26. }
  27. }
  28. dependencies {
  29. implementation 'androidx.appcompat:appcompat:1.4.2'
  30. implementation 'com.google.android.material:material:1.12.0'
  31. testImplementation 'junit:junit:4.13.2'
  32. androidTestImplementation 'androidx.test.ext:junit:1.2.1'
  33. androidTestImplementation 'androidx.test.espresso:espresso-core:3.6.1'
  34. //杰理OTA库
  35. implementation(name: 'jl_bt_ota_V1.9.2-release', ext: 'aar')
  36. //杰理rcsp基础库
  37. implementation(name: 'jl_rcsp_V0.5.1-release', ext: 'aar')
  38. //图像转换相关
  39. implementation(name: 'BmpConvert_V1.2.0-release', ext: 'aar')
  40. //杰理健康相关
  41. implementation(name: 'JL_Watch_V1.9.1-release', ext: 'aar')
  42. //瑞立 OTA 库
  43. implementation(name: 'rtkOtaLib-release', ext: 'aar')
  44. api files('libs/BleOtaLibrary.jar')
  45. }