build.gradle 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. android {
  5. signingConfigs {
  6. ampe {
  7. storeFile file('D:\\航汇-人脸机sdk\\hh-face.jks')
  8. storePassword 'Nqj##117521'
  9. keyAlias 'hemile'
  10. keyPassword 'Nqj##117521'
  11. }
  12. }
  13. compileSdk 33
  14. defaultConfig {
  15. applicationId "com.hh.arome"
  16. minSdk 21
  17. targetSdk 33
  18. versionCode 1
  19. versionName "1.0.0"
  20. multiDexEnabled true
  21. ndk {
  22. abiFilters "armeabi-v7a" // 指定要ndk需要兼容的架构(这样其他依赖包里mips,x86,armeabi,arm-v8之类的so会被过滤掉)
  23. }
  24. testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
  25. }
  26. buildTypes {
  27. release {
  28. minifyEnabled false
  29. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  30. signingConfig signingConfigs.ampe
  31. applicationVariants.all { variant ->
  32. variant.outputs.all {
  33. outputFileName = "k8_v${variant.versionName}.apk"
  34. }
  35. }
  36. }
  37. debug {
  38. minifyEnabled false
  39. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  40. signingConfig signingConfigs.ampe
  41. }
  42. }
  43. compileOptions {
  44. sourceCompatibility JavaVersion.VERSION_1_8
  45. targetCompatibility JavaVersion.VERSION_1_8
  46. }
  47. }
  48. dependencies {
  49. implementation fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
  50. implementation 'androidx.appcompat:appcompat:1.3.0'
  51. implementation 'com.google.android.material:material:1.4.0'
  52. implementation 'androidx.multidex:multidex:2.0.1'
  53. implementation 'org.xutils:xutils:3.9.0'
  54. implementation 'com.alibaba:fastjson:1.1.45@jar'
  55. }