Skip to content

Commit

Permalink
slide publish
Browse files Browse the repository at this point in the history
  • Loading branch information
kwmt committed Jan 4, 2025
1 parent 66f2592 commit f17916d
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions build-logic/convention/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,9 @@ gradlePlugin {
id = "net.kwmt27.jetpackcomposeplayground.library"
implementationClass = "AndroidLibraryConventionPlugin"
}
register("publish") {
id = "com.github.kwmt.publish"
implementationClass = "PublishPlugin"
}
}
}
16 changes: 16 additions & 0 deletions feature/samples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,22 @@ plugins {
}
android {
namespace = "net.kwmt27.jetpackcomposeplayground.feature.samples"

flavorDimensions += listOf("default")
productFlavors {
register("exposed") {
dimension = "default"
}
register("paid") {
dimension = "default"
}
register("free") {
dimension = "default"
}
}
}


dependencies {
implementation(projects.core.ui)
implementation(libs.androidx.core.ktx)
Expand All @@ -24,4 +38,6 @@ dependencies {

implementation(libs.coil.compose)
implementation(libs.coil.gif)

implementation("io.my-company:my-library:1.0")
}
1 change: 1 addition & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ jetpackcomposeplayground-android-application = { id = "net.kwmt27.jetpackcompose
jetpackcomposeplayground-android-library = { id = "net.kwmt27.jetpackcomposeplayground.library", version = "unspecified" }
jetpackcomposeplayground-android-application-compose = { id = "net.kwmt27.jetpackcomposeplayground.application.compose", version = "unspecified" }
jetpackcomposeplayground-android-library-compose = { id = "net.kwmt27.jetpackcomposeplayground.library.compose", version = "unspecified" }
com-github-kwmt-publish = { id = "com.github.kwmt.publish", version = "unspecified" }
[bundles]

4 changes: 4 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ dependencyResolutionManagement {
gradlePluginPortal()
google()
mavenCentral()
// mavenLocal()
maven {
url = uri("/Users/kwmt/personal/dev/JetpackComposePlayGround/slide/build/repo")
}
}
}

Expand Down
14 changes: 14 additions & 0 deletions slide/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
plugins {
alias(libs.plugins.jetpackcomposeplayground.android.library)
alias(libs.plugins.jetpackcomposeplayground.android.library.compose)
alias(libs.plugins.com.github.kwmt.publish)
}

android {
namespace = "com.github.kwmt.slide"
val defaultDimension = PublishPluginExtension.DEFAUlT_DIEMNSION
flavorDimensions += listOf(defaultDimension)
productFlavors {
register("develop") {
dimension = defaultDimension
}
register("staging") {
dimension = defaultDimension
}
register("production") {
dimension = defaultDimension
}
}
}

dependencies {
Expand Down

0 comments on commit f17916d

Please sign in to comment.