diff --git a/.github/workflows/build-and-deploy-site.yaml b/.github/workflows/build-and-deploy-site.yaml deleted file mode 100644 index 9838510dd..000000000 --- a/.github/workflows/build-and-deploy-site.yaml +++ /dev/null @@ -1,28 +0,0 @@ -name: Build And Deploy Web App - -# Trigger conditions for the workflow -on: - pull_request: - branches: [ "dev" ] - types: [ closed ] - workflow_dispatch: - -# Concurrency settings to manage multiple workflow runs -# This ensures orderly deployment to production environment -concurrency: - group: "web-pages" - cancel-in-progress: false - -permissions: - contents: read # Read repository contents - pages: write # Write to GitHub Pages - id-token: write # Write authentication tokens - pull-requests: write # Write to pull requests - -jobs: - build_and_deploy_web: - name: Build And Deploy Web App - uses: openMF/mifos-mobile-github-actions/.github/workflows/build-and-deploy-site.yaml@main - secrets: inherit - with: - web_package_name: 'mifospay-web' \ No newline at end of file diff --git a/.github/workflows/monthly-version-tag.yaml b/.github/workflows/monthly-version-tag.yaml deleted file mode 100644 index 4c1c4c1f6..000000000 --- a/.github/workflows/monthly-version-tag.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: Tag Monthly Release - -on: - # Allow manual triggering of the workflow - workflow_dispatch: - # Schedule the workflow to run monthly - schedule: - # Runs at 03:30 UTC on the first day of every month - # Cron syntax: minute hour day-of-month month day-of-week - - cron: '30 3 1 * *' - -concurrency: - group: "monthly-release" - cancel-in-progress: false - -jobs: - monthly_release: - name: Tag Monthly Release - uses: openMF/mifos-mobile-github-actions/.github/workflows/monthly-version-tag.yaml@main - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/multi-platform-build-and-publish.yaml b/.github/workflows/multi-platform-build-and-publish.yaml deleted file mode 100644 index 07d47b8a1..000000000 --- a/.github/workflows/multi-platform-build-and-publish.yaml +++ /dev/null @@ -1,69 +0,0 @@ -name: Multi-Platform(Re-Usable) App Build and Publish - -on: - workflow_dispatch: - inputs: - release_type: - type: choice - options: - - internal - - beta - default: internal - description: Release Type - - target_branch: - type: string - default: 'dev' - description: 'Target branch for release' - - publish_android: - type: boolean - default: false - description: Publish Android App On Play Store - - publish_ios: - type: boolean - default: false - description: Publish iOS App On App Store - - publish_desktop: - type: boolean - default: false - description: Publish Desktop Apps On App Store - - publish_web: - type: boolean - default: true - description: Publish Web App - - build_ios: - type: boolean - default: false - description: Build iOS App - -permissions: - contents: write - id-token: write - pages: write - -concurrency: - group: "reusable" - cancel-in-progress: false - -jobs: - multi_platform_build_and_publish: - name: Multi-Platform Build and Publish - uses: openMF/mifos-mobile-github-actions/.github/workflows/multi-platform-build-and-publish.yaml@main - secrets: inherit - with: - android_package_name: 'mifospay-android' - ios_package_name: 'mifospay-ios' - desktop_package_name: 'mifospay-desktop' - web_package_name: 'mifospay-web' - release_type: ${{ inputs.release_type }} - target_branch: ${{ inputs.target_branch }} - publish_android: ${{ inputs.publish_android }} - build_ios: ${{ inputs.build_ios }} - publish_ios: ${{ inputs.publish_ios }} - publish_desktop: ${{ inputs.publish_desktop }} - publish_web: ${{ inputs.publish_web }} diff --git a/.github/workflows/pr-check.yaml b/.github/workflows/pr-check.yaml deleted file mode 100644 index fac076fef..000000000 --- a/.github/workflows/pr-check.yaml +++ /dev/null @@ -1,24 +0,0 @@ -name: PR Checks - -# Trigger conditions for the workflow -on: - push: - branches: [ dev ] # Runs on pushes to dev branch - pull_request: # Runs on all pull requests - -# Concurrency settings to prevent multiple simultaneous workflow runs -concurrency: - group: pr-${{ github.ref }} - cancel-in-progress: true # Cancels previous runs if a new one is triggered - -permissions: - contents: write - -jobs: - pr_checks: - name: PR Checks - uses: openMF/mifos-mobile-github-actions/.github/workflows/pr-check.yaml@main - secrets: inherit - with: - android_package_name: 'mifospay-android' - desktop_package_name: 'mifospay-desktop' \ No newline at end of file diff --git a/.github/workflows/promote-to-production.yaml b/.github/workflows/promote-to-production.yaml deleted file mode 100644 index 83bb71670..000000000 --- a/.github/workflows/promote-to-production.yaml +++ /dev/null @@ -1,32 +0,0 @@ -name: Promote Release to Play Store - -# Workflow triggers: -# 1. Manual trigger with option to publish to Play Store -# 2. Automatic trigger when a GitHub release is published -on: - workflow_dispatch: - inputs: - publish_to_play_store: - required: false - default: false - description: Publish to Play Store? - type: boolean - release: - types: [ released ] - -concurrency: - group: "production-deploy" - cancel-in-progress: false - -permissions: - contents: write - -jobs: - # Job to promote app from beta to production in Play Store - play_promote_production: - name: Promote Beta to Production Play Store - uses: openMF/mifos-mobile-github-actions/.github/workflows/promote-to-production.yaml@main - if: ${{ inputs.publish_to_play_store == true }} - secrets: inherit - with: - android_package_name: 'mifospay-android' \ No newline at end of file diff --git a/.github/workflows/tag-weekly-release.yaml b/.github/workflows/tag-weekly-release.yaml deleted file mode 100644 index 09881b5bb..000000000 --- a/.github/workflows/tag-weekly-release.yaml +++ /dev/null @@ -1,25 +0,0 @@ -# Workflow to automatically create weekly version tags and trigger beta releases -# This workflow runs every Sunday at 4:00 AM UTC and can also be triggered manually - -name: Tag Weekly Release - -on: - # Allow manual triggering of the workflow - workflow_dispatch: - # Schedule the workflow to run weekly - schedule: - # Runs at 04:00 UTC every Sunday - # Cron syntax: minute hour day-of-month month day-of-week - - cron: '0 4 */2 * 0' - -concurrency: - group: "weekly-release" - cancel-in-progress: false - -jobs: - tag: - name: Tag Weekly Release - uses: openMF/mifos-mobile-github-actions/.github/workflows/tag-weekly-release.yaml@main - secrets: inherit - with: - target_branch: 'dev' \ No newline at end of file diff --git a/feature/accounts/src/commonMain/kotlin/org/mifospay/feature/accounts/beneficiary/AddEditBeneficiaryViewModel.kt b/feature/accounts/src/commonMain/kotlin/org/mifospay/feature/accounts/beneficiary/AddEditBeneficiaryViewModel.kt index dcd90478a..a83aab12b 100644 --- a/feature/accounts/src/commonMain/kotlin/org/mifospay/feature/accounts/beneficiary/AddEditBeneficiaryViewModel.kt +++ b/feature/accounts/src/commonMain/kotlin/org/mifospay/feature/accounts/beneficiary/AddEditBeneficiaryViewModel.kt @@ -12,8 +12,6 @@ package org.mifospay.feature.accounts.beneficiary import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.viewModelScope import kotlinx.coroutines.flow.SharingStarted -import kotlinx.coroutines.flow.launchIn -import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.stateIn import kotlinx.coroutines.flow.update import kotlinx.coroutines.launch diff --git a/feature/auth/src/commonMain/kotlin/org/mifospay/feature/auth/mobileVerify/MobileVerificationViewModel.kt b/feature/auth/src/commonMain/kotlin/org/mifospay/feature/auth/mobileVerify/MobileVerificationViewModel.kt index 6a02827d3..43fa389d9 100644 --- a/feature/auth/src/commonMain/kotlin/org/mifospay/feature/auth/mobileVerify/MobileVerificationViewModel.kt +++ b/feature/auth/src/commonMain/kotlin/org/mifospay/feature/auth/mobileVerify/MobileVerificationViewModel.kt @@ -11,8 +11,6 @@ package org.mifospay.feature.auth.mobileVerify import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.viewModelScope -import kotlinx.coroutines.flow.launchIn -import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.update import kotlinx.coroutines.launch import org.mifospay.core.common.DataState diff --git a/feature/auth/src/commonMain/kotlin/org/mifospay/feature/auth/signup/SignupViewModel.kt b/feature/auth/src/commonMain/kotlin/org/mifospay/feature/auth/signup/SignupViewModel.kt index 0ce65ae00..b35cf6522 100644 --- a/feature/auth/src/commonMain/kotlin/org/mifospay/feature/auth/signup/SignupViewModel.kt +++ b/feature/auth/src/commonMain/kotlin/org/mifospay/feature/auth/signup/SignupViewModel.kt @@ -12,8 +12,6 @@ package org.mifospay.feature.auth.signup import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.viewModelScope import kotlinx.coroutines.Job -import kotlinx.coroutines.flow.launchIn -import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.update import kotlinx.coroutines.launch import org.mifospay.core.common.DataState diff --git a/feature/editpassword/src/commonMain/kotlin/org/mifospay/feature/editpassword/EditPasswordViewModel.kt b/feature/editpassword/src/commonMain/kotlin/org/mifospay/feature/editpassword/EditPasswordViewModel.kt index f9101ffcc..6a238b09b 100644 --- a/feature/editpassword/src/commonMain/kotlin/org/mifospay/feature/editpassword/EditPasswordViewModel.kt +++ b/feature/editpassword/src/commonMain/kotlin/org/mifospay/feature/editpassword/EditPasswordViewModel.kt @@ -13,8 +13,6 @@ import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.viewModelScope import kotlinx.coroutines.Job import kotlinx.coroutines.flow.SharingStarted -import kotlinx.coroutines.flow.launchIn -import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.stateIn import kotlinx.coroutines.flow.update import kotlinx.coroutines.launch diff --git a/feature/invoices/src/commonMain/kotlin/org/mifospay/feature/invoices/InvoicesViewModel.kt b/feature/invoices/src/commonMain/kotlin/org/mifospay/feature/invoices/InvoicesViewModel.kt index fb3d5db7c..df043d75a 100644 --- a/feature/invoices/src/commonMain/kotlin/org/mifospay/feature/invoices/InvoicesViewModel.kt +++ b/feature/invoices/src/commonMain/kotlin/org/mifospay/feature/invoices/InvoicesViewModel.kt @@ -13,9 +13,7 @@ import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.viewModelScope import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.SharingStarted -import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.mapLatest -import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.stateIn import org.mifospay.core.common.DataState import org.mifospay.core.common.Parcelable diff --git a/feature/kyc/src/commonMain/kotlin/org/mifospay/feature/kyc/KYCDescriptionViewModel.kt b/feature/kyc/src/commonMain/kotlin/org/mifospay/feature/kyc/KYCDescriptionViewModel.kt index f651624c7..c44f9f524 100644 --- a/feature/kyc/src/commonMain/kotlin/org/mifospay/feature/kyc/KYCDescriptionViewModel.kt +++ b/feature/kyc/src/commonMain/kotlin/org/mifospay/feature/kyc/KYCDescriptionViewModel.kt @@ -14,9 +14,7 @@ import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.viewModelScope import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.SharingStarted -import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.mapLatest -import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.stateIn import org.mifospay.core.common.DataState import org.mifospay.core.common.Parcelable diff --git a/feature/kyc/src/commonMain/kotlin/org/mifospay/feature/kyc/KYCLevel2ViewModel.kt b/feature/kyc/src/commonMain/kotlin/org/mifospay/feature/kyc/KYCLevel2ViewModel.kt index acc54fbf0..6bd01878a 100644 --- a/feature/kyc/src/commonMain/kotlin/org/mifospay/feature/kyc/KYCLevel2ViewModel.kt +++ b/feature/kyc/src/commonMain/kotlin/org/mifospay/feature/kyc/KYCLevel2ViewModel.kt @@ -14,8 +14,6 @@ import androidx.lifecycle.viewModelScope import io.github.vinceglb.filekit.core.PlatformFile import io.github.vinceglb.filekit.core.baseName import io.github.vinceglb.filekit.core.extension -import kotlinx.coroutines.flow.launchIn -import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.update import kotlinx.coroutines.launch import org.mifospay.core.common.DataState diff --git a/feature/make-transfer/src/commonMain/kotlin/org/mifospay/feature/make/transfer/MakeTransferViewModel.kt b/feature/make-transfer/src/commonMain/kotlin/org/mifospay/feature/make/transfer/MakeTransferViewModel.kt index 84b0e8a72..9fa6509fd 100644 --- a/feature/make-transfer/src/commonMain/kotlin/org/mifospay/feature/make/transfer/MakeTransferViewModel.kt +++ b/feature/make-transfer/src/commonMain/kotlin/org/mifospay/feature/make/transfer/MakeTransferViewModel.kt @@ -13,9 +13,7 @@ import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.viewModelScope import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.SharingStarted -import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.mapLatest -import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.stateIn import kotlinx.coroutines.flow.update import kotlinx.coroutines.launch diff --git a/feature/payments/src/commonMain/kotlin/org/mifospay/feature/payments/TransferViewModel.kt b/feature/payments/src/commonMain/kotlin/org/mifospay/feature/payments/TransferViewModel.kt index 6da2b7870..969b442e7 100644 --- a/feature/payments/src/commonMain/kotlin/org/mifospay/feature/payments/TransferViewModel.kt +++ b/feature/payments/src/commonMain/kotlin/org/mifospay/feature/payments/TransferViewModel.kt @@ -10,9 +10,6 @@ package org.mifospay.feature.payments import androidx.lifecycle.SavedStateHandle -import androidx.lifecycle.viewModelScope -import kotlinx.coroutines.flow.launchIn -import kotlinx.coroutines.flow.onEach import org.mifospay.core.common.Parcelable import org.mifospay.core.common.Parcelize import org.mifospay.core.datastore.UserPreferencesRepository diff --git a/feature/request-money/src/commonMain/kotlin/org/mifospay/feature/request/money/ShowQrViewModel.kt b/feature/request-money/src/commonMain/kotlin/org/mifospay/feature/request/money/ShowQrViewModel.kt index 0a3de6292..1a2c50fc9 100644 --- a/feature/request-money/src/commonMain/kotlin/org/mifospay/feature/request/money/ShowQrViewModel.kt +++ b/feature/request-money/src/commonMain/kotlin/org/mifospay/feature/request/money/ShowQrViewModel.kt @@ -29,8 +29,6 @@ import io.github.alexzhirkevich.qrose.options.circle import io.github.alexzhirkevich.qrose.options.roundCorners import io.github.alexzhirkevich.qrose.options.solid import kotlinx.coroutines.flow.SharingStarted -import kotlinx.coroutines.flow.launchIn -import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.stateIn import kotlinx.coroutines.flow.update import kotlinx.coroutines.launch diff --git a/feature/savedcards/src/commonMain/kotlin/org/mifospay/feature/savedcards/details/CardDetailViewModel.kt b/feature/savedcards/src/commonMain/kotlin/org/mifospay/feature/savedcards/details/CardDetailViewModel.kt index 0cd07a273..ee5c3c182 100644 --- a/feature/savedcards/src/commonMain/kotlin/org/mifospay/feature/savedcards/details/CardDetailViewModel.kt +++ b/feature/savedcards/src/commonMain/kotlin/org/mifospay/feature/savedcards/details/CardDetailViewModel.kt @@ -14,9 +14,7 @@ import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.viewModelScope import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.SharingStarted -import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.mapLatest -import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.stateIn import org.mifospay.core.common.DataState import org.mifospay.core.common.Parcelable diff --git a/feature/standing-instruction/src/commonMain/kotlin/org/mifospay/feature/standing/instruction/StandingInstructionViewModel.kt b/feature/standing-instruction/src/commonMain/kotlin/org/mifospay/feature/standing/instruction/StandingInstructionViewModel.kt index de63f4d63..bc363b9aa 100644 --- a/feature/standing-instruction/src/commonMain/kotlin/org/mifospay/feature/standing/instruction/StandingInstructionViewModel.kt +++ b/feature/standing-instruction/src/commonMain/kotlin/org/mifospay/feature/standing/instruction/StandingInstructionViewModel.kt @@ -14,9 +14,7 @@ import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.viewModelScope import kotlinx.coroutines.ExperimentalCoroutinesApi import kotlinx.coroutines.flow.SharingStarted -import kotlinx.coroutines.flow.launchIn import kotlinx.coroutines.flow.mapLatest -import kotlinx.coroutines.flow.onEach import kotlinx.coroutines.flow.stateIn import kotlinx.coroutines.flow.update import kotlinx.coroutines.launch