build.gradle 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. plugins {
  2. id 'com.android.library'
  3. }
  4. android {
  5. compileSdk 32
  6. defaultConfig {
  7. minSdkVersion 21
  8. targetSdkVersion 26
  9. versionCode 1
  10. versionName "1.0"
  11. ndk {
  12. abiFilters "armeabi", "armeabi-v7a", "arm64-v8a"
  13. }
  14. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  15. }
  16. //签名使用的相关证书
  17. signingConfigs {
  18. release {
  19. storeFile file('keystore.jks')
  20. storePassword '123456'
  21. keyAlias 'baidu'
  22. keyPassword '123456'
  23. }
  24. debug {
  25. storeFile file('keystore.jks')
  26. storePassword '123456'
  27. keyAlias 'baidu'
  28. keyPassword '123456'
  29. }
  30. }
  31. buildTypes {
  32. release {
  33. minifyEnabled false
  34. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  35. }
  36. }
  37. packagingOptions {
  38. exclude 'META-INF/DEPENDENCIES.txt'
  39. exclude 'META-INF/LICENSE.txt'
  40. exclude 'META-INF/NOTICE.txt'
  41. exclude 'META-INF/NOTICE'
  42. exclude 'META-INF/LICENSE'
  43. exclude 'META-INF/DEPENDENCIES'
  44. exclude 'META-INF/notice.txt'
  45. exclude 'META-INF/license.txt'
  46. exclude 'META-INF/dependencies.txt'
  47. exclude 'META-INF/LGPL2.1'
  48. exclude 'META-INF/ASL2.0'
  49. }
  50. compileOptions {
  51. sourceCompatibility JavaVersion.VERSION_11
  52. targetCompatibility JavaVersion.VERSION_11
  53. }
  54. ndkVersion '21.1.6352462'
  55. buildToolsVersion '29.0.2'
  56. }
  57. dependencies {
  58. implementation fileTree(include: ['*.jar'], dir: 'libs')
  59. implementation "androidx.appcompat:appcompat:1.3.1"
  60. implementation files('libs\\fastjson-1.1.70.android.jar')
  61. implementation files('libs\\jetified-duersdk-common-1.7.5.2-5700.jar')
  62. implementation files('libs\\jetified-duersdk-ces-1.7.5.2-5700.jar')
  63. implementation files('libs\\jetified-duersdk-httplib-1.7.5.2-5700.jar')
  64. implementation files('libs\\jetified-duersdk-acl-1.7.5.2-5700.jar')
  65. implementation files('libs\\jetified-duersdk-core-1.7.5.2-5700.jar')
  66. implementation files('libs\\jetified-duersdk-crablite-1.7.5.2-5700.jar')
  67. implementation files('libs\\Java-WebSocket-1.5.1.jar')
  68. implementation files('libs\\slf4j-api-1.7.25.jar')
  69. implementation files('libs\\kotlin-stdlib-1.7.10.jar')
  70. implementation files('libs\\okio-jvm-2.8.0.jar')
  71. implementation files('libs\\duersdk-kitt-java-1.7.5.2-5754.jar')
  72. implementation files('libs\\com.baidu.tts_2.6.3.c2aaa9f_20220922113422.jar')
  73. }