零售收银终端CheckoutPad_ox_as
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

114 lines
3.6 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 30
  4. buildToolsVersion '30.0.3'
  5. defaultConfig {
  6. applicationId "net.ouxuan.checkoutpad"
  7. minSdkVersion 21
  8. targetSdkVersion 28 //建议此属性值设为21 io.dcloud.PandoraEntry 作为apk入口时 必须设置 targetSDKVersion>=21 沉浸式才生效
  9. versionCode 121
  10. versionName "1.2.1"
  11. multiDexEnabled true
  12. ndk {
  13. // abiFilters 'x86','armeabi-v7a'
  14. abiFilters "armeabi", "armeabi-v7a", "x86", "mips"
  15. }
  16. compileOptions {
  17. sourceCompatibility JavaVersion.VERSION_1_8
  18. targetCompatibility JavaVersion.VERSION_1_8
  19. }
  20. }
  21. signingConfigs {
  22. config {
  23. keyAlias 'key_checkpad'
  24. keyPassword '123456'
  25. storeFile file('signature/key_checkpad.jks')
  26. storePassword '123456'
  27. v1SigningEnabled true
  28. v2SigningEnabled true
  29. }
  30. }
  31. buildTypes {
  32. release {
  33. signingConfig signingConfigs.config
  34. // zipAlignEnabled false
  35. // minifyEnabled false
  36. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  37. }
  38. debug {
  39. signingConfig signingConfigs.config
  40. // zipAlignEnabled true
  41. // minifyEnabled true
  42. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  43. }
  44. }
  45. //使用uniapp时,需复制下面代码
  46. /*代码开始*/
  47. aaptOptions {
  48. additionalParameters '--auto-add-overlay'
  49. //noCompress 'foo', 'bar'
  50. ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
  51. }
  52. /*代码结束*/
  53. // 解决打包生成apk时出现的错误问题
  54. lintOptions{
  55. checkReleaseBuilds false
  56. abortOnError false
  57. }
  58. //解决uni和百度人脸SDK资源重复问题
  59. packagingOptions {
  60. exclude 'classes.dex'
  61. pickFirst 'lib/arm64-v8a/libc++_shared.so'
  62. pickFirst 'lib/armeabi-v7a/libc++_shared.so'
  63. }
  64. }
  65. repositories {
  66. flatDir {
  67. dirs 'libs'
  68. }
  69. }
  70. dependencies {
  71. implementation fileTree(dir: 'libs', include: ['*.jar'])
  72. implementation fileTree(dir: 'libs', include: ['*.aar'])
  73. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  74. implementation 'androidx.appcompat:appcompat:1.0.0'
  75. /*uniapp所需库-----------------------开始*/
  76. implementation 'androidx.recyclerview:recyclerview:1.0.0'
  77. implementation 'com.facebook.fresco:fresco:1.13.0'
  78. implementation "com.facebook.fresco:animated-gif:1.13.0"
  79. /*uniapp所需库-----------------------结束*/
  80. // 基座需要,必须添加
  81. implementation 'com.github.bumptech.glide:glide:4.9.0'
  82. // implementation 'com.alibaba:fastjson:1.1.46.android'
  83. implementation 'com.alibaba:fastjson:1.2.83'
  84. implementation 'androidx.webkit:webkit:1.3.0'
  85. implementation 'androidx.core:core:1.1.0'
  86. implementation "androidx.fragment:fragment:1.1.0"
  87. implementation 'androidx.appcompat:appcompat:1.1.0'
  88. //调试库leakcanary-debug模式下分析内存泄露
  89. // debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.12'
  90. // 添加uni-app插件
  91. implementation project(':uniplugin_component')
  92. implementation project(':uniplugin_module')
  93. implementation project(':uniplugin_richalert')
  94. implementation project(':uniplugin_padprinter') //Pad Printer
  95. // implementation project(':uniplugin_v4_ph')
  96. implementation project(':daemonlibrary')
  97. // implementation project(path: ':uniplugin_module_nanohttpd')
  98. }