Skip to content

Commit

Permalink
Remove manual KSP source sets specification (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
mars885 authored Aug 21, 2024
1 parent 37387c5 commit cbd813d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 20 deletions.
2 changes: 1 addition & 1 deletion sample-deps-javac/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ android {
}

buildTypes {
getByName("release") {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
Expand Down
2 changes: 1 addition & 1 deletion sample-deps-kapt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
}

buildTypes {
getByName("release") {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
Expand Down
18 changes: 1 addition & 17 deletions sample-deps-ksp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,23 +33,7 @@ android {
}

buildTypes {
getByName("debug") {
sourceSets {
getByName("debug") {
java.srcDir(File("build/generated/ksp/debug/java"))
java.srcDir(File("build/generated/ksp/debug/kotlin"))
}
}
}

getByName("release") {
sourceSets {
getByName("release") {
java.srcDir(File("build/generated/ksp/release/java"))
java.srcDir(File("build/generated/ksp/release/kotlin"))
}
}

release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
Expand Down
2 changes: 1 addition & 1 deletion sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ android {
}

buildTypes {
getByName("release") {
release {
isMinifyEnabled = false
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
Expand Down

0 comments on commit cbd813d

Please sign in to comment.