Skip to content

Instantly share code, notes, and snippets.

@FoxIvan
Last active September 18, 2017 01:51
Show Gist options
  • Save FoxIvan/0736ad37d0e5b6652d2f9bfb152472f4 to your computer and use it in GitHub Desktop.
Save FoxIvan/0736ad37d0e5b6652d2f9bfb152472f4 to your computer and use it in GitHub Desktop.
My mostly used dependencies
apply plugin: 'com.android.application'
apply plugin: 'org.greenrobot.greendao'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.1"
    defaultConfig {
        applicationId "com.easyway.rx_iim_app"
        minSdkVersion 19
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary = true
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    dataBinding {
        enabled true
    }

    sourceSets {
        main {
            jniLibs.srcDir 'libs'
        }
    }
}

greendao {
    schemaVersion 1
    generateTests false
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    testCompile 'junit:junit:4.12'
    compile 'org.mockito:mockito-core:2.8.9'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'

    // android support library
    compile 'com.android.support:appcompat-v7:26.+'
    compile 'com.android.support:support-v4:26.+'
    compile 'com.android.support:support-v13:26.+'
    compile 'com.android.support:design:26.+'
    compile 'com.android.support:cardview-v7:26.+'
    compile 'com.android.support:support-vector-drawable:26.+'

    // debug network requests and database
    debugCompile 'com.amitshekhar.android:debug-db:1.0.1'
    compile 'com.facebook.stetho:stetho:1.5.0'
    compile 'com.facebook.stetho:stetho-okhttp3:1.5.0'

    // retrofit and rxjava
    compile 'com.squareup.retrofit2:retrofit:2.3.0'
    compile 'com.squareup.retrofit2:converter-gson:2.3.0'
    compile 'com.squareup.retrofit2:adapter-rxjava2:2.3.0'
    compile 'io.reactivex.rxjava2:rxjava:2.1.3'
    compile 'io.reactivex.rxjava2:rxandroid:2.0.1'

    compile 'org.greenrobot:greendao:3.2.2'
    compile 'org.greenrobot:eventbus:3.0.0'

    compile 'com.hannesdorfmann.mosby3:mvp:3.0.4'
    compile 'pub.devrel:easypermissions:0.4.2'
    compile 'com.afollestad.material-dialogs:core:0.9.4.4'
    compile 'com.apkfuns.logutils:library:1.5.1.1'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment