Skip to content

Instantly share code, notes, and snippets.

@adibfara
Last active May 5, 2022 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adibfara/ea3373b8dd4b3a4f5412131ad9a27d56 to your computer and use it in GitHub Desktop.
Save adibfara/ea3373b8dd4b3a4f5412131ad9a27d56 to your computer and use it in GitHub Desktop.
Setup Guide for KSP
// to help the IDE recognize the KSP generated files, add the following to your app's build.gradle
android {
kotlin {
sourceSets.debug {
kotlin.srcDirs += 'build/generated/ksp/debug/kotlin'
}
sourceSets.release {
kotlin.srcDirs += 'build/generated/ksp/release/kotlin'
}
}
}
// add the following the KSP module's build.gradle
dependencies {
implementation "com.google.devtools.ksp:symbol-processing-api:1.6.20-1.0.5"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment