-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/#7 custom plugin #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
52e7e79
feat/#7 : builg-login ๋ชจ๋ ์์ฑ
ashwon12 1422547
feat/#7 : kts ์ด๊ธฐ ์ค์ ( app ๊ธฐ๋ณธ ์ปจ๋ฐด์
์ ์ฉ )
ashwon12 3bee98f
feat/#7 : feature ์ปจ๋ฐด์
์์ฑ
ashwon12 fcb5ef9
feat/#7 : feature ๋ชจ๋ ๊ณตํต ๋น๋ ์ ์ฉ
ashwon12 891aea7
feat/#7 : core๋ชจ๋ ๊ณตํต ๋น๋ ๋ฐ ์์กด์ฑ ์ค์
ashwon12 8346c41
feat/#7 : AppNameExtension ์์ฑ
ashwon12 bbe37e9
feat/#7 : agp ๋ฒ์ ์
ashwon12 0b7e178
feat/#7 : ๋ค์์คํ์ด์ค์ ํจํค์ง ๊ฒฝ๋ก ์ผ์น
ashwon12 4f7d02e
feat/#7 : namespace ์ค์ ์ผ๋ก ์ธํ ํจํค์ง ๊ฒฝ๋ก ์ผ์นํ๋๋ก ์์
ashwon12 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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,10 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
`kotlin-dsl-precompiled-script-plugins` | ||
} | ||
|
||
dependencies { | ||
implementation(libs.android.gradlePlugin) | ||
implementation(libs.kotlin.gradlePlugin) | ||
compileOnly(libs.compose.compiler.gradle.plugin) | ||
} |
This file contains hidden or 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 @@ | ||
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS") | ||
@Suppress("UnstableApiUsage") | ||
dependencyResolutionManagement { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
versionCatalogs { | ||
create("libs") { | ||
from(files("../gradle/libs.versions.toml")) | ||
} | ||
} | ||
} |
This file contains hidden or 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,10 @@ | ||
package com.yapp.app | ||
|
||
import com.yapp.androidExtension | ||
import org.gradle.api.Project | ||
|
||
fun Project.setNamespace(name: String) { | ||
androidExtension.apply { | ||
namespace = "com.yapp.$name" | ||
} | ||
} |
This file contains hidden or 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,35 @@ | ||
package com.yapp | ||
|
||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.dependencies | ||
import org.gradle.kotlin.dsl.getByType | ||
import org.jetbrains.kotlin.compose.compiler.gradle.ComposeCompilerGradlePluginExtension | ||
|
||
internal fun Project.configureCompose() { | ||
with(plugins) { | ||
apply("org.jetbrains.kotlin.plugin.compose") | ||
} | ||
|
||
val libs = extensions.libs | ||
androidExtension.apply { | ||
dependencies { | ||
val bom = libs.findLibrary("androidx-compose-bom").get() | ||
add("implementation", platform(bom)) | ||
add("androidTestImplementation", platform(bom)) | ||
|
||
add("implementation", libs.findLibrary("androidx.material3").get()) | ||
add("implementation", libs.findLibrary("androidx.ui").get()) | ||
add("implementation", libs.findLibrary("androidx.ui.tooling.preview").get()) | ||
add("androidTestImplementation", libs.findLibrary("androidx.junit").get()) | ||
add("androidTestImplementation", libs.findLibrary("androidx.espresso.core").get()) | ||
add("androidTestImplementation", libs.findLibrary("androidx.ui.test.junit4").get()) | ||
add("debugImplementation", libs.findLibrary("androidx.ui.tooling").get()) | ||
add("debugImplementation", libs.findLibrary("androidx.ui.test.manifest").get()) | ||
} | ||
} | ||
|
||
extensions.getByType<ComposeCompilerGradlePluginExtension>().apply { | ||
enableStrongSkippingMode.set(true) | ||
includeSourceInformation.set(true) | ||
} | ||
} |
This file contains hidden or 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,25 @@ | ||
package com.yapp | ||
|
||
import com.android.build.api.dsl.ApplicationExtension | ||
import com.android.build.api.dsl.CommonExtension | ||
import com.android.build.api.dsl.LibraryExtension | ||
import org.gradle.api.Project | ||
import org.gradle.api.artifacts.VersionCatalog | ||
import org.gradle.api.artifacts.VersionCatalogsExtension | ||
import org.gradle.api.plugins.ExtensionContainer | ||
import org.gradle.kotlin.dsl.getByType | ||
|
||
internal val Project.applicationExtension: CommonExtension<*, *, *, *, *, *> | ||
get() = extensions.getByType<ApplicationExtension>() | ||
|
||
internal val Project.libraryExtension: CommonExtension<*, *, *, *, *, *> | ||
get() = extensions.getByType<LibraryExtension>() | ||
|
||
internal val Project.androidExtension: CommonExtension<*, *, *, *, *, *> | ||
get() = runCatching { libraryExtension } | ||
.recoverCatching { applicationExtension } | ||
.onFailure { println("Could not find Library or Application extension from this project") } | ||
.getOrThrow() | ||
|
||
internal val ExtensionContainer.libs: VersionCatalog | ||
get() = getByType<VersionCatalogsExtension>().named("libs") |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.