Skip to content

Instantly share code, notes, and snippets.

@icanerdogan
Created February 26, 2022 21:03
Show Gist options
  • Save icanerdogan/ae44b76ba22ea24b6ba9d3b522eaa388 to your computer and use it in GitHub Desktop.
Save icanerdogan/ae44b76ba22ea24b6ba9d3b522eaa388 to your computer and use it in GitHub Desktop.
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'kotlin-kapt'
id 'dagger.hilt.android.plugin'
id 'androidx.navigation.safeargs'
id 'kotlin-android-extensions'
}
android {
compileSdk 32
defaultConfig {
applicationId "com.icanerdogan.daggerwithhiltintroduction"
minSdk 30
targetSdk 32
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
buildFeatures{
dataBinding true
viewBinding true
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
// NAVIGATION
def nav_version = "2.4.1"
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
implementation "androidx.navigation:navigation-dynamic-features-fragment:$nav_version"
androidTestImplementation "androidx.navigation:navigation-testing:$nav_version"
implementation "androidx.navigation:navigation-compose:$nav_version"
def navVersion = '2.2.1'
implementation "androidx.navigation:navigation-fragment-ktx:$navVersion"
implementation "androidx.navigation:navigation-ui-ktx:$navVersion"
implementation "android.arch.navigation:navigation-fragment-ktx:1.0.0"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.1"
// LIFE CYCLE
def lifeCycleExtensionVersion = '1.1.1'
implementation "android.arch.lifecycle:extensions:$lifeCycleExtensionVersion"
// ROOM
def roomVersion = '2.4.2'
implementation "androidx.room:room-runtime:$roomVersion"
implementation "androidx.legacy:legacy-support-v4:1.0.0"
kapt "androidx.room:room-compiler:$roomVersion"
implementation "androidx.room:room-ktx:$roomVersion"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0"
// HILT
def hilt_version = '2.40'
implementation "com.google.dagger:hilt-android:$hilt_version"
kapt "com.google.dagger:hilt-android-compiler:$hilt_version"
// RETROFIT
def retrofitVersion = '2.9.0'
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofitVersion"
// RX-JAVA
def rxJavaVersion = '2.1.1'
implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion"
implementation "io.reactivex.rxjava2:rxandroid:$rxJavaVersion"
// GLIDE
def glideVersion = '4.13.0'
implementation "com.github.bumptech.glide:glide:$glideVersion"
def supportVersion = '28.0.0'
implementation "com.android.support:palette-v7:$supportVersion"
implementation "com.android.support:design:$supportVersion"
def preferencesVersion = '1.2.0'
implementation "androidx.preference:preference:$preferencesVersion"
implementation "com.google.android.material:material:1.5.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment