Skip to content
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

Configure Ceres Module Metadata for Winds Publication #191

Merged
merged 1 commit into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -127,22 +127,22 @@ android {

dependencies {
// application configuration
implementation(project(":framework:core"))
implementation(projects.framework.frameworkCore)

// screen builder
implementation(project(":screen:builder"))
implementation(project(":screen:core"))
implementation(projects.screen.builder)
implementation(projects.screen.screenCore)

// default screens
// TODO split into locale and ui
implementation(project(":screen:ui"))
implementation(projects.screen.screenUi)

// theme config
implementation(project(":ui:theme"))
implementation(projects.ui.theme)

// monetisation
implementation(project(":monetisation:admob"))
implementation(project(":monetisation:messaging"))
implementation(projects.monetisation.admob)
implementation(projects.monetisation.messaging)

implementation(libs.kotlinx.serialization.json)
implementation(libs.kotlinx.serialization.protobuf)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ private fun HomeScreen(
},
)

repeat(10) {
repeat(1) {
NativeAd<HomeNativeAdBeta>()
repeat(5) {
Box(
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@
limitations under the License.
-->
<resources>
<string name="app_name">Ceres</string>
<string name="app_name" translatable="false">Ceres</string>
<string name="admob_application_id" translatable="false">ca-app-pub-3940256099942544~3347511713</string>
</resources>
21 changes: 13 additions & 8 deletions backup/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,24 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import dev.teogor.winds.api.model.createVersion

import dev.teogor.winds.ktx.createVersion

plugins {
alias(libs.plugins.winds)
alias(libs.plugins.teogor.winds)
}

winds {
mavenPublish {
displayName = "Backup"
name = "backup"

version = createVersion(1, 0, 0) {
alphaRelease(1)
moduleMetadata {
artifactDescriptor {
name = "Backup"
version = createVersion(1, 0, 0) {
alphaRelease(1)
}
}
}

publishingOptions {
publish = false
}
}
14 changes: 8 additions & 6 deletions backup/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

plugins {
id("dev.teogor.ceres.android.library")
id("dev.teogor.ceres.android.hilt")
id("kotlinx-serialization")
alias(libs.plugins.winds)
alias(libs.plugins.teogor.winds)
}

android {
Expand All @@ -28,8 +29,8 @@ android {
}

dependencies {
api(project(":data:database"))
api(project(":data:datastore"))
api(projects.data.database)
api(projects.data.datastore)

implementation(libs.kotlinx.datetime)
implementation(libs.kotlinx.serialization.json)
Expand All @@ -38,8 +39,9 @@ dependencies {
}

winds {
mavenPublish {
displayName = "Core"
name = "core"
moduleMetadata {
artifactDescriptor {
name = "Core"
}
}
}
10 changes: 6 additions & 4 deletions backup/ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

plugins {
id("dev.teogor.ceres.android.feature")
id("dev.teogor.ceres.android.library.compose")
id("dev.teogor.ceres.android.library.jacoco")
id("dev.teogor.ceres.android.hilt")
id("kotlinx-serialization")
alias(libs.plugins.winds)
alias(libs.plugins.teogor.winds)
}

android {
Expand All @@ -30,8 +31,9 @@ android {
}

winds {
mavenPublish {
displayName = "UI"
name = "ui"
moduleMetadata {
artifactDescriptor {
name = "UI"
}
}
}
23 changes: 12 additions & 11 deletions bom/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,24 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import dev.teogor.winds.api.model.createVersion

import dev.teogor.winds.api.ArtifactIdFormat
import dev.teogor.winds.ktx.createVersion

plugins {
alias(libs.plugins.winds)
alias(libs.plugins.teogor.winds)
}

winds {
mavenPublish {
displayName = "BoM"
name = "bom"

artifactIdElements = 1
moduleMetadata {
isBom = true

version = createVersion(1, 0, 0) {
alphaRelease(4)
artifactDescriptor {
name = "BoM"
version = createVersion(1, 0, 0) {
alphaRelease(4)
}
artifactIdFormat = ArtifactIdFormat.NAME_ONLY
}

defineBoM()
}
}
Loading
Loading