From fad596b90f3340657654ea136190bf929484a17f Mon Sep 17 00:00:00 2001 From: Vahid Garousi Date: Sun, 1 Dec 2024 17:30:39 +0330 Subject: [PATCH] Uncomment ksp --- .../src/main/kotlin/HiltConventionPlugin.kt | 8 ++--- data/sqldelight/.gitignore | 1 + data/sqldelight/build.gradle.kts | 30 +++++++++++++++++++ data/sqldelight/consumer-rules.pro | 0 data/sqldelight/proguard-rules.pro | 21 +++++++++++++ 5 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 data/sqldelight/.gitignore create mode 100644 data/sqldelight/build.gradle.kts create mode 100644 data/sqldelight/consumer-rules.pro create mode 100644 data/sqldelight/proguard-rules.pro diff --git a/build-logic/convention/src/main/kotlin/HiltConventionPlugin.kt b/build-logic/convention/src/main/kotlin/HiltConventionPlugin.kt index 7463814e..16550e8e 100644 --- a/build-logic/convention/src/main/kotlin/HiltConventionPlugin.kt +++ b/build-logic/convention/src/main/kotlin/HiltConventionPlugin.kt @@ -14,16 +14,16 @@ class HiltConventionPlugin : Plugin { private fun Project.applyPlugins() { pluginManager.apply { apply("dagger.hilt.android.plugin") - apply("org.jetbrains.kotlin.kapt") -// apply("com.google.devtools.ksp") +// apply("org.jetbrains.kotlin.kapt") + apply("com.google.devtools.ksp") } } private fun Project.applyDependencies() { dependencies { "implementation"(libs.findLibrary("hilt.android").get()) -// "ksp"(libs.findLibrary("hilt.compiler").get()) - "kapt"(libs.findLibrary("hilt.compiler").get()) + "ksp"(libs.findLibrary("hilt.compiler").get()) +// "kapt"(libs.findLibrary("hilt.compiler").get()) } } } \ No newline at end of file diff --git a/data/sqldelight/.gitignore b/data/sqldelight/.gitignore new file mode 100644 index 00000000..42afabfd --- /dev/null +++ b/data/sqldelight/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/data/sqldelight/build.gradle.kts b/data/sqldelight/build.gradle.kts new file mode 100644 index 00000000..b18495c5 --- /dev/null +++ b/data/sqldelight/build.gradle.kts @@ -0,0 +1,30 @@ +plugins { + alias(libs.plugins.composenews.android.library) + id("composenews.android.hilt") + alias(libs.plugins.sqldelight) +} +android { + namespace = "ir.composenews.sqldelight" +} + + +sqldelight { + databases { + create("MarketDatabase") { + packageName.set("ir.composenews.db") + } + } +} + + +dependencies { + libs.apply { + api(sqldelight.android) + api(sqldelight.coroutines) + api(sqldelight.test) + api(runner) + } + projects.apply { + testImplementation(core.test) + } +} \ No newline at end of file diff --git a/data/sqldelight/consumer-rules.pro b/data/sqldelight/consumer-rules.pro new file mode 100644 index 00000000..e69de29b diff --git a/data/sqldelight/proguard-rules.pro b/data/sqldelight/proguard-rules.pro new file mode 100644 index 00000000..481bb434 --- /dev/null +++ b/data/sqldelight/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file