Last active
October 29, 2022 19:17
-
-
Save AlaaEddinAlbarghoth/6e3fc34b1a8c17a5e128cbee55487adf to your computer and use it in GitHub Desktop.
Android Standard Dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
plugins { | |
id 'com.android.application' | |
id 'kotlin-android' | |
id 'kotlin-kapt' | |
id 'kotlin-parcelize' | |
id 'dagger.hilt.android.plugin' | |
} | |
dependencies { | |
implementation 'androidx.core:core-ktx:1.9.0' | |
implementation 'androidx.appcompat:appcompat:1.5.1' | |
implementation 'com.google.android.material:material:1.7.0' | |
implementation 'androidx.constraintlayout:constraintlayout:2.1.4' | |
def activity_version = "1.6.1" | |
// Kotlin | |
implementation "androidx.activity:activity-ktx:$activity_version" | |
// LIFECYCLE | |
def lifecycle_version = "2.6.0-alpha03" | |
// ViewModel | |
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version" | |
// LiveData | |
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version" | |
// Lifecycles only (without ViewModel or LiveData) | |
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version" | |
// alternately - if using Java8, use the following instead of lifecycle-compiler | |
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version" | |
// COROUTINES | |
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4' | |
// RETROFIT | |
def retrofit_version = "2.9.0" | |
implementation "com.squareup.retrofit2:retrofit:$retrofit_version" | |
implementation "com.squareup.retrofit2:converter-gson:$retrofit_version" | |
// OKHTTP | |
def okhttp_version = "4.8.1" | |
implementation "com.squareup.okhttp3:okhttp:$okhttp_version" | |
implementation "com.squareup.okhttp3:logging-interceptor:$okhttp_version" | |
// DATASTORE | |
implementation "androidx.datastore:datastore-preferences:1.0.0" | |
// HILT | |
implementation "com.google.dagger:hilt-android:2.35" | |
kapt "com.google.dagger:hilt-android-compiler:2.35" | |
implementation "androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03" | |
kapt "androidx.hilt:hilt-compiler:1.0.0" | |
testImplementation 'junit:junit:4.13.2' | |
androidTestImplementation 'androidx.test.ext:junit:1.1.3' | |
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment