Last active
April 3, 2025 20:46
-
-
Save Colorfulnia/7c26d1d63738b8de4ee805103aa7e694 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//Compose | |
implementation("androidx.compose.runtime:runtime-livedata:1.7.6") | |
implementation("androidx.compose.material:material-icons-extended:1.7.6") | |
implementation("androidx.constraintlayout:constraintlayout-compose:1.1.0") | |
implementation("androidx.navigation:navigation-compose:2.8.5") | |
implementation("com.github.bumptech.glide:compose:1.0.0-beta01") | |
// Coil with Compose | |
implementation("io.coil-kt:coil-compose:2.7.0") | |
//Room | |
implementation("androidx.room:room-runtime:2.6.1") | |
implementation("androidx.room:room-ktx:2.6.1") | |
annotationProcessor("androidx.room:room-compiler:2.6.1") | |
kapt("androidx.room:room-compiler:2.6.1") | |
//ksp("androidx.room:room-compiler:2.6.1") | |
//Security | |
implementation("androidx.security:security-crypto:1.0.0") | |
//Splash Screen | |
implementation("androidx.core:core-splashscreen:1.0.1") | |
//Lifecycle ViewModel | |
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.8.7") | |
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7") | |
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7") | |
implementation("androidx.lifecycle:lifecycle-extensions:2.2.0") | |
//Navigation | |
implementation("androidx.navigation:navigation-fragment-ktx:2.8.5") | |
implementation("androidx.navigation:navigation-ui-ktx:2.8.5") | |
implementation("androidx.hilt:hilt-navigation-compose:1.2.0") | |
//Fragment & Activity | |
implementation("androidx.fragment:fragment-ktx:1.8.5") | |
implementation("androidx.activity:activity-ktx:1.10.1") | |
//DataStore | |
implementation("androidx.datastore:datastore-preferences:1.1.2") | |
//Networking Volley | |
implementation("com.android.volley:volley:1.2.1") | |
//Networking OkHttp | |
implementation("com.squareup.okhttp3:okhttp:4.12.0") | |
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0") | |
//Networking Retrofit | |
implementation("com.squareup.retrofit2:retrofit:2.11.0") | |
implementation("com.squareup.retrofit2:converter-gson:2.11.0") | |
implementation("com.squareup.retrofit2:adapter-rxjava2:2.11.0") | |
//implementation("com.squareup.retrofit2:adapter-rxjava3:2.11.0") | |
//Retrofit 是一个类型安全的 HTTP 客户端,用于将 HTTP API 转换为 Kotlin 或 Java 接口。它依赖于 OkHttp 来处理网络请求。也就是说,Retrofit 默认使用 OkHttp 作为其网络层。 | |
//在添加 Retrofit 依赖时,它会自动包含 OkHttp 作为其传输层依赖,因此你不需要显式地再次添加 OkHttp 依赖。但是,如果你需要使用 OkHttp 提供的额外功能,如日志拦截器 (logging-interceptor),则需要显式地添加这些依赖。 | |
//Image Loading | |
implementation("com.squareup.picasso:picasso:2.71828") | |
implementation("com.github.bumptech.glide:glide:4.16.0") | |
implementation("com.github.bumptech.glide:compose:1.0.0-beta01") | |
//Dependency Injection | |
implementation("com.google.dagger:hilt-android:2.55") | |
ksp("com.google.dagger:hilt-compiler:2.55") // ksp 更适合原生Kotlin, kapt 用于 Java 注解处理器; hilt-android-compiler -> hilt-compiler: https://github.com/google/dagger/releases/tag/dagger-2.29.1 | |
kapt("androidx.hilt:hilt-compiler:1.2.0") | |
//Gson for JSON Parsing | |
implementation("com.google.code.gson:gson:2.11.0") | |
//Coroutine | |
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.10.1") | |
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.10.1") | |
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.1") | |
//Rxjava | |
implementation("io.reactivex.rxjava2:rxjava:2.2.21") | |
implementation("io.reactivex.rxjava2:rxandroid:2.1.1") | |
implementation("io.reactivex.rxjava3:rxjava:3.1.10") | |
implementation("io.reactivex.rxjava3:rxandroid:3.0.2") | |
//Authentication | |
implementation("com.google.auth:google-auth-library-oauth2-http:1.30.1") | |
//testing | |
testImplementation("androidx.arch.core:core-testing:2.2.0") | |
testImplementation("io.mockk:mockk:1.13.17") | |
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.10.1") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment