Skip to content

Commit

Permalink
Added querent plugin from dev.teogor.querent to project
Browse files Browse the repository at this point in the history
  • Loading branch information
teogor committed Nov 22, 2023
1 parent 9a065ba commit 1902fde
Show file tree
Hide file tree
Showing 67 changed files with 37 additions and 7,743 deletions.
36 changes: 0 additions & 36 deletions .github/workflows/publish-querent.yml

This file was deleted.

12 changes: 6 additions & 6 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@
*/
import dev.teogor.ceres.CeresBuildType
import dev.teogor.ceres.Version
import dev.teogor.linguistic.Country
import dev.teogor.linguistic.Language
import dev.teogor.linguistic.territorialize
import dev.teogor.xenoglot.Country
import dev.teogor.xenoglot.Language
import dev.teogor.xenoglot.territorialize

plugins {
id("dev.teogor.ceres.android.application")
id("dev.teogor.ceres.android.application.compose")
id("dev.teogor.ceres.android.application.jacoco")
id("dev.teogor.ceres.android.application.firebase")
id("dev.teogor.ceres.android.library.config")
id("dev.teogor.ceres.android.hilt")
id("dev.teogor.ceres.android.room")
id("dev.teogor.querent.plugin")
id("kotlinx-serialization")
id("jacoco")

alias(libs.plugins.querent)

// Feature :: About
alias(libs.plugins.about.libraries) apply true
}

querenet {
querent {
buildFeatures {
buildProfile = true
xmlResources = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ import androidx.compose.material.icons.filled.Business
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import dev.teogor.ceres.BuildConfig
import dev.teogor.ceres.core.runtime.AppMetadataManager
import dev.teogor.ceres.build.BuildProfile
import dev.teogor.ceres.framework.core.app.BaseActions
import dev.teogor.ceres.framework.core.app.setScreenInfo
import dev.teogor.ceres.framework.core.screen.floatingButton
Expand Down Expand Up @@ -52,7 +51,6 @@ import dev.teogor.ceres.screen.ui.about.aboutHeaderVersion
import dev.teogor.ceres.screen.ui.about.aboutMadeIn
import dev.teogor.ceres.screen.ui.about.aboutOpenAppInfo
import dev.teogor.ceres.screen.ui.about.aboutOpenSourceLicenses
import java.time.LocalDateTime
import dev.teogor.ceres.screen.ui.res.Resources

@Composable
Expand Down Expand Up @@ -103,11 +101,7 @@ private fun AboutLayout() = LazyColumnLayoutBase(
// BuildConfigBet

aboutBuildDate(
LocalDateTime.ofEpochSecond(
BuildConfig.BUILD_DATE_TIME.toLong(),
0,
AppMetadataManager.zoneOffset,
),
BuildProfile.buildLocalDateTime,
)

aboutHeaderAboutUs()
Expand Down
10 changes: 9 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,25 @@ buildscript {

// Lists all plugins used throughout the project without applying them.
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.serialization) apply false

alias(libs.plugins.android.application) apply false

alias(libs.plugins.firebase.crashlytics) apply false
alias(libs.plugins.firebase.perf) apply false

alias(libs.plugins.gms) apply false
alias(libs.plugins.hilt) apply false
alias(libs.plugins.ksp) apply false

alias(libs.plugins.querent) apply false


alias(libs.plugins.about.libraries) apply false
alias(libs.plugins.vanniktech.maven) apply false


alias(libs.plugins.dokka)
alias(libs.plugins.spotless)
alias(libs.plugins.api.validator)
Expand Down
8 changes: 8 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ lifecycleRuntimeKtx = "2.6.2"
okhttp = "4.10.0"
protobuf = "3.24.0"
protobufPlugin = "0.9.4"
querent = "1.0.0-alpha01"
retrofit = "2.9.0"
retrofitKotlinxSerializationJson = "1.0.0"
room = "2.6.0"
Expand All @@ -73,6 +74,7 @@ kotlin-poet = "1.14.2"
kotlin-xml-builder = "1.9.1"
kotlinx-serialization-core = "1.6.0"
jdom2 = "2.0.6.1"
xenoglot-bom = "1.0.0-alpha01"

[libraries]
about-libraries-core = { group = "com.mikepenz", name = "aboutlibraries-core", version.ref = "aboutLibraries" }
Expand Down Expand Up @@ -183,6 +185,11 @@ kotlin-poet = { group = "com.squareup", name = "kotlinpoet", version.ref = "kotl
kotlin-xml-builder = { module = "org.redundent:kotlin-xml-builder", version.ref = "kotlin-xml-builder" }
kotlinx-serialization-core = { module = "org.jetbrains.kotlinx:kotlinx-serialization-core", version.ref = "kotlinx-serialization-core" }
jdom2 = { module = "org.jdom:jdom2", version.ref = "jdom2" }
# Xenoglot BoM
xenoglot-bom = { group = "dev.teogor.xenoglot", name = "bom", version.ref = "xenoglot-bom" }
# Xenoglot Libraries
xenoglot-android = { group = "dev.teogor.xenoglot", name = "android" }
xenoglot-core = { group = "dev.teogor.xenoglot", name = "core" }

# Dependencies of the included build-logic
android-gradlePlugin = { group = "com.android.tools.build", name = "gradle", version.ref = "androidGradlePlugin" }
Expand All @@ -209,6 +216,7 @@ api-validator = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", v
gradle-publish = { id = "com.gradle.plugin-publish", version.ref = "gradlePublish" }
build-config = { id = "com.github.gmazzo.buildconfig", version.ref = "buildConfig" }
vanniktech-maven = { id = "com.vanniktech.maven.publish", version.ref = "vanniktechMavenPlugin" }
querent = { id = "dev.teogor.querent", version.ref = "querent" }

[bundles]

Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class AndroidLibraryConventionPlugin : Plugin<Project> {

extensions.configure<LibraryExtension> {
configureKotlinAndroid(this)
// TODO remove ??? deprecated
defaultConfig.targetSdk = 34
configureFlavors(this@configure)
configureGradleManagedDevices(this)
Expand Down
1 change: 0 additions & 1 deletion querent/api/.gitignore

This file was deleted.

39 changes: 0 additions & 39 deletions querent/api/build.gradle.kts

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions querent/api/src/main/kotlin/dev/teogor/querent/api/BuildProfile.kt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 1902fde

Please sign in to comment.