Useful dependencies are here. This is special for Android-XML (+Kotlin) / Jetpack Compose.
Choose by your needed:
testImplementation "com.google.truth:truth:1.0.1"
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.9.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
plugins {
id 'com.android.application' version '8.0.2' apply false
id 'com.android.library' version '8.0.2' apply false
id 'org.jetbrains.kotlin.android' version '1.8.20' apply false
}
implementation 'androidx.core:core-ktx:1.10.1'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
implementation 'androidx.activity:activity-compose:1.7.2'
implementation "androidx.compose.ui:ui:$compose_ui_version"
implementation "androidx.compose.ui:ui-tooling-preview:$compose_ui_version"
implementation 'androidx.compose.material:material:1.4.3'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_ui_version"
debugImplementation "androidx.compose.ui:ui-tooling:$compose_ui_version"
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_ui_version"
buildscript{
ext {
compose_ui_version = "1.4.0"
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.4.1' apply false
id 'com.android.library' version '7.4.1' apply false
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
}
The useful and helpful dependencies of modes (xml, jetpack compose)
def nav_version = "2.6.0"
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.retrofit2:converter-gson:2.9.0"
Java:
implementation 'io.reactivex.rxjava2:rxjava:2.2.21'
Android:
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
Adapter:
implementation 'com.squareup.retrofit2:adapter-rxjava2:2.9.0'
Picasso:
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.google.accompanist:accompanist-systemuicontroller:0.17.0'
implementation "androidx.navigation:navigation-compose:2.5.3"
implementation "androidx.compose.runtime:runtime-livedata:$compose_ui_version"
implementation "io.coil-kt:coil-compose:2.3.0"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.1"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1"
implementation "dev.burnoo:cokoin:1.0.0"
implementation "dev.burnoo:cokoin-android-viewmodel:1.0.0"
implementation "dev.burnoo:cokoin-android-navigation:1.0.0"
implementation "com.airbnb.android:lottie-compose:5.2.0"
implementation "androidx.room:room-ktx:2.6.0-alpha01"
kapt "androidx.room:room-compiler:2.5.1"
Don't froget to add kapt
plugin
to add:
in buil.gradle (: app)
plugins {
...
id 'kotlin-kapt'
}