Skip to content

Commit

Permalink
Uncomment ksp
Browse files Browse the repository at this point in the history
  • Loading branch information
VahidGarousi committed Dec 1, 2024
1 parent 0d6c142 commit fad596b
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ class HiltConventionPlugin : Plugin<Project> {
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())
}
}
}
1 change: 1 addition & 0 deletions data/sqldelight/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
30 changes: 30 additions & 0 deletions data/sqldelight/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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)
}
}
Empty file.
21 changes: 21 additions & 0 deletions data/sqldelight/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit fad596b

Please sign in to comment.