-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial processor module * Added annotation module * Basic handle path generator * Path parameter support * Named routing support * @path support * Optional path parameter support * Tailcard parameter support * Regex parameter support * Body parameter support * Method parameter and improvements * Folder changes only * ApplicationCall parameters support * KSP gradle plugin single target * KSP gradle plugin multiplatform target * KSP custom generated file name * Composable codegen support * Voyager screen codegen support * fixed core processor versioning
- Loading branch information
1 parent
758aa48
commit a32b3a0
Showing
23 changed files
with
972 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
plugins { | ||
kotlin("multiplatform") | ||
id("org.jetbrains.kotlinx.kover") | ||
alias(libs.plugins.maven.publish) | ||
} | ||
|
||
applyBasicSetup() |
4 changes: 4 additions & 0 deletions
4
ksp/core-annotations/common/src/dev/programadorthi/routing/annotation/Body.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package dev.programadorthi.routing.annotation | ||
|
||
@Target(AnnotationTarget.VALUE_PARAMETER) | ||
public annotation class Body |
6 changes: 6 additions & 0 deletions
6
ksp/core-annotations/common/src/dev/programadorthi/routing/annotation/Path.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package dev.programadorthi.routing.annotation | ||
|
||
@Target(AnnotationTarget.VALUE_PARAMETER) | ||
public annotation class Path( | ||
val value: String | ||
) |
13 changes: 13 additions & 0 deletions
13
ksp/core-annotations/common/src/dev/programadorthi/routing/annotation/Route.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package dev.programadorthi.routing.annotation | ||
|
||
@Target( | ||
AnnotationTarget.CLASS, | ||
AnnotationTarget.CONSTRUCTOR, | ||
AnnotationTarget.FUNCTION, | ||
) | ||
public annotation class Route( | ||
val path: String = "", | ||
val name: String = "", | ||
val regex: String = "", | ||
val method: String = "", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
POM_NAME=Ksp Core Annotations | ||
POM_ARTIFACT_ID=ksp-core-annotations | ||
POM_DESCRIPTION=Core annotations to generate basic behaviors |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
plugins { | ||
kotlin("multiplatform") | ||
id("org.jetbrains.kotlinx.kover") | ||
alias(libs.plugins.maven.publish) | ||
} | ||
|
||
applyBasicSetup() | ||
|
||
kotlin { | ||
sourceSets { | ||
jvmMain { | ||
dependencies { | ||
implementation(projects.core) | ||
implementation(projects.ksp.coreAnnotations) | ||
implementation(libs.kotlin.poet) | ||
implementation(libs.kotlin.poet.ksp) | ||
implementation(libs.ksp.api) | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
POM_NAME=Ksp Core Processor | ||
POM_ARTIFACT_ID=ksp-core-processor | ||
POM_DESCRIPTION=Ksp core processor to generate basic behaviors |
1 change: 1 addition & 0 deletions
1
...vm/resources/META-INF/services/com.google.devtools.ksp.processing.SymbolProcessorProvider
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dev.programadorthi.routing.ksp.RoutingProcessorProvider |
Oops, something went wrong.