-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
하드 코딩된 문자열을 이용하는 findVersion, findLibrary 함수를 사용하지 않는 방향으로 리팩토링, 휴먼 에러 방지
- Loading branch information
Showing
13 changed files
with
101 additions
and
42 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
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
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
File renamed without changes.
48 changes: 48 additions & 0 deletions
48
build-logic/src/main/kotlin/com/nexters/ilab/android/Dependencies.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,48 @@ | ||
package com.nexters.ilab.android | ||
|
||
import org.gradle.api.artifacts.Dependency | ||
import org.gradle.api.artifacts.dsl.DependencyHandler | ||
|
||
fun DependencyHandler.implementation(dependencyNotation: Any): Dependency? { | ||
return add("implementation", dependencyNotation) | ||
} | ||
|
||
fun DependencyHandler.ksp(dependencyNotation: Any): Dependency? { | ||
return add("ksp", dependencyNotation) | ||
} | ||
|
||
fun DependencyHandler.androidTestImplementation(dependencyNotation: Any): Dependency? { | ||
return add("androidTestImplementation", dependencyNotation) | ||
} | ||
|
||
fun DependencyHandler.debugImplementation(dependencyNotation: Any): Dependency? { | ||
return add("debugImplementation", dependencyNotation) | ||
} | ||
|
||
fun DependencyHandler.testImplementation(dependencyNotation: Any): Dependency? { | ||
return add("testImplementation", dependencyNotation) | ||
} | ||
|
||
fun DependencyHandler.coreLibraryDesugaring(dependencyNotation: Any): Dependency? { | ||
return add("coreLibraryDesugaring", dependencyNotation) | ||
} | ||
|
||
fun DependencyHandler.detektPlugins(dependencyNotation: Any): Dependency? { | ||
return add("detektPlugins", dependencyNotation) | ||
} | ||
|
||
fun DependencyHandler.compileOnly(dependencyNotation: Any): Dependency? { | ||
return add("compileOnly", dependencyNotation) | ||
} | ||
|
||
fun DependencyHandler.project( | ||
path: String, | ||
configuration: String? = null, | ||
): Dependency { | ||
return project( | ||
mapOf( | ||
"path" to path, | ||
"configuration" to configuration, | ||
).filterValues { it != null } | ||
) | ||
} |
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
File renamed without changes.