uni_android_plugin_project
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.

106 lines
3.4 KiB

  1. apply plugin: 'com.android.application'
  2. android {
  3. compileSdkVersion 29
  4. buildToolsVersion '28.0.3'
  5. defaultConfig {
  6. applicationId "com.android.UniPlugin"
  7. minSdkVersion 23
  8. targetSdkVersion 26 //建议此属性值设为21 io.dcloud.PandoraEntry 作为apk入口时 必须设置 targetSDKVersion>=21 沉浸式才生效
  9. versionCode 1
  10. versionName "1.0"
  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. packagingOptions {
  22. pickFirst 'lib/arm64-v8a/libc++_shared.so'
  23. pickFirst 'lib/armeabi-v7a/libc++_shared.so'
  24. }
  25. signingConfigs {
  26. config {
  27. keyAlias 'key0'
  28. keyPassword '123456'
  29. storeFile file('test.jks')
  30. storePassword '123456'
  31. v1SigningEnabled true
  32. v2SigningEnabled true
  33. keyAlias 'test.keystore'
  34. keyPassword '666666'
  35. storeFile file('test.keystore')
  36. storePassword '666666'
  37. v1SigningEnabled true
  38. v2SigningEnabled true
  39. }
  40. }
  41. buildTypes {
  42. release {
  43. signingConfig signingConfigs.config
  44. zipAlignEnabled true
  45. minifyEnabled true
  46. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  47. }
  48. debug {
  49. signingConfig signingConfigs.config
  50. // zipAlignEnabled true
  51. // minifyEnabled true
  52. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  53. }
  54. }
  55. //使用uniapp时,需复制下面代码
  56. /*代码开始*/
  57. aaptOptions {
  58. additionalParameters '--auto-add-overlay'
  59. //noCompress 'foo', 'bar'
  60. ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
  61. }
  62. /*代码结束*/
  63. }
  64. repositories {
  65. flatDir {
  66. dirs 'libs'
  67. }
  68. }
  69. dependencies {
  70. implementation fileTree(dir: 'libs', include: ['*.jar'])
  71. implementation fileTree(dir: 'libs', include: ['*.aar'])
  72. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  73. implementation 'androidx.appcompat:appcompat:1.0.0'
  74. /*uniapp所需库-----------------------开始*/
  75. implementation 'androidx.recyclerview:recyclerview:1.0.0'
  76. implementation 'com.facebook.fresco:fresco:1.13.0'
  77. implementation "com.facebook.fresco:animated-gif:1.13.0"
  78. /*uniapp所需库-----------------------结束*/
  79. // 基座需要,必须添加
  80. implementation 'com.github.bumptech.glide:glide:4.9.0'
  81. implementation 'com.alibaba:fastjson:1.1.46.android'
  82. // 添加uni-app插件
  83. implementation project(':zmt_module')
  84. implementation project(':uniplugin_component')
  85. implementation project(':uniplugin_module')
  86. implementation project(':uniplugin_module_ox')
  87. implementation project(':uniplugin_richalert')
  88. implementation project(':face_module')
  89. // implementation project(':new_module')
  90. implementation project(path: ':registerlibrary')
  91. implementation project(path: ':facelibrary')
  92. implementation project(path: ':gatelibrary')
  93. }