Ahmad Naser Turnkey Ecosystem Ahmad Naser
May 9, 2018

kotlin volley, retrofit2, gson, okhttp, picasso, ahbottomnavigation android gradle dependencies

Published in the Ahmad Naser ecosystem. Estimated reading time: 2 minutes.

Retrofit is a REST Client for Android and Java by Square.
OkHttp Used by Retrofit for HTTP requests.
Volley is an HTTP library that makes networking for Android apps easier and, most importantly, faster.
gson A Java serialization/deserialization library to convert Java Objects into JSON and back
picasso – A powerful image downloading and caching library for Android
ahbottomnavigation – A library to reproduce the behavior of the Bottom Navigation guidelines from Material Design.

AHBottomNavigation kotlin android

CardView with RecyclerView ViewHolder – Better way to represent items similar in instagram and facebook, dynamic recycle view adapter let us control the UI in whatever way we need.
CardView with RecyclerView ViewHolder

apply plugin: 'com.android.application'

apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

android {
    compileSdkVersion 26
    defaultConfig {
        applicationId "com.ahmadnaser.gbeapiswpblogdemo"
        minSdkVersion 15
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
    implementation 'com.android.support:appcompat-v7:26.1.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.android.support:support-v4:26.1.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    implementation 'com.android.support:cardview-v7:26.1.0'
    //3rd party libs
    implementation 'com.squareup.okhttp3:okhttp:3.9.1'
    implementation 'com.google.code.gson:gson:2.8.0'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.aurelhubert:ahbottomnavigation:1.3.3'
    implementation "com.squareup.retrofit2:retrofit:2.3.0"
    implementation "com.squareup.retrofit2:adapter-rxjava2:2.3.0"
    implementation "com.squareup.retrofit2:converter-gson:2.3.0"
    implementation 'com.android.volley:volley:1.0.0'
}

Download sample images for categories, menus from here drawable.zip

Leave a Reply

Your email address will not be published. Required fields are marked *