zoukankan      html  css  js  c++  java
  • 多渠道打包的时候去掉不需要的组合

    android {
        compileSdkVersion 27
        buildToolsVersion '28.0.3'
    
        packagingOptions {
          ......
        }
    
        defaultConfig {
        ......
        }
    
        // 多渠道 的不同配置
        productFlavors {
            ......
        }
    
     
        buildTypes {
    
            release {
                minifyEnabled true
    } debug { } } variantFilter{ def names = it.flavors*.name if(names.contains("develop") && it.buildType.name=='release'){ setIgnore(true) } } 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 } compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } configurations { // all*.exclude group: 'com.android.support', module: 'support-v4' all*.exclude group: 'com.android.support', module: 'multidex' } }

    这个例子就是去掉渠道是'develop'的release版本




  • 相关阅读:
    总结:多校1
    简易数论练习
    2017 多校1
    简易数论函数变换学习
    petrozavodsk1
    Permutacja
    图片上传阿里云oss 数据存入redis List
    tp5实现月统计数据
    es6 新特性
    es6 新特性总结
  • 原文地址:https://www.cnblogs.com/gelandesprung/p/10143160.html
Copyright © 2011-2022 走看看