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.

91 lines
2.9 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 21
  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. }
  15. compileOptions {
  16. sourceCompatibility JavaVersion.VERSION_1_8
  17. targetCompatibility JavaVersion.VERSION_1_8
  18. }
  19. }
  20. signingConfigs {
  21. config {
  22. keyAlias 'key0'
  23. keyPassword '123456'
  24. storeFile file('test.jks')
  25. storePassword '123456'
  26. v1SigningEnabled true
  27. v2SigningEnabled true
  28. keyAlias 'test.keystore'
  29. keyPassword '666666'
  30. storeFile file('test.keystore')
  31. storePassword '666666'
  32. v1SigningEnabled true
  33. v2SigningEnabled true
  34. }
  35. }
  36. buildTypes {
  37. release {
  38. signingConfig signingConfigs.config
  39. zipAlignEnabled true
  40. minifyEnabled true
  41. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  42. }
  43. debug {
  44. signingConfig signingConfigs.config
  45. // zipAlignEnabled true
  46. // minifyEnabled true
  47. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  48. }
  49. }
  50. //使用uniapp时,需复制下面代码
  51. /*代码开始*/
  52. aaptOptions {
  53. additionalParameters '--auto-add-overlay'
  54. //noCompress 'foo', 'bar'
  55. ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
  56. }
  57. /*代码结束*/
  58. }
  59. repositories {
  60. flatDir {
  61. dirs 'libs'
  62. }
  63. }
  64. dependencies {
  65. implementation fileTree(dir: 'libs', include: ['*.jar'])
  66. implementation fileTree(dir: 'libs', include: ['*.aar'])
  67. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  68. implementation 'androidx.appcompat:appcompat:1.0.0'
  69. /*uniapp所需库-----------------------开始*/
  70. implementation 'androidx.recyclerview:recyclerview:1.0.0'
  71. implementation 'com.facebook.fresco:fresco:1.13.0'
  72. implementation "com.facebook.fresco:animated-gif:1.13.0"
  73. /*uniapp所需库-----------------------结束*/
  74. // 基座需要,必须添加
  75. implementation 'com.github.bumptech.glide:glide:4.9.0'
  76. implementation 'com.alibaba:fastjson:1.1.46.android'
  77. // 添加uni-app插件
  78. implementation project(':zmt_module')
  79. implementation project(':uniplugin_component')
  80. implementation project(':uniplugin_module')
  81. implementation project(':uniplugin_module_ox')
  82. implementation project(':uniplugin_richalert')
  83. }