Skip to content

Instantly share code, notes, and snippets.

@dmitrykolesnikovich
Created December 11, 2015 09:26
Show Gist options
  • Save dmitrykolesnikovich/f13fe9ffc5e000c04ca9 to your computer and use it in GitHub Desktop.
Save dmitrykolesnikovich/f13fe9ffc5e000c04ca9 to your computer and use it in GitHub Desktop.
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url "https://jitpack.io" }
}
}
apply plugin: 'com.android.application'
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url "https://jitpack.io" }
}
android {
compileSdkVersion 'Google Inc.:Google APIs:23'
buildToolsVersion '23.0.2'
defaultConfig {
applicationId "by.dinamominsk.fcdm1927"
minSdkVersion 14
targetSdkVersion 22
versionCode 7
versionName "1.0"
multiDexEnabled true
}
if (project.hasProperty("dinamo.properties")
&& file(project.property("dinamo.properties")).exists()) {
Properties props = new Properties()
props.load(new FileInputStream(file(project.property("dinamo.properties"))))
signingConfigs {
release {
storeFile file(props['keystore'])
storePassword props['keystore.password']
keyAlias props['keyAlias']
keyPassword props['keyPassword']
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
buildConfigField "boolean", "RELEASE_CONFIG", "true"
}
debugTest {
debuggable true
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// applicationIdSuffix '.test'
// versionNameSuffix '-test'
signingConfig signingConfigs.release
buildConfigField "boolean", "RELEASE_CONFIG", "true"
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
applicationIdSuffix '.debug'
versionNameSuffix '-debug'
buildConfigField "boolean", "RELEASE_CONFIG", "false"
}
}
} else {
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
buildConfigField "boolean", "RELEASE_CONFIG", "true"
}
debug {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
applicationIdSuffix '.debug'
versionNameSuffix '-debug'
buildConfigField "boolean", "RELEASE_CONFIG", "false"
}
}
}
productFlavors {
flavorTestServer {
buildConfigField "String", "BASE_URL", "\"http://tonal-mote-91513.appspot.com/restapi/v1/\""
//http://tonal-mote-91513.appspot.com/restapi/v1/
}
flavorReleaseServer {
buildConfigField "String", "BASE_URL", "\"http://dinamo-minsk.by/index.php/restapi/v1/\""
//dinamorest.abiatec.ru
}
}
applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFile = new File(
output.outputFile.parent,
output.outputFile.name.replace(".apk", "-${variant.versionCode}.apk"))
}
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile('de.keyboardsurfer.android.widget:crouton:1.8.5@aar') {
// exclusion is not necessary, but generally a good idea.
exclude group: 'com.google.android', module: 'support-v4'
}
compile('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
transitive = true;
}
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:cardview-v7:23.1.1'
compile 'com.google.android.gms:play-services-gcm:8.3.0'
compile 'com.google.android.gms:play-services-location:8.1.0'
compile 'com.google.android.gms:play-services-maps:8.3.0'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile 'com.google.code.gson:gson:2.3'
compile 'com.afollestad:material-dialogs:0.7.4.2'
compile 'com.balysv:material-ripple:1.0.1'
compile 'com.github.castorflex.smoothprogressbar:library-circular:1.0.2'
compile 'com.balysv.materialmenu:material-menu-toolbar:1.5.0'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3'
compile 'com.astuetz:pagerslidingtabstrip:1.0.1'
compile 'com.wrapp.floatlabelededittext:library:0.0.6'
compile 'com.squareup.retrofit:retrofit:1.9.0'
compile 'com.h6ah4i.android.widget.advrecyclerview:advrecyclerview:0.6.2'
compile 'com.github.machinarius:preferencefragment:0.1.1'
compile 'com.github.ksoichiro:android-observablescrollview:1.5.0'
compile 'com.squareup.okhttp:okhttp:2.6.0'
compile 'com.google.appengine:appengine-api-1.0-sdk:1.7.6'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment