Skip to content

Instantly share code, notes, and snippets.

@guodong1111
Created September 20, 2017 07:19
Show Gist options
  • Save guodong1111/b549dec2957bed1d7fff673edd97754e to your computer and use it in GitHub Desktop.
Save guodong1111/b549dec2957bed1d7fff673edd97754e to your computer and use it in GitHub Desktop.
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
sourceSets.main {
jniLibs.srcDir 'libs'
jni.srcDirs = [] //disable automatic ndk-build call
}
defaultConfig {
applicationId "com.gogomaper.meat"
minSdkVersion 21
targetSdkVersion 25
versionCode 36
versionName "1.9.2.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
renderscriptTargetApi 18
renderscriptSupportModeEnabled true
}
signingConfigs {
release {
storeFile file("gogomaper.jks")
storePassword "gogomaper"
keyAlias "meat"
keyPassword "meat2017"
}
}
buildTypes {
release {
minifyEnabled true
signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
//APK name
applicationVariants.all { variant ->
variant.outputs.each { output ->
output.outputFile = new File(
output.outputFile.parent,
output.outputFile.name.replace(".apk", "-${variant.versionName}.apk"))
}
}
dexOptions {
javaMaxHeapSize "4g"
}
productFlavors {
develop {
// minSdkVersion 25
}
product {
}
}
compileOptions {
incremental false
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/ASL2.0'
}
configurations.all { //Resolve the library version conflict
resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.0'
}
}
buildscript {
repositories {
maven {
url 'https://maven.fabric.io/public'
}
mavenCentral()
}
dependencies {
classpath 'io.fabric.tools:gradle:1.24.0'
classpath 'me.tatarka:gradle-retrolambda:3.6.0'
}
}
repositories {
maven {
url 'https://maven.fabric.io/public'
}
mavenCentral()
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':library:imagepicker')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:cardview-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.1'
compile 'com.google.maps.android:android-maps-utils:0.5'
compile 'com.google.android.gms:play-services-maps:11.0.4'
compile 'com.google.android.gms:play-services-analytics:11.0.4'
compile 'com.google.firebase:firebase-core:11.0.4'
compile 'com.google.firebase:firebase-auth:11.0.4'
compile 'com.google.firebase:firebase-messaging:11.0.4'
compile 'com.google.firebase:firebase-database:11.0.4'
compile 'com.google.code.gson:gson:2.7'
//GSON https://github.com/google/gson
compile 'com.google.api-client:google-api-client-android:1.22.0' exclude module: 'httpclient'
compile 'com.google.apis:google-api-services-vision:v1-rev357-1.22.0'
//Goocle cloud Vision https://cloud.google.com/vision/docs/reference/libraries
compile 'com.parse:parse-android:1.13.1'
//Parse SDK https://github.com/ParsePlatform/Parse-SDK-Android
compile 'com.parse.bolts:bolts-android:1.4.0'
//Parse SDK https://github.com/BoltsFramework/Bolts-Android
compile 'com.amazonaws:aws-android-sdk-cognito:2.4.2'
//AWS https://github.com/aws/aws-sdk-android
compile 'com.amazonaws:aws-android-sdk-core:2.4.2'
//AWS https://github.com/aws/aws-sdk-android
compile 'com.amazonaws:aws-android-sdk-s3:2.4.2'
//AWS https://github.com/aws/aws-sdk-android
compile 'com.squareup.picasso:picasso:2.5.2'
//Picasso(ImageLoader) https://github.com/square/picasso
// compile 'com.github.chrisbanes:PhotoView:1.3.1'
// //display Image https://github.com/chrisbanes/PhotoView
compile 'com.balysv.materialmenu:material-menu:2.0.0'
//material menu https://github.com/balysv/material-menu
compile 'com.facebook.rebound:rebound:0.3.8'
//Rebound https://github.com/facebook/rebound
compile 'com.facebook.android:account-kit-sdk:4.26.0'
//SMS login https://github.com/facebook/facebook-android-sdk
compile 'com.karumi:dexter:4.0.0'
//android6.0 permission https://github.com/Karumi/Dexter
compile 'org.jbox2d:jbox2d-library:2.2.1.1'
//JBox2d https://github.com/jbox2d/jbox2d
compile 'com.github.JakeWharton:ViewPagerIndicator:2.4.1'
//Parse ViewPagerIndicator https://github.com/JakeWharton/ViewPagerIndicator
compile 'com.facebook.android:audience-network-sdk:4.26.0'
//Facebook AD https://developers.facebook.com/docs/audience-network/android
compile 'com.facebook.android:facebook-android-sdk:4.26.0'
//Facebook SDK https://github.com/facebook/facebook-android-sdk
testCompile 'junit:junit:4.12'
compile('com.crashlytics.sdk.android:crashlytics:2.6.7@aar') {
transitive = true;
}
}
apply plugin: 'com.google.gms.google-services'
apply plugin: 'io.fabric'
apply plugin: 'me.tatarka.retrolambda'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment