Created
August 20, 2019 10:59
-
-
Save eyedroot/2917b7d4818a6ca44763406657e6ff8f to your computer and use it in GitHub Desktop.
안드로이드 개발 컴파일 빠르게
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| android { | |
| ... | |
| flavorDimensions "stage", "mode" | |
| productFlavors { | |
| dev { | |
| dimension "stage" | |
| versionCode 100 | |
| minSdkVersion 21 | |
| aaptOptions.cruncherEnabled = false | |
| resConfigs "ko", "xxxhdpi" | |
| } | |
| prd { | |
| dimension "stage" | |
| versionCode new Date().format('yyMMddHHmm').toInteger() | |
| } | |
| free { | |
| dimension "mode" | |
| applicationIdSuffix ".free" | |
| } | |
| paid { | |
| dimension "mode" | |
| applicationIdSuffix ".paid" | |
| } | |
| } | |
| splits { | |
| abi { | |
| enable true | |
| reset() | |
| include 'x86', 'x86_64', 'armeabi-v7a', 'arm64-v8a' | |
| universalApk false | |
| } | |
| } | |
| android.variantFilter { variant -> | |
| def buildName = variant.buildType.name; | |
| def flavorName = variant.getFlavors().get(0).name; | |
| if (flavorName == 'dev' && buildName == 'release' | |
| || flavorName == 'prd' && buildName == 'debug') { | |
| variant.setIgnore(true); | |
| } | |
| splits.abi.enable = (flavorName == 'prd'); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment