Skip to content

Commit

Permalink
[#1457] Update Oztechan/Global digest to 0d56c9a (#3990)
Browse files Browse the repository at this point in the history
* [#1457] Update mokoResources to v0.24.3 (#3975)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mustafa Ozhan <[email protected]>

* [#1457] Update lifecycle to v2.8.6 (#3967)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mustafa Ozhan <[email protected]>

* [#1457] Update dependency com.lemonappdev:konsist to v0.16.1 (#3840)

* [#1457] Update dependency com.lemonappdev:konsist to v0.16.1

Co-authored-by: Mustafa Ozhan <[email protected]>

* [#1457] Update dependency com.lemonappdev:konsist to v0.16.1

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mustafa Ozhan <[email protected]>

* [#1457] Update koin to v4 (major) (#3956)

* [#1457] Update koin to v4

Co-authored-by: Mustafa Ozhan <[email protected]>

* [#1457] Update koin to v4

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mustafa Ozhan <[email protected]>

* [#1457] Update navigation to v2.8.1 (#3968)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mustafa Ozhan <[email protected]>

* [#1457] Update dependency com.russhwolf:multiplatform-settings to v1.2.0 (#3849)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mustafa Ozhan <[email protected]>

* [#1457] Update submodule/basemob digest to 530a6b0 (#3977)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mustafa Ozhan <[email protected]>

* [#1457] Update dependency com.huawei.hms:ads-prime to v3.4.74.302 (#3974)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mustafa Ozhan <[email protected]>

* [#3979] Open 80 port for backend app (#3981)

* [#3979] Open 80 port for backend app

* [#3979] Open 80 port for backend app

* [#3980] Remove suspends from ktor methods (#3982)

* [#3983] Get rid of unsafe version read (#3984)

* [#1457] Update actions/checkout action to v4.2.0 (#3978)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mustafa Ozhan <[email protected]>

* [#1457] Update submodule/logmob digest to 1cb3e43 (#3986)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mustafa Ozhan <[email protected]>

* [#3985] Refactor Routes with non returning methods (#3989)

* [#3985] Refactor Routes with non returning methods

* [#3985] Refactor Routes with non returning methods

* [#1457] Update dependency ubuntu to v24 (#3988)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mustafa Ozhan <[email protected]>

* [#1457] Update Oztechan/Global digest to 0d56c9a

Co-authored-by: Mustafa Ozhan <[email protected]>

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Mustafa Ozhan <[email protected]>
  • Loading branch information
renovate[bot] and mustafaozhan authored Sep 30, 2024
1 parent aebe5cc commit 067dcb9
Show file tree
Hide file tree
Showing 15 changed files with 84 additions and 77 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
steps:

- name: Setup Gradle Repo
uses: Oztechan/Global/actions/setup-gradle-repo@873e06320ffabbaa07f705b7ea059c248a070f88
uses: Oztechan/Global/actions/setup-gradle-repo@0d56c9a53517f938b3f5183670fb5ed49a890ee7

- name: Adding secret files
uses: ./.github/actions/add-secret-files
Expand All @@ -84,7 +84,7 @@ jobs:
run: echo "status=success" >> $GITHUB_OUTPUT

Notify:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [ Build ]
if: always()
steps:
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
steps:

- name: Setup Gradle Repo
uses: Oztechan/Global/actions/setup-gradle-repo@873e06320ffabbaa07f705b7ea059c248a070f88
uses: Oztechan/Global/actions/setup-gradle-repo@0d56c9a53517f938b3f5183670fb5ed49a890ee7

- name: Adding secret files
uses: ./.github/actions/add-secret-files
Expand Down Expand Up @@ -106,15 +106,15 @@ jobs:
run: echo "status=success" >> $GITHUB_OUTPUT

DistributeAndroid:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [ GradleBuild ]
if: github.event_name == 'push' || github.event_name == 'schedule'
outputs:
status: ${{ steps.status.outputs.status }}
steps:

- name: Clone Repo # Needed for reading commit message for Firebase App Distribution
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Download Android ${{ env.BUILD_TYPE }} Artifacts
uses: actions/[email protected]
Expand Down Expand Up @@ -153,7 +153,7 @@ jobs:
steps:

- name: Setup Gradle Repo
uses: Oztechan/Global/actions/setup-gradle-repo@873e06320ffabbaa07f705b7ea059c248a070f88
uses: Oztechan/Global/actions/setup-gradle-repo@0d56c9a53517f938b3f5183670fb5ed49a890ee7

- name: Adding secret files
uses: ./.github/actions/add-secret-files
Expand Down Expand Up @@ -199,14 +199,14 @@ jobs:
run: echo "status=success" >> $GITHUB_OUTPUT

DistributeIOS:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [ XCodeBuild ]
if: github.event_name == 'push' || github.event_name == 'schedule'
outputs:
status: ${{ steps.status.outputs.status }}
steps:
- name: Clone Repo
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Download iOS ${{ env.BUILD_TYPE }} Artifacts
uses: actions/[email protected]
Expand Down Expand Up @@ -237,7 +237,7 @@ jobs:
steps:

- name: Setup Gradle Repo
uses: Oztechan/Global/actions/setup-gradle-repo@873e06320ffabbaa07f705b7ea059c248a070f88
uses: Oztechan/Global/actions/setup-gradle-repo@0d56c9a53517f938b3f5183670fb5ed49a890ee7

- name: Test
run: ./gradlew test
Expand All @@ -251,13 +251,13 @@ jobs:
run: echo "status=success" >> $GITHUB_OUTPUT

Coverage:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
outputs:
status: ${{ steps.status.outputs.status }}
steps:

- name: Setup Gradle Repo
uses: Oztechan/Global/actions/setup-gradle-repo@873e06320ffabbaa07f705b7ea059c248a070f88
uses: Oztechan/Global/actions/setup-gradle-repo@0d56c9a53517f938b3f5183670fb5ed49a890ee7

- name: Generate Coverage
run: ./gradlew koverXmlReport
Expand Down Expand Up @@ -294,13 +294,13 @@ jobs:
run: echo "status=success" >> $GITHUB_OUTPUT

CodeAnalysis:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
outputs:
status: ${{ steps.status.outputs.status }}
steps:

- name: Setup Gradle Repo
uses: Oztechan/Global/actions/setup-gradle-repo@873e06320ffabbaa07f705b7ea059c248a070f88
uses: Oztechan/Global/actions/setup-gradle-repo@0d56c9a53517f938b3f5183670fb5ed49a890ee7

- name: Detekt & Lint
run: ./gradlew detektAll lint
Expand All @@ -321,7 +321,7 @@ jobs:
run: echo "status=success" >> $GITHUB_OUTPUT

Notify:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [ GradleBuild, XCodeBuild, Test, Coverage, CodeAnalysis, DistributeAndroid, DistributeIOS ]
if: always()
steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:

jobs:
ProjectAutomations:
uses: Oztechan/Global/.github/workflows/reusable-project.yml@873e06320ffabbaa07f705b7ea059c248a070f88
uses: Oztechan/Global/.github/workflows/reusable-project.yml@0d56c9a53517f938b3f5183670fb5ed49a890ee7
with:
project_id: 2
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:

PublishRelease:
uses: Oztechan/Global/.github/workflows/reusable-publish.yml@873e06320ffabbaa07f705b7ea059c248a070f88
uses: Oztechan/Global/.github/workflows/reusable-publish.yml@0d56c9a53517f938b3f5183670fb5ed49a890ee7
with:
slack_channel: "ccc-github"
secrets: inherit
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@ env:
jobs:

GenerateGradleArtifacts:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
outputs:
status: ${{ steps.status.outputs.status }}
steps:

- name: Setup Gradle Repo
uses: Oztechan/Global/actions/setup-gradle-repo@873e06320ffabbaa07f705b7ea059c248a070f88
uses: Oztechan/Global/actions/setup-gradle-repo@0d56c9a53517f938b3f5183670fb5ed49a890ee7

- name: Adding secret files
uses: ./.github/actions/add-secret-files
Expand Down Expand Up @@ -102,14 +102,14 @@ jobs:
run: echo "status=success" >> $GITHUB_OUTPUT

UploadToGooglePlay:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [ GenerateGradleArtifacts ]
outputs:
status: ${{ steps.status.outputs.status }}
steps:

- name: Clone Repo
uses: actions/checkout@v4.1.7
uses: actions/checkout@v4.2.0

- name: Download App Bundle
uses: actions/[email protected]
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
run: echo "status=success" >> $GITHUB_OUTPUT

UploadToHuaweiAppGallery:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [ GenerateGradleArtifacts ]
outputs:
status: ${{ steps.status.outputs.status }}
Expand Down Expand Up @@ -179,7 +179,7 @@ jobs:
run: echo "status=success" >> $GITHUB_OUTPUT

DeployToServer:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [ GenerateGradleArtifacts ]
outputs:
status: ${{ steps.status.outputs.status }}
Expand Down Expand Up @@ -215,7 +215,7 @@ jobs:
status: ${{ steps.status.outputs.status }}
steps:
- name: Setup Gradle Repo
uses: Oztechan/Global/actions/setup-gradle-repo@873e06320ffabbaa07f705b7ea059c248a070f88
uses: Oztechan/Global/actions/setup-gradle-repo@0d56c9a53517f938b3f5183670fb5ed49a890ee7

- name: Adding secret files
uses: ./.github/actions/add-secret-files
Expand All @@ -239,7 +239,7 @@ jobs:
run: echo "status=success" >> $GITHUB_OUTPUT

Notify:
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
needs: [ GenerateGradleArtifacts, UploadToGooglePlay, UploadToHuaweiAppGallery, DeployToServer, UploadToAppStore ]
if: always()
steps:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@ import io.ktor.server.routing.get
private const val PATH_BY_BASE = "/currency/byBase/"
private const val PARAMETER_BASE = "base"

internal suspend fun Route.getCurrencyByName(
internal fun Route.getCurrencyByName(
apiController: APIController
) = get(PATH_BY_BASE) {
Logger.v { "GET Request $PATH_BY_BASE" }
) {
get(PATH_BY_BASE) {
Logger.v { "GET Request $PATH_BY_BASE" }

call.parameters[PARAMETER_BASE]?.let { base ->
Logger.v { "Parameter: $PARAMETER_BASE $base" }
call.parameters[PARAMETER_BASE]?.let { base ->
Logger.v { "Parameter: $PARAMETER_BASE $base" }

apiController.getExchangeRateByBase(base)
?.let { call.respond(HttpStatusCode.OK, it) }
?: call.respond(HttpStatusCode.NotFound)
} ?: call.respond(HttpStatusCode.BadRequest)
apiController.getExchangeRateByBase(base)
?.let { call.respond(HttpStatusCode.OK, it) }
?: call.respond(HttpStatusCode.NotFound)
} ?: call.respond(HttpStatusCode.BadRequest)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ import io.ktor.server.routing.get
private const val PATH_ERROR = "/error"
private const val ERROR_HTML = "error.html"

internal suspend fun Route.getError() = get(PATH_ERROR) {
Logger.v { "GET Request $PATH_ERROR" }
internal fun Route.getError() {
get(PATH_ERROR) {
Logger.v { "GET Request $PATH_ERROR" }

javaClass.classLoader?.getResource(ERROR_HTML)?.readText()?.let { resource ->
call.respondText(
text = resource,
contentType = ContentType.Text.Html,
status = HttpStatusCode.OK
)
} ?: call.respond(HttpStatusCode.NotFound)
javaClass.classLoader?.getResource(ERROR_HTML)?.readText()?.let { resource ->
call.respondText(
text = resource,
contentType = ContentType.Text.Html,
status = HttpStatusCode.OK
)
} ?: call.respond(HttpStatusCode.NotFound)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@ import io.ktor.server.routing.get
private const val PATH_ROOT = "/"
private const val INDEX_HTML = "index.html"

internal suspend fun Route.getRoot() = get(PATH_ROOT) {
Logger.v { "GET Request $PATH_ROOT" }
internal fun Route.getRoot() {
get(PATH_ROOT) {
Logger.v { "GET Request $PATH_ROOT" }

javaClass.classLoader?.getResource(INDEX_HTML)?.readText()?.let { resource ->
call.respondText(
text = resource,
contentType = ContentType.Text.Html,
status = HttpStatusCode.OK
)
} ?: call.respond(HttpStatusCode.NotFound)
javaClass.classLoader?.getResource(INDEX_HTML)?.readText()?.let { resource ->
call.respondText(
text = resource,
contentType = ContentType.Text.Html,
status = HttpStatusCode.OK
)
} ?: call.respond(HttpStatusCode.NotFound)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ import io.ktor.server.routing.get

private const val PATH_VERSION = "/version"

internal suspend fun Route.getVersion() = get(PATH_VERSION) {
Logger.v { "GET Request $PATH_VERSION" }
internal fun Route.getVersion() {
get(PATH_VERSION) {
Logger.v { "GET Request $PATH_VERSION" }

call.respondText(
text = "Version: ${javaClass.`package`.implementationVersion}",
contentType = ContentType.Text.Plain,
status = HttpStatusCode.OK
)
call.respondText(
text = "Version: ${javaClass.`package`?.implementationVersion}",
contentType = ContentType.Text.Plain,
status = HttpStatusCode.OK
)
}
}
4 changes: 2 additions & 2 deletions backend/app/src/main/resources/application.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ktor {
deployment {
port = 8080
port = ${?PORT}
port = 8080 ; TODO can be removed when enough amount of users are using the 80 port
port = 80
}
application {
modules = [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.oztechan.ccc.client.core.viewmodel.di

import com.oztechan.ccc.client.core.viewmodel.BaseViewModel
import org.koin.androidx.viewmodel.dsl.viewModel
import org.koin.core.definition.Definition
import org.koin.core.definition.KoinDefinition
import org.koin.core.module.Module
import org.koin.core.module.dsl.viewModel
import org.koin.core.qualifier.Qualifier

actual inline fun <reified T : BaseViewModel> Module.viewModelDefinition(
Expand Down
20 changes: 10 additions & 10 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ detekt = "1.23.7"
androidDesugaring = "2.1.2"
androidMaterial = "1.12.0"
constraintLayout = "2.1.4"
koinCore = "3.5.6"
koinCompose = "3.5.6"
koinAndroid = "3.5.6"
koinKtor = "3.5.6"
koinCore = "4.0.0"
koinCompose = "4.0.0"
koinAndroid = "4.0.0"
koinKtor = "4.0.0"
ktor = "2.3.12"
multiplatformSettings = "1.1.1"
multiplatformSettings = "1.2.0"
firebaseAnalytics = "22.1.0"
firebaseRemoteConfig = "22.0.0"
googleServices = "4.4.2"
Expand All @@ -25,24 +25,24 @@ firebasePerPlugin = "1.4.2"
firebaseCrashlyticsPlugin = "3.0.2"
googleAds = "23.3.0"
googleUmp = "3.0.0"
huaweiAds = "3.4.74.300"
huaweiAds = "3.4.74.302"
huaweiOsm = "1.3.35"
navigation = "2.8.0"
navigation = "2.8.1"
playCoreReview = "2.0.1"
kotlinXDateTime = "0.6.1"
coroutines = "1.9.0"
billing = "7.0.0"
leakCanary = "2.14"
sqlDelight = "1.5.5"
lifecycle = "2.8.5"
mokoResources = "0.24.2"
lifecycle = "2.8.6"
mokoResources = "0.24.3"
buildKonfig = "0.15.2"
splashScreen = "1.0.1"
kover = "0.8.3"
rootBeer = "0.1.1"
anrWatchDog = "1.4.0"
kermit = "2.0.4"
konsist = "0.15.1"
konsist = "0.16.1"

[libraries]
# COMMON
Expand Down
2 changes: 1 addition & 1 deletion submodule/basemob
2 changes: 1 addition & 1 deletion submodule/logmob
Loading

0 comments on commit 067dcb9

Please sign in to comment.