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.

122 lines
4.0 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 28 //建议此属性值设为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. minSdkVersion rootProject.ext.minSdkVersion
  21. targetSdkVersion rootProject.ext.targetSdkVersion
  22. versionCode rootProject.ext.versionCode
  23. versionName rootProject.ext.versionName
  24. renderscriptTargetApi = 19
  25. renderscriptSupportModeEnabled = true
  26. multiDexEnabled = true
  27. ndk {
  28. abiFilters rootProject.ext.ndkAbi
  29. }
  30. }
  31. packagingOptions {
  32. pickFirst 'lib/arm64-v8a/libc++_shared.so'
  33. pickFirst 'lib/armeabi-v7a/libc++_shared.so'
  34. }
  35. signingConfigs {
  36. config {
  37. keyAlias 'key0'
  38. keyPassword '123456'
  39. storeFile file('test.jks')
  40. storePassword '123456'
  41. v1SigningEnabled true
  42. v2SigningEnabled true
  43. keyAlias 'test.keystore'
  44. keyPassword '666666'
  45. storeFile file('test.keystore')
  46. storePassword '666666'
  47. v1SigningEnabled true
  48. v2SigningEnabled true
  49. }
  50. }
  51. buildTypes {
  52. release {
  53. signingConfig signingConfigs.config
  54. zipAlignEnabled true
  55. minifyEnabled true
  56. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  57. }
  58. debug {
  59. signingConfig signingConfigs.config
  60. // zipAlignEnabled true
  61. // minifyEnabled true
  62. // proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
  63. }
  64. }
  65. //使用uniapp时,需复制下面代码
  66. /*代码开始*/
  67. aaptOptions {
  68. additionalParameters '--auto-add-overlay'
  69. //noCompress 'foo', 'bar'
  70. ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
  71. }
  72. /*代码结束*/
  73. }
  74. repositories {
  75. flatDir {
  76. dirs 'libs'
  77. }
  78. }
  79. dependencies {
  80. implementation fileTree(dir: 'libs', include: ['*.jar'])
  81. implementation fileTree(dir: 'libs', include: ['*.aar'])
  82. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  83. implementation 'androidx.appcompat:appcompat:1.0.0'
  84. /*uniapp所需库-----------------------开始*/
  85. implementation 'androidx.recyclerview:recyclerview:1.0.0'
  86. implementation 'com.facebook.fresco:fresco:1.13.0'
  87. implementation "com.facebook.fresco:animated-gif:1.13.0"
  88. /*uniapp所需库-----------------------结束*/
  89. // 基座需要,必须添加
  90. implementation 'com.github.bumptech.glide:glide:4.9.0'
  91. implementation 'com.alibaba:fastjson:1.1.46.android'
  92. // 添加uni-app插件
  93. implementation project(':zmt_module')
  94. implementation project(':uniplugin_component')
  95. implementation project(':uniplugin_module')
  96. implementation project(':uniplugin_module_ox')
  97. implementation project(':uniplugin_richalert')
  98. implementation project(':face_module')
  99. // implementation project(':new_module')
  100. implementation project(path: ':registerlibrary')
  101. implementation project(path: ':facelibrary')
  102. implementation project(path: ':gatelibrary')
  103. implementation project(path: ':uniplugin_module_TXLiveAVSDK')
  104. // compile fileTree(include: ['*.jar'], dir: 'libs')
  105. // compile fileTree(include: ['*.jar'], dir: 'src/main/jniLibs')
  106. }