Skip to content

Commit

Permalink
chore: Migrate kapt to KSP
Browse files Browse the repository at this point in the history
  • Loading branch information
hushenghao committed Dec 2, 2023
1 parent f7a4f4b commit 30ce74f
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### v2.2.2 (2023-11-26)
- Fix F-Droid Reproducible Builds
### v2.2.2
- Fix Guide page layout [#116](https://github.com/hushenghao/AndroidEasterEggs/issues/116)
- Migrate kapt to KSP

### v2.2.1 (2023-11-25)
- Fix F-Droid Reproducible Builds
Expand Down
4 changes: 2 additions & 2 deletions build-logic/src/main/kotlin/EasterEggApp.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ class EasterEggApp : Plugin<Project> {
apply("com.android.application")
apply("com.google.dagger.hilt.android")
apply("org.jetbrains.kotlin.android")
apply("kotlin-kapt")
apply("com.google.devtools.ksp")
}

dependencies {
"implementation"(project(path = ":basic"))
"implementation"(catalog.findLibrary("hilt.android").get())
"kapt"(catalog.findLibrary("hilt.compiler").get())
"ksp"(catalog.findLibrary("hilt.compiler").get())
}

configureAndroid<BaseAppModuleExtension> {
Expand Down
4 changes: 2 additions & 2 deletions build-logic/src/main/kotlin/EasterEggLibrary.kt
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ class EasterEggLibrary : EasterEggBasicLibrary() {
with(target) {
pluginManager.apply {
apply("com.google.dagger.hilt.android")
apply("kotlin-kapt")
apply("com.google.devtools.ksp")
}

dependencies {
"implementation"(project(path = ":basic"))
"implementation"(catalog.findLibrary("hilt.android").get())
"kapt"(catalog.findLibrary("hilt.compiler").get())
"ksp"(catalog.findLibrary("hilt.compiler").get())
}

configureAndroid<LibraryExtension> {
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
alias(libs.plugins.android.library) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.hilt.android) apply false
alias(libs.plugins.ksp) apply false
}

task<Delete>("clean") {
Expand Down
4 changes: 2 additions & 2 deletions fastlane/metadata/android/en-US/changelogs/35.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- Fix F-Droid Reproducible Builds
- Fix Guide page layout
- Fix Guide page layout
- Migrate kapt to KSP
4 changes: 2 additions & 2 deletions fastlane/metadata/android/zh-CN/changelogs/35.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
- 修复F-Droid可重复构建
- 修复引导页布局
- 修复引导页布局
- 迁移kapt到KSP
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[versions]
kotlin = "1.9.21"
ksp = "1.9.21-1.0.15"
# https://androidx.dev/storage/compose-compiler/repository
# https://maven.google.com/web/index.html?q=compose#androidx.compose.compiler:compiler
compose-kotlin-compiler = "1.5.5"
Expand All @@ -13,6 +14,7 @@ android-application = { id = "com.android.application", version.ref = "agp" }
android-library = { id = "com.android.library", version.ref = "agp" }
hilt-android = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }

[libraries]
kotlinx-coroutines-android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:1.7.3"
Expand Down

0 comments on commit 30ce74f

Please sign in to comment.