Skip to content

Commit

Permalink
compose compiler updated, work manager function updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Neccar43 committed Aug 14, 2024
1 parent 8f3b441 commit 9e6e60a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 10 deletions.
8 changes: 5 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ plugins {
id 'dagger.hilt.android.plugin'
id 'com.google.devtools.ksp'
id 'com.google.firebase.appdistribution'
id "org.jetbrains.kotlin.plugin.compose"
}

android {
Expand Down Expand Up @@ -50,16 +51,17 @@ android {
buildFeatures {
compose true
}
composeOptions {
/* composeOptions {
kotlinCompilerExtensionVersion '1.5.1'
}
}*/
packagingOptions {
resources {
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
}


dependencies {

implementation 'androidx.core:core-ktx:1.13.1'
Expand Down Expand Up @@ -154,7 +156,7 @@ dependencies {
implementation "androidx.datastore:datastore-preferences:1.1.1"

//workManager with coroutines
def work_version = "2.9.0"
def work_version = "2.9.1"
implementation "androidx.work:work-runtime-ktx:$work_version"
//work manager testing
androidTestImplementation "androidx.work:work-testing:$work_version"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ import javax.inject.Inject
class ReCallApplication : Application(), Configuration.Provider {
@Inject
lateinit var workerFactory: HiltWorkerFactory

override fun getWorkManagerConfiguration(): Configuration =
Configuration.Builder()
override val workManagerConfiguration: Configuration
get() =Configuration.Builder()
.setWorkerFactory(workerFactory)
.build()


override fun onCreate() {
super.onCreate()
val workManager = WorkManager.getInstance(this)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.novacodestudios.recall.domain.model.Question
import com.novacodestudios.recall.domain.model.Quiz
import com.novacodestudios.recall.domain.model.Word

@Database(entities = [Word::class,Question::class,Quiz::class,Group::class], version = 18)
@Database(entities = [Word::class,Question::class,Quiz::class,Group::class], version = 18, exportSchema = false)
abstract class ReCallDatabase:RoomDatabase() {
abstract fun reCallDao(): ReCallDao
}
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
buildscript {
dependencies {
classpath 'com.google.gms:google-services:4.4.2'
classpath 'com.android.tools.build:gradle:8.5.1'
classpath 'com.android.tools.build:gradle:8.5.2'
classpath 'com.google.firebase:firebase-crashlytics-gradle:3.0.2'
classpath 'com.google.firebase:perf-plugin:1.4.2'
classpath 'com.google.firebase:firebase-appdistribution-gradle:5.0.0'
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.5.1' apply false
id 'com.android.library' version '8.5.1' apply false
id 'com.android.application' version '8.5.2' apply false
id 'com.android.library' version '8.5.2' apply false
id 'org.jetbrains.kotlin.android' version '2.0.0' apply false
id 'com.google.dagger.hilt.android' version '2.51.1' apply false
id 'com.google.devtools.ksp' version '2.0.0-1.0.21' apply false
id "org.jetbrains.kotlin.plugin.compose" version "2.0.0" apply false
}

0 comments on commit 9e6e60a

Please sign in to comment.