build.gradle 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.jakewharton.butterknife'
  3. android {
  4. compileSdkVersion 28
  5. buildToolsVersion '28.0.3'
  6. defaultConfig {
  7. applicationId "com.sxr.sdk.ble.keepfit.client"
  8. minSdkVersion 19
  9. targetSdkVersion 21 //建议此属性值设为21 io.dcloud.PandoraEntry 作为apk入口时 必须设置 targetSDKVersion>=21 沉浸式才生效
  10. versionCode 1
  11. versionName "1.0"
  12. multiDexEnabled true
  13. ndk {
  14. abiFilters 'x86','armeabi-v7a'
  15. }
  16. }
  17. android.applicationVariants.all { variants ->
  18. variants.outputs.all {
  19. outputFileName ="智慧新能源.apk"
  20. }
  21. }
  22. buildTypes {
  23. release {
  24. //在这里添加:
  25. lintOptions {
  26. checkReleaseBuilds false
  27. abortOnError false
  28. }
  29. minifyEnabled false
  30. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  31. }
  32. }
  33. //使用uniapp时,需复制下面代码
  34. /*代码开始*/
  35. aaptOptions {
  36. additionalParameters '--auto-add-overlay'
  37. //noCompress 'foo', 'bar'
  38. ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
  39. }
  40. compileOptions {
  41. sourceCompatibility = 1.8
  42. targetCompatibility = 1.8
  43. }
  44. /*代码结束*/
  45. }
  46. repositories {
  47. flatDir {
  48. dirs 'libs'
  49. }
  50. }
  51. dependencies {
  52. implementation fileTree(dir: 'libs', include: ['*.jar'])
  53. implementation fileTree(dir: 'libs', include: ['*.aar'])
  54. implementation fileTree(dir: 'libs', include: ['uniapp-v8-release.aar'])
  55. implementation fileTree(dir: 'libs', include: ['msa_mdid_1.0.13.aar'])
  56. implementation fileTree(dir: 'libs', include: ['lib.5plus.base-release.aar'])
  57. implementation fileTree(dir: 'libs', include: ['android-gif-drawable-release@1.2.17.aar'])
  58. implementation "com.android.support:support-v4:28.0.0"
  59. implementation "com.android.support:appcompat-v7:28.0.0"
  60. /*uniapp所需库-----------------------开始*/
  61. implementation 'com.android.support:recyclerview-v7:28.0.0'
  62. implementation 'com.facebook.fresco:fresco:1.13.0'
  63. implementation "com.facebook.fresco:animated-gif:1.13.0"
  64. /*uniapp所需库-----------------------结束*/
  65. // 基座需要,必须添加
  66. implementation 'com.github.bumptech.glide:glide:4.9.0'
  67. implementation 'com.alibaba:fastjson:1.1.46.android'
  68. // 添加uni-app插件
  69. implementation project(':uniplugin_module')
  70. }