Last active
July 2, 2019 15:21
-
-
Save danySam/4f78eba79d9fb89204c54feedd84a11e to your computer and use it in GitHub Desktop.
Gradle Files
This file contains 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: 'io.fabric' | |
def cmdVersion = 'git rev-list --all --count' | |
def cmdTag = 'git describe --tags' | |
def gitVersion = cmdVersion.execute().text.trim().toInteger() | |
def gitTag = cmdTag.execute().text.trim().toString() | |
def _versionName = gitTag + "_" + gitVersion | |
def keystorePropertiesFile = rootProject.file("keystore.properties") | |
def keystoreProperties = new Properties() | |
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) | |
android { | |
signingConfigs { | |
global { | |
keyAlias keystoreProperties['keyAlias'] | |
keyPassword keystoreProperties['keyPassword'] | |
storeFile file(keystoreProperties['storeFile']) | |
storePassword keystoreProperties['storePassword'] | |
} | |
} | |
compileSdkVersion 27 | |
defaultConfig { | |
applicationId "net.danysam.?" | |
minSdkVersion 21 | |
targetSdkVersion 27 | |
versionCode gitVersion | |
versionName _versionName | |
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
multiDexEnabled true | |
} | |
buildTypes { | |
release { | |
versionNameSuffix '-RELEASE' | |
minifyEnabled true | |
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | |
} | |
debug { | |
minifyEnabled false | |
} | |
} | |
productFlavors { | |
flavorDimensions "region" | |
global { | |
dimension "region" | |
versionNameSuffix "-global" | |
signingConfig signingConfigs.global | |
} | |
} | |
compileOptions { | |
sourceCompatibility JavaVersion.VERSION_1_8 | |
targetCompatibility JavaVersion.VERSION_1_8 | |
} | |
dexOptions { | |
preDexLibraries true | |
maxProcessCount 16 | |
javaMaxHeapSize "4096" | |
} | |
} | |
dependencies { | |
implementation fileTree(include: ['*.jar'], dir: 'libs') | |
implementation 'com.android.support:appcompat-v7:27.1.1' | |
implementation 'com.android.support:exifinterface:27.1.1' | |
implementation 'com.android.support:design:27.1.1' | |
implementation 'com.android.support:cardview-v7:27.1.1' | |
implementation 'com.android.support:recyclerview-v7:27.1.1' | |
implementation 'com.android.support:support-v4:27.1.1' | |
implementation 'com.android.support:customtabs:27.1.1' | |
implementation 'com.android.support.constraint:constraint-layout:1.1.3' | |
implementation 'com.squareup.retrofit2:retrofit:2.4.0' | |
implementation 'com.squareup.retrofit2:converter-gson:2.4.0' | |
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.4.0' | |
implementation 'com.squareup.okhttp3:logging-interceptor:3.10.0' | |
implementation 'com.squareup.picasso:picasso:2.71828' | |
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2' | |
implementation 'io.reactivex.rxjava2:rxjava:2.1.12' | |
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.15' | |
implementation 'com.daimajia.swipelayout:library:1.2.0@aar' | |
implementation 'com.wunderlist:sliding-layer:1.2.5' | |
implementation 'com.pusher:pusher-java-client:1.6.0' | |
implementation 'io.branch.sdk.android:library:2.15.0' | |
implementation 'com.github.myinnos:AlphabetIndex-Fast-Scroll-RecyclerView:1.0.8' | |
implementation 'com.r0adkll:slidableactivity:2.0.6' | |
implementation 'com.amazonaws:aws-android-sdk-core:2.6.15' | |
implementation 'com.amazonaws:aws-android-sdk-s3:2.6.15' | |
implementation 'com.amazonaws:aws-android-sdk-ddb:2.6.15' | |
implementation 'com.github.yalantis:ucrop:2.2.1' | |
implementation 'com.google.firebase:firebase-core:16.0.7' | |
implementation 'com.google.firebase:firebase-messaging:17.3.4' | |
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9' | |
implementation 'com.google.android.gms:play-services-places:16.0.0' | |
implementation 'android.arch.lifecycle:extensions:1.1.1' | |
implementation 'android.arch.persistence.room:runtime:1.1.1' | |
implementation 'android.arch.lifecycle:common-java8:1.1.1' | |
implementation 'android.arch.persistence.room:rxjava2:1.1.1' | |
implementation 'android.arch.lifecycle:reactivestreams:1.1.1' | |
implementation 'android.arch.paging:runtime:1.0.1' | |
implementation 'com.google.android.gms:play-services-maps:16.1.0' | |
implementation 'com.zendesk:support:2.0.0' | |
annotationProcessor "android.arch.persistence.room:compiler:1.1.1" | |
testImplementation 'junit:junit:4.12' | |
androidTestImplementation('com.android.support.test.espresso:espresso-core:3.0.1', { | |
exclude group: 'com.android.support', module: 'support-annotations' | |
}) | |
} | |
apply plugin: 'com.google.gms.google-services' |
This file contains 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
buildscript { | |
repositories { | |
google() | |
jcenter() | |
maven { url 'https://maven.fabric.io/public' } | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:3.3.2' | |
classpath 'com.google.gms:google-services:4.2.0' | |
classpath 'com.google.firebase:firebase-plugins:1.1.5' | |
classpath 'io.fabric.tools:gradle:1.28.1' | |
} | |
} | |
allprojects { | |
repositories { | |
google() | |
jcenter() | |
maven { url "https://jitpack.io" } | |
maven { url "https://zendesk.jfrog.io/zendesk/repo" } | |
maven { url 'https://maven.google.com/' } | |
} | |
} | |
task clean(type: Delete) { | |
delete rootProject.buildDir | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment