Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaozhan committed Jan 18, 2024
2 parents 9a69302 + 2ebef11 commit f490c28
Show file tree
Hide file tree
Showing 29 changed files with 351 additions and 398 deletions.
41 changes: 24 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,18 @@ jobs:
gpg -d --passphrase "${{ secrets.SECRET_PASSWORD }}" --batch agconnect-services.json.asc > android/app/src/release/agconnect-services.json
- name: Set up JDK 17
uses: actions/setup-java@v3.13.0
uses: actions/setup-java@v4.0.0
with:
java-version: 17
distribution: 'temurin'

- name: Assemble
uses: gradle/gradle-build-action@v2.9.0
uses: gradle/gradle-build-action@v2.11.1
with:
arguments: assemble

- name: Upload Android Artifacts
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.0.0
if: github.event_name == 'push'
with:
name: androidArtifacts
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
uses: actions/[email protected]

- name: Download Android Artifacts
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.1.1
with:
name: androidArtifacts

Expand All @@ -144,8 +144,9 @@ jobs:
file: huawei/release/app-huawei-release.apk

- name: Delete Android Artifacts
uses: geekyeggo/delete-artifact@v2.0.0
uses: geekyeggo/delete-artifact@v4.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: androidArtifacts

- name: Set Job Status
Expand Down Expand Up @@ -184,7 +185,7 @@ jobs:
gpg -d --passphrase "${{ secrets.SECRET_PASSWORD }}" --batch Release.xcconfig.asc > ios/CCC/Resources/Release/Config.xcconfig
- name: Set up JDK 17
uses: actions/setup-java@v3.13.0
uses: actions/setup-java@v4.0.0
with:
java-version: 17
distribution: 'temurin'
Expand All @@ -194,7 +195,7 @@ jobs:
run: fastlane build

- name: Upload iOS Artifacts
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.0.0
if: github.event_name == 'push'
with:
name: iOSArtifacts
Expand All @@ -221,7 +222,7 @@ jobs:
uses: actions/[email protected]

- name: Download iOS IPA
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.1.1
with:
name: iOSArtifacts
path: ios
Expand All @@ -231,8 +232,9 @@ jobs:
run: fastlane distribute

- name: Delete iOS IPA
uses: geekyeggo/delete-artifact@v2.0.0
uses: geekyeggo/delete-artifact@v4.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: iOSArtifacts

- name: Set Job Status
Expand All @@ -251,18 +253,18 @@ jobs:
submodules: 'recursive'

- name: Set up JDK 17
uses: actions/setup-java@v3.13.0
uses: actions/setup-java@v4.0.0
with:
java-version: 17
distribution: 'temurin'

- name: Run Quality Jobs
uses: gradle/gradle-build-action@v2.9.0
uses: gradle/gradle-build-action@v2.11.1
with:
arguments: check koverMergedXmlReport --parallel

- name: Upload Coverage Report
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.0.0
with:
name: coverageReport
path: build/reports/kover/merged/xml/report.xml
Expand All @@ -285,7 +287,7 @@ jobs:
uses: actions/[email protected]

- name: Download Coverage Report
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.1.1
with:
name: coverageReport
path: build
Expand All @@ -303,7 +305,7 @@ jobs:
coverage-reports: build/report.xml

- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@v2.0.2
uses: sonarsource/sonarcloud-github-action@v2.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand All @@ -314,8 +316,9 @@ jobs:
-Dsonar.coverage.jacoco.xmlReportPaths=build/report.xml
- name: Delete Coverage Report
uses: geekyeggo/delete-artifact@v2.0.0
uses: geekyeggo/delete-artifact@v4.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: coverageReport

- name: Set Job Status
Expand All @@ -334,13 +337,13 @@ jobs:
submodules: 'recursive'

- name: Set up JDK 17
uses: actions/setup-java@v3.13.0
uses: actions/setup-java@v4.0.0
with:
java-version: 17
distribution: 'temurin'

- name: Detekt
uses: gradle/gradle-build-action@v2.9.0
uses: gradle/gradle-build-action@v2.11.1
with:
arguments: detektAll

Expand All @@ -351,6 +354,10 @@ jobs:
with:
args: --strict

- name: Cancel other jobs if this fails
if: failure()
uses: andymckay/[email protected]

- name: Set Job Status
id: status
run: echo "status=success" >> $GITHUB_OUTPUT
Expand Down
60 changes: 4 additions & 56 deletions .github/workflows/project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,59 +14,7 @@ on:

jobs:
ProjectAutomations:
runs-on: ubuntu-latest
steps:
- name: 'Add issue to project'
if: github.event_name == 'issues' && (github.event.action == 'opened' || github.event.action == 'reopened')
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: Oztechan
project_id: 2
resource_node_id: ${{ github.event.issue.node_id }}
operation_mode: custom_field
custom_field_values: '[{\"name\": \"Iteration\",\"type\": \"iteration\",\"value\": \"@current\"}]'

- name: 'Move Related Issue to "🏗 PR Review"'
if: github.event_name == 'pull_request' && (github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'reopened')
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: Oztechan
project_id: 2
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "🏗 PR Review"
move_related_issues: true

- name: 'Add Dependency PR by renovate to "🏗 PR Review"'
if: github.event_name == 'pull_request' && github.event.pull_request.user.login == 'renovate[bot]' && (github.event.action == 'opened' || github.event.action == 'ready_for_review' || github.event.action == 'reopened')
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: Oztechan
project_id: 2
resource_node_id: ${{ github.event.pull_request.node_id }}
operation_mode: custom_field
custom_field_values: '[{\"name\": \"Iteration\",\"type\": \"iteration\",\"value\": \"@current\"}]'

- name: 'Move Related Issue to "🚧 In Progress"'
if: github.event_name == 'pull_request' && github.event.action == 'converted_to_draft'
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: Oztechan
project_id: 2
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "🚧 In Progress"
move_related_issues: true

- name: 'Move Related Issue to "✅ Done"'
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
uses: leonsteinhaeuser/[email protected]
with:
gh_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
organization: Oztechan
project_id: 2
resource_node_id: ${{ github.event.pull_request.node_id }}
status_value: "✅ Done"
move_related_issues: true
uses: Oztechan/Global/.github/workflows/reusable-project.yml@a3db254980b0b8f7931b1f591676a3a9473bfcfb
with:
project_id: 2
secrets: inherit
29 changes: 16 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,30 +79,30 @@ jobs:
gpg -d --passphrase "${{ secrets.SECRET_PASSWORD }}" --batch agconnect-services.json.asc > android/app/src/release/agconnect-services.json
- name: Set up JDK 17
uses: actions/setup-java@v3.13.0
uses: actions/setup-java@v4.0.0
with:
java-version: 17
distribution: 'temurin'

- name: Generate Artifacts
uses: gradle/gradle-build-action@v2.9.0
uses: gradle/gradle-build-action@v2.11.1
with:
arguments: :android:app:bundleRelease :backend:app:jar --parallel

- name: Upload Google App Bundle
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.0.0
with:
name: googleBundle
path: android/app/build/outputs/bundle/googleRelease/app-google-release.aab

- name: Upload Huawei App Bundle
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.0.0
with:
name: huaweiBundle
path: android/app/build/outputs/bundle/huaweiRelease/app-huawei-release.aab

- name: Upload Backend Jar
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.0.0
with:
name: backendJar
path: backend/app/build/libs/app-*.jar
Expand All @@ -119,7 +119,7 @@ jobs:
steps:

- name: Download App Bundle
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.1.1
with:
name: googleBundle

Expand All @@ -138,8 +138,9 @@ jobs:
status: completed

- name: Delete App Bundle
uses: geekyeggo/delete-artifact@v2.0.0
uses: geekyeggo/delete-artifact@v4.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: googleBundle

- name: Set Job Status
Expand All @@ -154,7 +155,7 @@ jobs:
steps:

- name: Download App Bundle
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.1.1
with:
name: huaweiBundle

Expand All @@ -169,8 +170,9 @@ jobs:
file-name: "app-huawei-release"

- name: Delete App Bundle
uses: geekyeggo/delete-artifact@v2.0.0
uses: geekyeggo/delete-artifact@v4.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: huaweiBundle

- name: Set Job Status
Expand All @@ -185,13 +187,13 @@ jobs:
steps:

- name: Download Backend Jar
uses: actions/download-artifact@v3.0.2
uses: actions/download-artifact@v4.1.1
with:
name: backendJar
path: artifact

- name: Deploy to Server
uses: easingthemes/ssh-deploy@v4.1.10
uses: easingthemes/ssh-deploy@v5.0.0
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
REMOTE_HOST: ${{ secrets.REMOTE_HOST }}
Expand All @@ -200,8 +202,9 @@ jobs:
SOURCE: "artifact/"

- name: Delete Backend Jar
uses: geekyeggo/delete-artifact@v2.0.0
uses: geekyeggo/delete-artifact@v4.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: backendJar

- name: Set Job Status
Expand All @@ -220,7 +223,7 @@ jobs:
fetch-depth: 0

- name: Set up JDK 17
uses: actions/setup-java@v3.13.0
uses: actions/setup-java@v4.0.0
with:
java-version: 17
distribution: 'temurin'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.oztechan.ccc.client.core.analytics

import android.content.Context
import com.google.firebase.Firebase
import com.google.firebase.analytics.FirebaseAnalytics
import com.google.firebase.analytics.ktx.analytics
import com.google.firebase.analytics.ktx.logEvent
import com.google.firebase.ktx.Firebase
import com.google.firebase.analytics.analytics
import com.google.firebase.analytics.logEvent
import com.oztechan.ccc.client.core.analytics.model.Event
import com.oztechan.ccc.client.core.analytics.model.ScreenName
import com.oztechan.ccc.client.core.analytics.model.UserProperty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import com.oztechan.ccc.client.core.persistence.SuspendPersistence
import com.oztechan.ccc.client.core.persistence.SuspendPersistenceImpl
import com.russhwolf.settings.NSUserDefaultsSettings
import com.russhwolf.settings.ObservableSettings
import com.russhwolf.settings.Settings
import com.russhwolf.settings.coroutines.FlowSettings
import com.russhwolf.settings.coroutines.SuspendSettings
import com.russhwolf.settings.coroutines.toFlowSettings
Expand All @@ -20,6 +21,7 @@ actual val clientCorePersistenceModule = module {
single<ObservableSettings> {
NSUserDefaultsSettings(get<NativeDependencyWrapper>().userDefaults)
}
single<Settings> { get<ObservableSettings>() }
@Suppress("OPT_IN_USAGE")
single<SuspendSettings> { get<ObservableSettings>().toSuspendSettings() }
@Suppress("OPT_IN_USAGE")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.oztechan.ccc.client.core.remoteconfig

import co.touchlab.kermit.Logger
import com.google.firebase.ktx.Firebase
import com.google.firebase.Firebase
import com.google.firebase.remoteconfig.FirebaseRemoteConfigSettings
import com.google.firebase.remoteconfig.ktx.remoteConfig
import com.google.firebase.remoteconfig.remoteConfig

actual abstract class BaseConfigService<T> actual constructor(
default: T,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<string name="four">4</string>
<string name="five">5</string>
<string name="six">6</string>
<string name="multiply">*</string>
<string name="multiply">x</string>
<string name="one">1</string>
<string name="two">2</string>
<string name="three">3</string>
Expand Down
Loading

0 comments on commit f490c28

Please sign in to comment.