Last active
November 16, 2024 19:38
-
-
Save saravr/430ac7735fa99d2aefc9347c8a5c914d to your computer and use it in GitHub Desktop.
Compose starter template
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
Typical additions on top of the Android Studio Jetpack Compose template. | |
Root gradle | |
=========== | |
plugins { | |
id("com.google.dagger.hilt.android") version "2.51.1" apply false | |
} | |
Module gradle | |
============= | |
plugins { | |
id("kotlin-kapt") | |
id("com.google.dagger.hilt.android") | |
kotlin("plugin.serialization") version "2.0.21" | |
} | |
dependencies { | |
// what for? | |
// "androidx.lifecycle:lifecycle-runtime-compose" | |
// "org.jetbrains.kotlinx:kotlinx-coroutines-android" | |
// hilt | |
implementation("com.google.dagger:hilt-android:2.51.1") | |
kapt("com.google.dagger:hilt-android-compiler:2.51.1") | |
implementation("androidx.hilt:hilt-navigation-compose:1.2.0") | |
// kotlin serialization | |
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.3") | |
implementation("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:1.0.0") | |
// retrofit | |
implementation("com.squareup.retrofit2:retrofit:2.11.0") | |
implementation("com.squareup.okhttp3:logging-interceptor:4.12.0") | |
// timber | |
implementation("com.jakewharton.timber:timber:5.0.1") | |
} | |
// Allow references to generated code | |
kapt { | |
correctErrorTypes = true | |
} | |
Manifest | |
======== | |
<uses-permission android:name="android.permission.INTERNET"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment