数字人
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

232 lines
7.6 KiB

  1. //plugins {
  2. // id 'kotlin-android'
  3. // id 'kotlin-kapt'
  4. // id 'com.yanzhenjie.andserver' // AndServer
  5. //}
  6. apply plugin: 'com.android.application'
  7. apply from: 'p_module.gradle'
  8. apply plugin: 'kotlin-android'
  9. def VERSION_CODE = 3
  10. def VERSION_NAME_LT = "LT.A.1.2.2.3_20231225_prod"
  11. def VERSION_NAME = "A.2.6.5.9_20240423"
  12. def flag = "_inner_test"
  13. android {
  14. compileSdkVersion 30
  15. buildToolsVersion '30.0.3'
  16. namespace 'com.aispeech.nativedemo'
  17. defaultConfig {
  18. applicationId "com.aispeech.nativedemo"
  19. minSdkVersion 26
  20. targetSdkVersion 30
  21. versionCode VERSION_CODE
  22. versionName VERSION_NAME
  23. flavorDimensions "defalut"
  24. sourceSets {
  25. main { //这个配置是必须的,如果你的so文件放在了libs/armeabi/下,则下面srcDir = libs即可
  26. jniLibs.srcDirs = ['libs']
  27. }
  28. }
  29. ndk {
  30. // 设置支持的SO库架构
  31. abiFilters 'armeabi-v7a', 'arm64-v8a'//, 'x86', , 'x86_64'
  32. }
  33. multiDexEnabled true
  34. vectorDrawables.useSupportLibrary = true
  35. buildConfigField("String", "ACCESS_KEY", ACCESS_KEY)
  36. buildConfigField("String", "USER_SAVE_VALUE_KEY", USER_SAVE_VALUE_KEY)
  37. buildConfigField("String", "USER_SAVE_KEY", USER_SAVE_KEY)
  38. buildConfigField("String", "USER_SAVE_DES_IV", USER_SAVE_DES_IV)
  39. buildConfigField("int", "ASR_MODE", "0")
  40. buildConfigField("int", "DB_VERSION", "1")
  41. manifestPlaceholders = [qqappid: "1108812179", APP_NAME: "@string/app_name", APP_LOGO: "@drawable/logo"]
  42. }
  43. signingConfigs {
  44. release {
  45. storeFile file('../keystore/release.keystore')
  46. storePassword 'speech888'
  47. keyAlias 'aios'
  48. keyPassword 'speech888'
  49. }
  50. debug {
  51. storeFile file('../keystore/debug.keystore')
  52. }
  53. }
  54. buildTypes {
  55. release {
  56. minifyEnabled false
  57. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  58. signingConfig signingConfigs.release
  59. ndk {
  60. // abiFilters "armeabi-v7a", "arm64-v8a", "x86", "x86_64"
  61. abiFilters "armeabi-v7a", "arm64-v8a"
  62. }
  63. manifestPlaceholders = [APP_LOGO: "@drawable/logo"]
  64. }
  65. debug {
  66. minifyEnabled false
  67. zipAlignEnabled true
  68. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  69. signingConfig signingConfigs.debug
  70. versionNameSuffix flag
  71. manifestPlaceholders = [APP_LOGO: "@drawable/logo_debug", APP_NAME: "@string/app_name_debug"]
  72. }
  73. }
  74. productFlavors {
  75. portraitH5 {
  76. buildConfigField("int", "ASR_MODE", "0")
  77. versionName VERSION_NAME
  78. }
  79. ltLandscape {
  80. //manifestPlaceholders = [APP_LOGO: "@drawable/lt_logo", APP_NAME: "@string/app_name"]
  81. buildConfigField("String", "AD_ID", '"ltLandscape_ID"')
  82. buildConfigField("int", "ASR_MODE", "1")
  83. versionName VERSION_NAME_LT
  84. }
  85. window {
  86. versionName VERSION_NAME
  87. }
  88. }
  89. externalNativeBuild {
  90. ndkBuild {
  91. path file('src/main/jni/Android.mk')
  92. }
  93. }
  94. compileOptions {
  95. sourceCompatibility JavaVersion.VERSION_1_8
  96. targetCompatibility JavaVersion.VERSION_1_8
  97. }
  98. lintOptions {
  99. checkReleaseBuilds false
  100. // Or, if you prefer, you can continue to check for errors in release builds,
  101. // but continue the build even when errors are found:
  102. abortOnError false
  103. }
  104. packagingOptions {
  105. exclude 'META-INF/DEPENDENCIES'
  106. pickFirst 'lib/arm64-v8a/libc++_shared.so'
  107. pickFirst 'lib/armeabi-v7a/libc++_shared.so'
  108. }
  109. viewBinding {
  110. enabled = true
  111. }
  112. }
  113. configurations {
  114. all {
  115. exclude group: 'xml-apis', module: 'xml-apis'
  116. }
  117. }
  118. //repositories {
  119. // flatDir {
  120. // dirs 'libs', '../test/libs'//this way we can find the .aar file in libs folder
  121. // }
  122. //}
  123. dependencies {
  124. implementation fileTree(dir: 'libs', excludes: ['framework.jar', 'fastjson-1.2.21.jar', 'rt.jar', 'lefaceSDK-multiatt-0814_enc.aar'], include: ['*.jar', '*.aar'])
  125. implementation fileTree(dir: '../test/libs', excludes: ['framework.jar'], include: ['*.jar', '*.aar'])
  126. //noinspection GradleCompatible
  127. implementation 'androidx.appcompat:appcompat:1.3.1'
  128. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  129. implementation 'com.google.code.gson:gson:2.8.6'
  130. implementation 'com.google.android.material:material:1.4.0'
  131. implementation group: 'org.java-websocket', name: 'Java-WebSocket', version: '1.5.1'
  132. implementation("io.minio:minio:8.2.2") {
  133. exclude group: 'com.squareup.okhttp3'
  134. }
  135. //implementation files ('C:/Users/唐明杰/.jdks/corretto-1.8.0_362/jre/lib/rt.jar')
  136. //Rxjava
  137. implementation 'io.reactivex.rxjava2:rxjava:2.2.5'
  138. implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
  139. // H5原生通信
  140. //api 'com.github.wendux:DSBridge-Android:3.0.0'
  141. //支持腾讯x5浏览器内核
  142. //api 'com.github.wendux:DSBridge-Android:x5-3.0-SNAPSHOT'
  143. implementation project(path: ':test')
  144. api project(path: ':dsbridge')
  145. api project(path: ':base')
  146. implementation project(path: ':andServer')
  147. implementation 'androidx.core:core-ktx:1.3.1'
  148. implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.0'
  149. implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
  150. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  151. implementation 'org.apache.xmlrpc:xmlrpc-client:3.1.3'
  152. //implementation 'com.github.yangjie10930:EpMedia:v1.0.1'
  153. implementation 'com.writingminds:FFmpegAndroid:0.3.2'
  154. implementation 'com.readystatesoftware.chuck:library:1.1.0'
  155. implementation 'com.google.zxing:core:3.3.3'
  156. // 调试助手
  157. debugImplementation "io.github.didi.dokit:dokitx:3.5.0.1"
  158. releaseImplementation "io.github.didi.dokit:dokitx-no-op:3.5.0.1"
  159. //implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.8.0'
  160. // leakCanary
  161. //debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.7'
  162. implementation files('libs/hdmiV1_0.jar')
  163. // implementation files('libs/rt.jar') {
  164. // }
  165. compileOnly files('libs/framework.jar')
  166. // implementation 'org.pytorch:pytorch_android:1.8.0'
  167. // implementation 'org.pytorch:pytorch_android_torchvision:1.8.0'
  168. // //implementation project(':api')
  169. // //annotationProcessor project(':processor')
  170. // //implementation 'javax.activation:javax.activation-api:1.2.0'
  171. // implementation 'com.yanzhenjie.andserver:api:2.1.9'
  172. // kapt 'com.yanzhenjie.andserver:processor:2.1.9'
  173. //
  174. // implementation 'com.google.android.material:material:1.1.0'
  175. // implementation 'com.android.support:appcompat-v7:28.0.0'
  176. // //implementation 'com.android.support:appcompat-v7:28.0.0'
  177. //
  178. // implementation 'org.apache.commons:commons-lang3:3.9'
  179. // implementation 'org.apache.commons:commons-collections4:4.4'
  180. // //implementation "ch.acra:acra-notification:5.1.3"
  181. //
  182. // implementation 'com.yanzhenjie:loading:1.0.0'
  183. // api 'com.alibaba:fastjson:1.1.71.android'
  184. //
  185. // api files('libs/rt.jar') {
  186. // }
  187. // api files('libs/lefaceSDK-multiatt-0814_enc.aar') {
  188. // }
  189. //
  190. // implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  191. // implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
  192. }
  193. //configurations.all {
  194. // resolutionStrategy {
  195. // force "androidx.exifinterface:exifinterface:1.3.2"
  196. // }
  197. //}