forked from melod1n/fast-messenger
Refactor: Clean up unused code and improve error handling
This commit performs a general cleanup of the codebase by removing unused dependencies, comments, and functions. It also improves error handling in the build logic. Key changes: - Removed a TODO and an inappropriate function `dickPizda` from `Extensions.kt`. - Removed stale TODO comments from `core/data/build.gradle.kts` and `core/domain/build.gradle.kts`. - Replaced a `TODO` call with a proper `IllegalArgumentException` in `KotlinAndroid.kt` for better error reporting when encountering unsupported project extensions.
This commit is contained in:
@@ -47,7 +47,7 @@ private inline fun <reified T : KotlinBaseExtension> Project.configureKotlin() =
|
||||
when (this) {
|
||||
is KotlinAndroidProjectExtension -> compilerOptions
|
||||
is KotlinJvmProjectExtension -> compilerOptions
|
||||
else -> TODO("Unsupported project extension $this ${T::class}")
|
||||
else -> throw IllegalArgumentException("Unsupported project extension $this ${T::class}")
|
||||
}.apply {
|
||||
jvmTarget = JvmTarget.JVM_21
|
||||
allWarningsAsErrors = warningsAsErrors.toBoolean()
|
||||
|
||||
Reference in New Issue
Block a user