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 Mar 26, 2024
2 parents 237c35d + 2f1b23f commit d2b1df8
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 48 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ jobs:
file: huawei/release/app-huawei-release.apk

- name: Delete Android Artifacts
uses: geekyeggo/delete-artifact@v4.1.0
uses: geekyeggo/delete-artifact@v5.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: androidArtifacts
Expand Down Expand Up @@ -235,7 +235,7 @@ jobs:
fastlane distribute
- name: Delete iOS IPA
uses: geekyeggo/delete-artifact@v4.1.0
uses: geekyeggo/delete-artifact@v5.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: iOSArtifacts
Expand Down Expand Up @@ -319,7 +319,7 @@ jobs:
-Dsonar.coverage.jacoco.xmlReportPaths=build/report.xml
- name: Delete Coverage Report
uses: geekyeggo/delete-artifact@v4.1.0
uses: geekyeggo/delete-artifact@v5.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: coverageReport
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ jobs:
status: completed

- name: Delete App Bundle
uses: geekyeggo/delete-artifact@v4.1.0
uses: geekyeggo/delete-artifact@v5.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: googleBundle
Expand Down Expand Up @@ -170,7 +170,7 @@ jobs:
file-name: "app-huawei-release"

- name: Delete App Bundle
uses: geekyeggo/delete-artifact@v4.1.0
uses: geekyeggo/delete-artifact@v5.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: huaweiBundle
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
SOURCE: "artifact/"

- name: Delete Backend Jar
uses: geekyeggo/delete-artifact@v4.1.0
uses: geekyeggo/delete-artifact@v5.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: backendJar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import com.oztechan.ccc.client.viewmodel.calculator.CalculatorViewModel
import com.oztechan.ccc.client.viewmodel.calculator.util.toValidList
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.flow.onStart
import kotlinx.coroutines.launch
import org.koin.android.ext.android.inject
import org.koin.androidx.viewmodel.ext.android.viewModel

Expand Down Expand Up @@ -85,24 +83,22 @@ class CalculatorFragment : BaseVBFragment<FragmentCalculatorBinding>() {
calculatorViewModel.event.onBaseChange(it)
}

private fun FragmentCalculatorBinding.initViews() = viewLifecycleOwner.lifecycleScope.launch {
private fun FragmentCalculatorBinding.initViews() {
adViewContainer.setBannerAd(
adManager = adManager,
adId = if (BuildConfig.DEBUG) {
getString(R.string.banner_ad_unit_id_calculator_debug)
} else {
getString(R.string.banner_ad_unit_id_calculator_release)
},
shouldShowAd = calculatorViewModel.state.value.isBannerAdVisible
)
recyclerViewMain.adapter = calculatorAdapter
}

@SuppressLint("SetTextI18n")
private fun FragmentCalculatorBinding.observeStates() = calculatorViewModel.state
.flowWithLifecycle(lifecycle)
.onStart {
adViewContainer.setBannerAd(
adManager = adManager,
adId = if (BuildConfig.DEBUG) {
getString(R.string.banner_ad_unit_id_calculator_debug)
} else {
getString(R.string.banner_ad_unit_id_calculator_release)
},
shouldShowAd = calculatorViewModel.state.value.isBannerAdVisible
)
}
.onEach {
with(it) {
calculatorAdapter.submitList(currencyList.toValidList(calculatorViewModel.state.value.base))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import com.oztechan.ccc.client.viewmodel.currencies.CurrenciesEffect
import com.oztechan.ccc.client.viewmodel.currencies.CurrenciesViewModel
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.flow.onStart
import org.koin.android.ext.android.inject
import org.koin.androidx.viewmodel.ext.android.viewModel

Expand Down Expand Up @@ -65,6 +64,16 @@ class CurrenciesFragment : BaseVBFragment<FragmentCurrenciesBinding>() {
}

private fun FragmentCurrenciesBinding.initViews() {
adViewContainer.setBannerAd(
adManager = adManager,
adId = if (BuildConfig.DEBUG) {
getString(R.string.banner_ad_unit_id_currencies_debug)
} else {
getString(R.string.banner_ad_unit_id_currencies_release)
},
shouldShowAd = currenciesViewModel.state.value.isBannerAdVisible
)

setSpanByOrientation(resources.configuration.orientation)

with(recyclerViewCurrencies) {
Expand All @@ -75,17 +84,6 @@ class CurrenciesFragment : BaseVBFragment<FragmentCurrenciesBinding>() {

private fun FragmentCurrenciesBinding.observeStates() = currenciesViewModel.state
.flowWithLifecycle(lifecycle)
.onStart {
adViewContainer.setBannerAd(
adManager = adManager,
adId = if (BuildConfig.DEBUG) {
getString(R.string.banner_ad_unit_id_currencies_debug)
} else {
getString(R.string.banner_ad_unit_id_currencies_release)
},
shouldShowAd = currenciesViewModel.state.value.isBannerAdVisible
)
}
.onEach {
with(it) {
currenciesAdapter.submitList(currencyList)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ import com.oztechan.ccc.client.viewmodel.settings.model.PremiumStatus
import com.oztechan.ccc.client.viewmodel.settings.util.numberToIndex
import kotlinx.coroutines.flow.launchIn
import kotlinx.coroutines.flow.onEach
import kotlinx.coroutines.flow.onStart
import org.koin.android.ext.android.inject
import org.koin.androidx.viewmodel.ext.android.viewModel

Expand Down Expand Up @@ -66,6 +65,16 @@ class SettingsFragment : BaseVBFragment<FragmentSettingsBinding>() {

@Suppress("LongMethod")
private fun FragmentSettingsBinding.initViews() {
adViewContainer.setBannerAd(
adManager = adManager,
adId = if (BuildConfig.DEBUG) {
getString(R.string.banner_ad_unit_id_settings_debug)
} else {
getString(R.string.banner_ad_unit_id_settings_release)
},
shouldShowAd = settingsViewModel.state.value.isBannerAdVisible
)

with(itemCurrencies) {
imgSettingsItem.setBackgroundResource(R.drawable.ic_currency)
settingsItemTitle.text = getString(R.string.settings_item_currencies_title)
Expand Down Expand Up @@ -131,17 +140,6 @@ class SettingsFragment : BaseVBFragment<FragmentSettingsBinding>() {

private fun FragmentSettingsBinding.observeStates() = settingsViewModel.state
.flowWithLifecycle(lifecycle)
.onStart {
adViewContainer.setBannerAd(
adManager = adManager,
adId = if (BuildConfig.DEBUG) {
getString(R.string.banner_ad_unit_id_settings_debug)
} else {
getString(R.string.banner_ad_unit_id_settings_release)
},
shouldShowAd = settingsViewModel.state.value.isBannerAdVisible
)
}
.onEach {
with(it) {
itemCurrencies.settingsItemValue.text = requireContext().getString(
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

kotlin = "1.9.23"
ksp = "1.9.23-1.0.19"
detekt = "1.23.5"
detekt = "1.23.6"
androidGradlePlugin = "8.2.2"
composeCompiler = "1.5.11"
compose = "1.6.3"
Expand Down
6 changes: 3 additions & 3 deletions ios/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ GEM
artifactory (3.0.17)
atomos (0.1.3)
aws-eventstream (1.3.0)
aws-partitions (1.898.0)
aws-partitions (1.899.0)
aws-sdk-core (3.191.4)
aws-eventstream (~> 1, >= 1.3.0)
aws-partitions (~> 1, >= 1.651.0)
aws-sigv4 (~> 1.8)
jmespath (~> 1, >= 1.6.1)
aws-sdk-kms (1.77.0)
aws-sdk-kms (1.78.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sigv4 (~> 1.1)
aws-sdk-s3 (1.145.0)
aws-sdk-s3 (1.146.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.8)
Expand Down

0 comments on commit d2b1df8

Please sign in to comment.