Skip to content

Instantly share code, notes, and snippets.

@brspurri
Created March 30, 2019 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brspurri/bed2056c3bbad4768c58bb4771bd9e3a to your computer and use it in GitHub Desktop.
Save brspurri/bed2056c3bbad4768c58bb4771bd9e3a to your computer and use it in GitHub Desktop.
grade
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
maven { url "https://repo.eclipse.org/content/repositories/paho-snapshots/" }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'idea'
apply plugin: 'io.fabric'
android {
signingConfigs {
ReleaseConfig {
keyAlias 'ohmd-prod'
keyPassword 'mb@0hmd'
storeFile file('/Users/brett/ohmd/code/ohmd-android/signing/ohmd-prod.jks')
storePassword 'mb@0hmd'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/mimetypes.default'
exclude 'org/eclipse/paho/client/mqttv3/*'
pickFirst 'META-INF/ASL2.0'
pickFirst 'META-INF/NOTICE'
pickFirst 'META-INF/INDEX.LIST'
pickFirst 'META-INF/LICENSE'
pickFirst 'META-INF/io.netty.versions.properties'
}
compileOptions.encoding = 'UTF-8'
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.ohmd"
minSdkVersion 23
targetSdkVersion 28
versionCode 301
versionName "v2.8.1.10"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
renderscriptTargetApi 27
renderscriptSupportModeEnabled true
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath false
}
}
}
dataBinding {
enabled = true
}
lintOptions {
abortOnError false
}
dexOptions {
// preDexLibraries = false
jumboMode true
javaMaxHeapSize "4g"
}
afterEvaluate {
tasks.matching {
it.name.startsWith('dex')
}.each { dx ->
if (dx.additionalParameters == null) {
dx.additionalParameters = ['--multi-dex']
} else {
dx.additionalParameters += '--multi-dex'
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
debuggable false
//proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// API parameters
buildConfigField "String", "API_HOST", "\"services.ohmd.com\""
// buildConfigField "String", "API_HOST", "\"services-ipv6.ohmd.com\""
buildConfigField "String", "API_SCHEMA", "\"https\""
buildConfigField "String", "API_VERSION", "\"v1\""
buildConfigField "String", "CLIENT_ID", "\"3YjVtqogGKupsbER\""
buildConfigField "String", "STRIPE_KEY", "\"pk_live_WgSpYV9z4GVIINPKDcIUWyIH\""
buildConfigField "boolean", "BYPASS_TWILIO", "false"
buildConfigField "boolean", "USE_MQTT_TLS", "true"
buildConfigField "Integer", "MQTTS_PORT", "443"
buildConfigField "Integer", "MQTT_PORT", "1883"
//
signingConfig signingConfigs.ReleaseConfig
//
proguardFile getDefaultProguardFile('proguard-android.txt')
proguardFile 'proguard-shrink-only.txt'
//proguardFile 'proguard-project.txt'
// buildConfigField "String", "API_HOST", "\"services-test.ohmd.com\""
// buildConfigField "String", "API_SCHEMA", "\"https\""
// buildConfigField "String", "API_VERSION", "\"v1\""
// buildConfigField "String", "CLIENT_ID", "\"DHpGbs4pTpEA63PV\""
// buildConfigField "String", "STRIPE_KEY", "\"pk_live_WgSpYV9z4GVIINPKDcIUWyIH\""
// buildConfigField "boolean", "BYPASS_TWILIO", "true"
// buildConfigField "boolean", "USE_MQTT_TLS", "true"
// buildConfigField "Integer", "MQTTS_PORT", "443"
// buildConfigField "Integer", "MQTT_PORT", "1883"
}
debug {
minifyEnabled false
debuggable true
//proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
// API parameters
buildConfigField "String", "API_HOST", "\"services-test.ohmd.com\""
buildConfigField "String", "API_SCHEMA", "\"https\""
buildConfigField "String", "API_VERSION", "\"v1\""
buildConfigField "String", "CLIENT_ID", "\"DHpGbs4pTpEA63PV\""
buildConfigField "String", "STRIPE_KEY", "\"pk_live_WgSpYV9z4GVIINPKDcIUWyIH\""
buildConfigField "boolean", "BYPASS_TWILIO", "true"
buildConfigField "boolean", "USE_MQTT_TLS", "true"
buildConfigField "Integer", "MQTTS_PORT", "443"
buildConfigField "Integer", "MQTT_PORT", "1883"
// buildConfigField "String", "API_HOST", "\"services.ohmd.com\""
// buildConfigField "String", "API_SCHEMA", "\"https\""
// buildConfigField "String", "API_VERSION", "\"v1\""
// buildConfigField "String", "CLIENT_ID", "\"3YjVtqogGKupsbER\""
// buildConfigField "String", "STRIPE_KEY", "\"pk_live_WgSpYV9z4GVIINPKDcIUWyIH\""
// buildConfigField "boolean", "BYPASS_TWILIO", "false"
// buildConfigField "boolean", "USE_MQTT_TLS", "true"
// buildConfigField "Integer", "MQTTS_PORT", "443"
// buildConfigField "Integer", "MQTT_PORT", "1883"
}
}
productFlavors {
}
}
idea {
module {
downloadJavadoc = false
downloadSources = true
}
}
repositories {
jcenter()
maven { url 'http://repo1.maven.org/maven2' }
maven { url "https://maven.java.net/content/groups/public/" }
maven { url "https://jitpack.io" }
maven { url 'https://maven.fabric.io/public' }
maven { url "https://maven.google.com" }
}
configurations.all {
resolutionStrategy {
force 'junit:junit:4.12'
// force "com.android.support:appcompat-v7:26.1.0"
// force "com.android.support:support-v4:26.1.0"
force 'com.google.firebase:firebase-core:15.0.2'
force 'com.google.firebase:firebase-messaging:15.0.2'
}
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group.equals('com.android.support')) {
if (!requested.name.startsWith("multidex")) {
details.useVersion '28.0.0'
}
}
}
}
dependencies {
compile fileTree(dir: '../org.eclipse.paho.android/service/libs', excludes: ["org.eclipse.paho.client.mqttv3-1.1.0.jar"], include: '')
compile fileTree(include: ['*.jar'], dir: 'libs', excludes: ["*org.eclipse.paho.client.mqttv3-1.1.0.jar"])
compile 'net.sf.flexjson:flexjson:2.1'
compile('org.apache.abdera:abdera-i18n:1.1.1') {
exclude module: 'support-v4'
}
// compile('org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.1') {
// exclude module: 'support-v4'
// }
// compile('org.eclipse.paho:org.eclipse.paho.android.service:1.1.1') {
// exclude module: 'support-v4'
// }
compile("org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.1.0") {
}
compile(project(':org.eclipse.paho.android.service')) {
exclude module: "org.eclipse.paho.client.mqttv3"
transitive = true
}
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:support-vector-drawable:26.1.0'
compile 'com.android.support:support-v13:26.1.0'
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.android.support:design:26.1.0'
compile 'com.android.support.constraint:constraint-layout:1.1.3'
compile 'com.android.support:multidex:1.0.3'
compile 'com.android.support:customtabs:26.1.0'
compile 'com.android.support:percent:26.1.0'
compile 'com.android.support:palette-v7:26.1.0'
compile 'com.android.support:recyclerview-v7:26.1.0'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.android.support:support-annotations:26.1.0'
compile 'com.android.support:support-v4:26.1.0'
compile 'com.android.support:support-compat:26.1.0'
compile 'com.afollestad.material-dialogs:core:0.9.6.0'
compile 'com.afollestad.material-dialogs:commons:0.9.6.0'
compile 'com.code-troopers.betterpickers:library:3.0.1'
compile 'commons-codec:commons-codec:1.10'
compile('com.joanzapata.iconify:android-iconify-fontawesome:2.2.2') {
exclude module: 'support-v4'
}
compile 'com.joanzapata.iconify:android-iconify-material:2.2.2'
compile 'com.joanzapata.iconify:android-iconify-material-community:2.2.2'
compile 'com.joanzapata.iconify:android-iconify-ionicons:2.2.2'
compile 'com.google.code.gson:gson:2.8.0'
compile 'org.apache.commons:commons-lang3:3.4'
compile 'org.apache.commons:commons-collections4:4.0'
compile 'net.zetetic:android-database-sqlcipher:3.5.9@aar'
compile 'org.apache.httpcomponents:httpcore:4.4.5'
compile 'com.fasterxml.jackson.core:jackson-core:2.7.3'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.7.3'
compile 'com.fasterxml.jackson.core:jackson-databind:2.7.3'
compile 'com.github.boxme:asyncmanager:1.0.0'
compile 'com.miguelcatalan:materialsearchview:1.4.0'
compile 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.squareup.okhttp3:okhttp:3.11.0'
compile 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'
// compile 'de.hdodenhof:circleimageview:2.2.0'
compile 'com.makeramen:roundedimageview:2.3.0'
compile 'com.github.stfalcon:frescoimageviewer:0.3.1'
compile 'joda-time:joda-time:2.9.6'
compile 'com.liuzhuang.opensource:rcimageview:0.0.2'
compile 'com.uncopt:android.justified:1.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.google.auto.value:auto-value:1.2'
compile 'com.karumi:dexter:2.3.0'
compile 'io.reactivex:rxandroid:1.2.1'
compile 'io.reactivex:rxjava:1.1.6'
compile 'com.xwray:passwordview:1.0'
compile 'com.googlecode.libphonenumber:libphonenumber:7.2.2'
compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'
compile 'com.github.nekocode:Badge:1.6.2'
compile 'com.sjl:Foredroid:1.0.0'
compile 'com.kaopiz:kprogresshud:1.0.5'
compile 'com.wang.avi:library:2.1.3'
compile 'kr.pe.burt.android.lib:androidoperationqueue:0.0.2'
compile 'com.ryanharter.auto.value:auto-value-parcel:0.2.4-rc2'
compile 'jp.wasabeef:recyclerview-animators:2.2.5'
compile 'me.leolin:ShortcutBadger:1.1.18@aar'
compile 'com.github.whalemare:sheetmenu:1.3.3'
// compile 'com.orhanobut:logger:2.1.1'
compile 'com.github.budius:logger:1.12_file_logger'
compile "com.daimajia.swipelayout:library:1.2.0@aar"
compile 'com.github.elton2048:SmoothCheckBox:1.0.1'
compile 'com.daimajia.androidanimations:library:2.3@aar'
compile 'com.bartoszlipinski:viewpropertyobjectanimator:1.4.5'
compile 'com.github.johnpersano:supertoasts:2.0'
compile 'ru.egslava:MaskedEditText:1.0.5'
compile 'com.reginald:editspinner:1.0.0'
compile('com.flurgle:camerakit:0.9.15') {
exclude module: 'support-v4'
exclude module: 'appcompat-v7'
}
compile 'com.github.florent37:viewanimator:1.0.5'
compile 'com.github.AmeerHamzaaa:Bitmaptic:0.1.2'
compile 'cn.woblog.android:downloader:1.0.1'
compile 'com.jakewharton:butterknife:8.4.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.4.0'
compile 'com.drewnoakes:metadata-extractor:2.10.1'
compile 'com.github.michael-rapp:android-bottom-sheet:1.4.3'
compile 'com.daimajia.easing:library:2.0@aar'
compile 'com.daimajia.androidanimations:library:2.3@aar'
compile 'com.azimolabs.keyboardwatcher:keyboardwatcher:0.1.3'
compile 'org.jonathancaryl.imeutils:imeutils:0.9.0'
compile 'com.github.markushi:circlebutton:1.1'
compile 'com.eftimoff:android-viewpager-transformers:1.0.1@aar'
compile 'com.romandanylyk:pageindicatorview:1.0.0'
compile 'com.orhanobut:dialogplus:1.11@aar'
compile 'com.loopeer.lib:shadow:0.0.4-beta1'
compile 'com.zplesac:connectionbuddy:2.0.1@aar'
implementation 'com.irozon.sneaker:sneaker:2.0.0'
implementation 'io.reactivex.rxjava2:rxandroid:2.0.2'
implementation 'io.reactivex.rxjava2:rxjava:2.1.9'
compile 'com.jakewharton.rxbinding:rxbinding:0.4.0'
compile 'com.jakewharton.rxbinding:rxbinding-design:0.4.0'
compile 'com.annimon:stream:1.1.2'
compile 'org.codehaus.jackson:jackson-jaxrs:1.9.13'
compile 'com.scottyab:rootbeer-lib:0.0.7'
// compile 'com.google.guava:guava:14.0.1'
implementation('com.amazonaws:aws-android-sdk-mobile-client:2.6.26@aar') { transitive = true }
implementation 'com.amazonaws:aws-android-sdk-s3:2.6.26'
implementation 'com.amazonaws:aws-android-sdk-cognito:2.6.26'
implementation 'com.amazonaws:aws-android-sdk-auth-userpools:2.6.26@aar'
// Intercom
// compile 'io.intercom.android:intercom-sdk-base:5.2.1'
// compile 'io.intercom.android:intercom-sdk-fcm:5.2.1'
implementation 'io.intercom.android:intercom-sdk:5.+'
// EasyImage (camera and photo access)
compile 'com.github.tajchert:nammu:1.2.0'
compile 'com.lovedise:permissiongen:0.0.6'
// compile 'cn.zhikaizhang.index:library:1.0.0'
compile('com.frosquivel:magicalcamera:5.0.2@aar') {
transitive = false;
}
// Circular progress bar
compile 'com.github.castorflex.smoothprogressbar:library-circular:1.2.0'
compile 'com.yarolegovich:discrete-scrollview:1.3.2'
compile 'com.github.barteksc:android-pdf-viewer:3.1.0-beta.1'
implementation 'me.saket:better-link-movement-method:2.2.0'
// Google Play services
// Use 15.0.2 ONLY!
implementation 'com.google.firebase:firebase-core:15.0.2'
implementation 'com.google.firebase:firebase-messaging:15.0.2'
implementation 'com.firebase:firebase-jobdispatcher:0.8.5'
// Secure shared preferences
compile 'online.devliving:securedpreferencestore:0.5.1'
// Included libraries
implementation project(':circleimageview')
implementation project(':sugar')
implementation project(':noty')
// compile 'com.github.satyan:sugar:1.5'
implementation project(':animation-circular-progress-button')
// compile project(':updatehandler')
compile 'com.facebook.shimmer:shimmer:0.1.0@aar'
compile 'cn.kongnannan:combinationavatar:1.0'
// Fabic
compile('com.crashlytics.sdk.android:crashlytics:2.9.6@aar') {
transitive = true;
}
// compile('com.crashlytics.sdk.android:answers:1.3.10@aar') {
// transitive = true;
// }
// Branch.io
// compile('io.branch.sdk.android:library:2.+') {
// exclude module: 'answers-shim'
// }
// Facebook SDK
implementation 'com.facebook.android:facebook-android-sdk:4.40.0'
// Segment
compile 'com.segment.analytics.android:analytics:4.+'
annotationProcessor 'com.google.dagger:dagger-compiler:2.0'
// Test components
testCompile 'junit:junit:4.12'
androidTestCompile 'com.android.support.test:runner:1.0.1'
androidTestCompile 'com.android.support.test:rules:1.0.1'
androidTestCompile 'com.android.support:support-annotations:26.1.0'
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
androidTestCompile('com.android.support.test.espresso:espresso-intents:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
androidTestCompile('com.android.support.test.espresso:espresso-web:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
}
apply plugin: 'com.google.gms.google-services'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment