| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- apply plugin: 'com.android.application'
- android {
- signingConfigs {
- bBengConfig {
- keyAlias 'bBeng'
- keyPassword 'yuyekeji'
- storeFile file('D:/TPlat/Android-2.9.8/bBeng-2.9.8/bBeng.jks')
- storePassword 'yuyekeji'
- }
- }
- compileSdkVersion 28
- buildToolsVersion '28.0.3'
- defaultConfig {
- // applicationId "com.HBuilder.UniPlugin"
- minSdkVersion 19
- targetSdkVersion 26
- //建议此属性值设为21 io.dcloud.PandoraEntry 作为apk入口时 必须设置 targetSDKVersion>=21 沉浸式才生效
- versionCode 21012601
- versionName "2.1.4"
- multiDexEnabled true
- ndk {
- abiFilters 'x86', 'armeabi-v7a'
- }
- }
- buildTypes {
- release {
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
- signingConfig signingConfigs.bBengConfig
- }
- }
- //使用uniapp时,需复制下面代码
- /*代码开始*/
- aaptOptions {
- additionalParameters '--auto-add-overlay'
- //noCompress 'foo', 'bar'
- ignoreAssetsPattern "!.svn:!.git:.*:!CVS:!thumbs.db:!picasa.ini:!*.scc:*~"
- }
- /*代码结束*/
- //多渠道打包
- flavorDimensions "version"
- productFlavors {
- //哔蹦渠道
- BBeng {
- //修改包名
- applicationId "com.YuyeTech.BBeng"
- //修改app名字,string资源下不能包含"app_name"
- resValue "string", "app_name", "哔蹦"
- dimension "version"
- }
- }
- /**
- * 打包导出apk时候的名字,或者各种服务的key配置等等
- * */
- applicationVariants.all { variant ->
- variant.outputs.all {
- outputFileName = "${variant.flavorName}_v${variant.versionName}_${releaseTime()}.apk"
- }
- }
- }
- //打包时间
- def releaseTime() {
- return new Date().format("yyyy-MM-dd", TimeZone.getTimeZone("UTC"))
- }
- repositories {
- flatDir {
- dirs 'libs'
- }
- }
- dependencies {
- implementation fileTree(include: ['*.jar'], dir: 'libs')
- implementation fileTree(include: ['*.aar'], dir: 'libs')
- implementation 'com.android.support:support-v4:28.0.0'
- implementation 'com.android.support:appcompat-v7:28.0.0'
- /*uniapp所需库-----------------------开始*/
- implementation 'com.android.support:recyclerview-v7:28.0.0'
- implementation 'com.facebook.fresco:fresco:1.13.0'
- implementation 'com.facebook.fresco:animated-gif:1.13.0'
- /*uniapp所需库-----------------------结束*/
- // 基座需要,必须添加
- implementation 'com.github.bumptech.glide:glide:4.9.0'
- implementation 'com.alibaba:fastjson:1.1.46.android'
- // 添加uni-app插件
- implementation project(':uniplugin_component')
- implementation project(':uniplugin_module')
- implementation project(':uniplugin_richalert')
- }
|