国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學(xué)院 > 開發(fā)設(shè)計 > 正文

安卓自定義打包生成的文件名字

2019-11-08 00:26:40
字體:
供稿:網(wǎng)友

在項目主module下面添加下面的代碼,紅色部分代碼

apply plugin: 'com.android.application'apply plugin: 'com.neenbedankt.android-apt'def bugtagsConfig = rootPRoject.ext.bugtagsConfig;android {    // for bugtags    useLibrary 'org.apache.http.legacy'    compileSdkVersion COMPILE_SDK_VERSION    buildToolsVersion BUILD_TOOLS_VERSION    dataBinding {        enabled = true    }    defaultConfig {        applicationId "com.mem.MacaoLife"        minSdkVersion MIN_SDK_VERSION        targetSdkVersion TARGET_SDK_VERSION        versionCode APP_VERSION_CODE        versionName APP_VERSION_NAME        //是否禁用外賣模塊        buildConfigField "boolean", "DIABLE_TAKEAWAY", "true"        //bugtags app key信息        buildConfigField "String", "BUGTAGS_APP_KEY", "/"${bugtagsConfig.BUGTAGS_APP_KEY}/""        ndk {            // 設(shè)置支持的 SO 庫構(gòu)架            abiFilters 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64', 'mWord "123456"            keyAlias "demo"            keyPassword "123456"        }    }    buildTypes {        debug {            signingConfig signingConfigs.debug        }        release {            minifyEnabled false            signingConfig signingConfigs.release            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'            applicationVariants.all { variant ->                variant.outputs.each { output ->                    def outputFile = output.outputFile                    if (outputFile != null && outputFile.name.endsWith('.apk')) {                        // 輸出apk名稱為release_v1.0_2015-01-15.apk                        def fileName = "release_v${defaultConfig.versionName}_${releaseTime()}.apk"                        output.outputFile = new File(outputFile.parent, fileName)                    }                }            }        }    }    lintOptions {        checkReleaseBuilds false        // Or, if you prefer, you can continue to check for errors in release builds,        // but continue the build even when errors are found:        abortOnError false    }}def releaseTime() {    return new Date().format("yyyy-MM-dd-hh-mm", TimeZone.getDefault())}//應(yīng)用 Bugtags 插件apply plugin: 'com.bugtags.library.plugin'//Bugtags 插件配置bugtags {    //自動上傳符號表功能配置,如果需要根據(jù) build varint 配置,請參考幫助中心->符號表->Android 符號表->配置自動上傳符號表    appKey bugtagsConfig.BUGTAGS_APP_KEY  //這里是你的 appKey    appSecret bugtagsConfig.BUGTAGS_APP_SECRET    //這里是你的 appSecret,管理員在設(shè)置頁可以查看    mappingUploadEnabled true}dependencies {    apt 'org.parceler:parceler:1.1.6'    compile fileTree(include: ['*.jar'], dir: 'libs')    compile project(':lib')    compile project(':thirdsdk:baiduma


發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 白朗县| 定结县| 龙川县| 克山县| 洛扎县| 汉沽区| 五台县| 东方市| 洞口县| 偏关县| 辽阳县| 宁乡县| 岳普湖县| 恭城| 于都县| 南乐县| 金门县| 泸溪县| 忻州市| 板桥市| 东丽区| 无极县| 呼图壁县| 陆良县| 南昌县| 绍兴市| 洛南县| 灌南县| 辽阳县| 潞城市| 新丰县| 钟祥市| 西华县| 海阳市| 山阴县| 佛坪县| 尉氏县| 民乐县| 东乌珠穆沁旗| 潼南县| 韩城市|