Skip to content

Commit

Permalink
Migrated to compose compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
aritra-tech committed Nov 8, 2024
1 parent 7824d72 commit 8a22bcc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .idea/appInsightsSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
id ("com.google.firebase.crashlytics")
id ("com.google.devtools.ksp")
id ("com.google.dagger.hilt.android")
id ("org.jetbrains.kotlin.plugin.compose")
}

android {
Expand Down Expand Up @@ -42,12 +43,12 @@ android {
jvmTarget = "17"
}
buildFeatures {
viewBinding = true
compose = true
buildConfig = true
}
composeOptions {
kotlinCompilerExtensionVersion = "1.5.4"

composeCompiler {
reportsDestination = layout.buildDirectory.dir("compose_compiler")
stabilityConfigurationFile = rootProject.layout.projectDirectory.file("stability_config.conf")
}
}

Expand All @@ -65,15 +66,16 @@ dependencies {
implementation("androidx.compose.foundation:foundation")
implementation("androidx.compose.foundation:foundation-layout")
implementation("androidx.compose.material:material")
implementation("androidx.compose.material3:material3:1.3.0")
implementation("androidx.compose.material3:material3:1.3.1")
implementation("androidx.compose.runtime:runtime-livedata")
implementation("androidx.compose.ui:ui-tooling")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.ui:ui-tooling-preview")
implementation("androidx.constraintlayout:constraintlayout-compose:1.0.1")
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.7.0")
implementation("androidx.activity:activity-compose:1.9.0-alpha03")
implementation("androidx.navigation:navigation-compose:2.8.0")
implementation("androidx.activity:activity-ktx:1.9.3")
implementation("androidx.navigation:navigation-compose:2.8.3")


// Compose Test
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/java/com/aritradas/uncrack/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class MainActivity : ComponentActivity() {

@RequiresApi(Build.VERSION_CODES.O)
override fun onCreate(savedInstanceState: Bundle?) {
enableEdgeToEdge()
super.onCreate(savedInstanceState)

settingsViewModel.isScreenshotEnabled.observe(this) { isEnabled ->
Expand All @@ -51,8 +52,6 @@ class MainActivity : ComponentActivity() {
}
}

enableEdgeToEdge()

checkForAppUpdate()

setContent {
Expand Down
5 changes: 3 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ buildscript {
plugins {
id("com.android.application") version "8.2.2" apply false
id("com.android.library") version "8.0.2" apply false
id("org.jetbrains.kotlin.android") version "1.9.20" apply false
id("org.jetbrains.kotlin.android") version "2.0.0" apply false
id("com.google.dagger.hilt.android") version "2.49" apply false
id("com.google.devtools.ksp") version "1.9.22-1.0.16" apply false
id("com.google.devtools.ksp") version "2.0.0-1.0.23" apply false
id("org.jetbrains.kotlin.plugin.compose") version "2.0.0" apply false
}
allprojects {
repositories {
Expand Down

0 comments on commit 8a22bcc

Please sign in to comment.