Giter Site home page Giter Site logo

flavordemo's Introduction

FlavorDemo

目录
一、项目宗旨
二、已有章节
三、后续章节
四、如何使用该项目
五、其他项目推荐
六、作者简介

一、项目宗旨

本项目用于服务 GradleStudy 讲解多渠道包的一些知识。

1、博文讲解可移步至以下两个地方:

CSDN: Android Gradle

掘金:猛猛的小盆友

2、代码:

github: GradleStudy

二、已有章节

1、buildTypes

2、defaultConfig

3、productFlavors

4、风味包配置

5、sourceSets

6、lintOptions

7、splits

三、后续章节

  • dexOptions
  • externalNativeBuild
  • aaptOptions
  • adbOptions
  • packagingOptions
  • compileOptions
  • dataBinding
  • signingConfigs
  • testOptions

四、如何使用该项目

  1. 打开根目录下的 settings.gradle 文件

  2. 修改下面这段代码

// xxx 即我们想运行的 gradle 配置
// 例如:我们想运行 lintOptions 的配置,此处的 xxx 替换为 zinc_lintOptions
project(':app').buildFileName = 'xxx.gradle'

五、其他项目推荐

1、Android 高级UI

简介:分享Android中UI的一些知识和应用

项目地址:UI2018

2、JRecycleView

简介:简单的让RecycleView更有趣

项目地址:JRecycleView

3、JPermission

简介:Android(安卓)基于注解的6.0权限动态申请

项目地址:JPermission

六、作者简介

1、个人博客

掘金:https://juejin.im/user/5c3033ef51882524ec3a88ba/posts

csdn:https://blog.csdn.net/weixin_37625173

2、赞赏

如果觉得博客对您有所帮助或启发,赞赏下吧。小盆友会写更多的优质文章与大家分享

flavordemo's People

Contributors

zincpower avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

flavordemo's Issues

App & library has multi flavorDimensions & name how pass build ?

Dear Sir

if

flavorDimensions('abi')

change to

flavorDimensions('abi', 'version', 'environment')

productFlavors {
    x86 {
        dimension 'abi'
    }

    armV7 {
        dimension 'abi'
    }

    enterprise {
        dimension "version"
        
    }
    lite {
        dimension "version"
         
    }
    dev {
        dimension "environment"
       
    }
    sit {
        dimension "environment"
       
    }
    prod {
        dimension "environment"
        
    }
}

and  

flavor_x86

https://github.com/zincPower/FlavorDemo/blob/d2ad1426d164bf7f72ebf6b07d6d8c66d22e6d72/flavor_x86/build.gradle#L25

change to  

    flavorDimensions('abi' )
// 创建产品风味
productFlavors {


    pro {
        dimension 'abi'
    }

    free{
        dimension 'abi'
    }
}


i add   matchingFallbacks  &  missingDimensionStrategy still build fail 

how set it ?

THX

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.