Created
September 3, 2017 05:11
-
-
Save whalemare/2d45eb1b99677c32ab61c0cd3bc71edf to your computer and use it in GitHub Desktop.
Flavors setup
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
apply plugin: 'com.android.application' | |
apply plugin: 'kotlin-android' | |
apply plugin: 'kotlin-kapt' | |
android { | |
compileSdkVersion 26 | |
buildToolsVersion "26.0.0" | |
defaultConfig { | |
applicationId "ru.whalemare.app" | |
minSdkVersion 16 | |
targetSdkVersion 21 | |
versionCode 24 | |
versionName "0.9.6" | |
vectorDrawables.useSupportLibrary true | |
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
project.ext.set("archivesBaseName", "app-v" + versionName) | |
} | |
buildTypes { | |
debug { | |
minifyEnabled true | |
shrinkResources true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
testProguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguardTest-rules.pro' | |
} | |
release { | |
minifyEnabled true | |
shrinkResources true | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
signingConfigs { | |
release { | |
storeFile file("../keystore.jks") | |
storePassword 'abc' | |
keyAlias "whalemare" | |
keyPassword 'abc' | |
} | |
debug { | |
storeFile file("../keystore.jks") | |
storePassword 'abc' | |
keyAlias "whalemare" | |
keyPassword 'abc' | |
} | |
} | |
productFlavors { | |
prod { | |
buildConfigField "String", "SERVER_END_POINT", '"https://end-point.ru/v1/"' | |
} | |
dev { | |
buildConfigField "String", "SERVER_END_POINT", '"http://end-point.ru/v1/"' | |
} | |
} | |
} | |
dependencies { | |
compile fileTree(include: ['*.jar'], dir: 'libs') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment