Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1c42f904 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊 Committed by Jonathan Klee
Browse files

feat: Migrate from kapt to KSP

parent 054744b0
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
plugins {
    id 'com.android.application'
    id 'kotlin-android'
    id 'kotlin-kapt'
    id 'com.google.devtools.ksp'
    id 'org.jlleitschuh.gradle.ktlint' version '10.2.0'
    id 'androidx.navigation.safeargs.kotlin'
    id 'com.google.dagger.hilt.android'
@@ -219,10 +219,6 @@ android {
    }
}

kapt {
    correctErrorTypes true
}

allOpen {
    // allows mocking for classes w/o directly opening them for release builds
    annotation 'foundation.e.apps.OpenClass'
@@ -305,10 +301,10 @@ dependencies {

    // Hilt
    def hilt_version = '2.54'
    kapt "com.google.dagger:hilt-compiler:$hilt_version"
    ksp "com.google.dagger:hilt-compiler:$hilt_version"
    implementation "com.google.dagger:hilt-android:$hilt_version"
    implementation 'androidx.hilt:hilt-work:1.2.0'
    kapt 'androidx.hilt:hilt-compiler:1.2.0'
    ksp 'androidx.hilt:hilt-compiler:1.2.0'

    // Lifecycle Components
    def lifecycle_version = "2.8.7"
@@ -318,7 +314,7 @@ dependencies {
    implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"

    // Coroutines
    def coroutines_version = "1.9.0"
    def coroutines_version = "1.10.1"
    def test_kotlin_version = "2.1.0"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
    implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
@@ -326,7 +322,7 @@ dependencies {
    testImplementation "org.jetbrains.kotlin:kotlin-test:$test_kotlin_version"

    // Room
    kapt "androidx.room:room-compiler:2.6.1"
    ksp "androidx.room:room-compiler:2.6.1"
    implementation "androidx.room:room-ktx:2.6.1"
    implementation "androidx.room:room-runtime:2.6.1"

+4 −3
Original line number Diff line number Diff line
@@ -3,10 +3,11 @@
plugins {
    id 'com.android.application' version '8.7.3' apply false
    id 'com.android.library' version '8.7.3' apply false
    id 'org.jetbrains.kotlin.android' version '2.0.21' apply false
    id "org.jetbrains.kotlin.plugin.allopen" version "2.0.21"
    id 'org.jetbrains.kotlin.jvm' version '2.0.21' apply false
    id 'org.jetbrains.kotlin.android' version '2.1.0' apply false
    id "org.jetbrains.kotlin.plugin.allopen" version "2.1.0"
    id 'org.jetbrains.kotlin.jvm' version '2.1.0' apply false
    id 'com.google.dagger.hilt.android' version '2.54' apply false
    id("com.google.devtools.ksp") version "2.1.0-1.0.29" apply false
    id 'androidx.navigation.safeargs' version '2.8.5' apply false
    id 'io.gitlab.arturbosch.detekt' version '1.23.1'
}