Skip to content

Commit

Permalink
Merge pull request #1014 from hyperskill/release/1.57
Browse files Browse the repository at this point in the history
Release 1.57
  • Loading branch information
ivan-magda authored May 14, 2024
2 parents 3fe273e + e9e53af commit 5487005
Show file tree
Hide file tree
Showing 217 changed files with 4,571 additions and 1,314 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-android/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ runs:

- name: Setup Ruby
if: ${{ inputs.setup-ruby == 'true' }}
uses: ruby/setup-ruby@v1.171.0
uses: ruby/setup-ruby@v1.175.1
with:
ruby-version: '3.3.0'
bundler-cache: true
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-ios/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ runs:
shell: bash

- name: Setup Ruby
uses: ruby/setup-ruby@v1.171.0
uses: ruby/setup-ruby@v1.175.1
with:
ruby-version: '3.3.0'
bundler-cache: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/android_beta_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3
Expand All @@ -47,7 +47,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
id: setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android_deploy_to_firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
id: setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/android_deploy_to_firebase_manually.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/android_release_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3
Expand All @@ -39,7 +39,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
id: setup
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/automerge_into_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT }}

- name: Setup Ruby
uses: ruby/setup-ruby@v1.171.0
uses: ruby/setup-ruby@v1.175.1
with:
ruby-version: "3.3.0"
bundler-cache: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build_caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
uses: ./.github/actions/setup-android
Expand All @@ -55,7 +55,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
id: setup
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3
Expand All @@ -64,7 +64,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
uses: ./.github/actions/setup-android
Expand All @@ -91,7 +91,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
uses: ./.github/actions/setup-android
Expand All @@ -115,10 +115,10 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup Ruby
uses: ruby/setup-ruby@v1.171.0
uses: ruby/setup-ruby@v1.175.1
with:
ruby-version: '3.3.0'
bundler-cache: true
Expand Down Expand Up @@ -151,7 +151,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
id: setup
Expand All @@ -175,7 +175,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
id: setup
Expand All @@ -198,7 +198,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
id: setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cleanup_pr_caches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Cleanup
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Detect changes
uses: dorny/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh_pages_analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
uses: ./.github/actions/setup-android
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ios_beta_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3
Expand All @@ -40,7 +40,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
id: setup
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ios_release_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3
Expand All @@ -36,7 +36,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
id: setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ios_unit_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4

- name: Setup CI
id: setup
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge_main_into_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected].1
uses: actions/[email protected].4
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import android.os.Build
import androidx.appcompat.app.AppCompatDelegate
import coil.ImageLoader
import coil.ImageLoaderFactory
import org.hyperskill.app.analytic.injection.PlatformAnalyticComponent
import org.hyperskill.app.android.core.extensions.NotificationChannelInitializer
import org.hyperskill.app.android.core.injection.AndroidAppComponent
import org.hyperskill.app.android.core.injection.AndroidAppComponentImpl
Expand Down Expand Up @@ -56,7 +57,7 @@ class HyperskillApp : Application(), ImageLoaderFactory {

setNightMode(appGraph)
initSentry(appGraph)
initAppsFlyer(appGraph)
initAnalyticEngines(appGraph.platformAnalyticComponent)
initChannels()
}

Expand All @@ -67,8 +68,9 @@ class HyperskillApp : Application(), ImageLoaderFactory {
appGraph.sentryComponent.sentryInteractor.setup()
}

private fun initAppsFlyer(appGraph: AndroidAppComponent) {
appGraph.platformAnalyticComponent.appsFlyerAnalyticEngine.startup()
private fun initAnalyticEngines(platformAnalyticComponent: PlatformAnalyticComponent) {
platformAnalyticComponent.appsFlyerAnalyticEngine.startup()
platformAnalyticComponent.amplitudeAnalyticEngine.startup(this)
}

private fun buildUserAgentInfo() =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package org.hyperskill.app.android.core.view.ui.fragment

import androidx.annotation.IdRes
import androidx.fragment.app.Fragment
import androidx.fragment.app.commitNow

@Suppress("UNCHECKED_CAST")
fun <T> Fragment.parentOfType(klass: Class<T>): T? =
Expand Down Expand Up @@ -32,8 +33,8 @@ fun Fragment.setChildFragment(
if (childFragmentManager.findFragmentByTag(tag) == null) {
val fragment = buildFragment()
childFragmentManager
.beginTransaction()
.add(containerViewId, fragment, tag)
.commitNow()
.commitNow {
add(containerViewId, fragment, tag)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import org.hyperskill.app.android.core.view.ui.navigation.requireRouter
import org.hyperskill.app.android.core.view.ui.widget.compose.HyperskillTheme
import org.hyperskill.app.android.debug.ui.DebugScreen
import org.hyperskill.app.android.stage_implementation.view.navigation.StageImplementationScreen
import org.hyperskill.app.android.step.view.screen.StepScreen
import org.hyperskill.app.android.step.view.navigation.StepScreen
import org.hyperskill.app.core.view.handleActions
import org.hyperskill.app.debug.presentation.DebugFeature
import org.hyperskill.app.debug.presentation.DebugViewModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import org.hyperskill.app.android.databinding.FragmentHomeBinding
import org.hyperskill.app.android.gamification_toolbar.view.ui.delegate.GamificationToolbarDelegate
import org.hyperskill.app.android.main.view.ui.navigation.MainScreenRouter
import org.hyperskill.app.android.problem_of_day.view.delegate.ProblemOfDayCardFormDelegate
import org.hyperskill.app.android.step.view.screen.StepScreen
import org.hyperskill.app.android.step.view.navigation.StepScreen
import org.hyperskill.app.android.topics_repetitions.view.delegate.TopicsRepetitionCardFormDelegate
import org.hyperskill.app.android.topics_repetitions.view.screen.TopicsRepetitionScreen
import org.hyperskill.app.challenges.widget.view.model.ChallengeWidgetViewState
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import org.hyperskill.app.android.notification_onboarding.fragment.Notifications
import org.hyperskill.app.android.notification_onboarding.navigation.NotificationsOnboardingScreen
import org.hyperskill.app.android.paywall.fragment.PaywallFragment
import org.hyperskill.app.android.paywall.navigation.PaywallScreen
import org.hyperskill.app.android.step.view.screen.StepScreen
import org.hyperskill.app.android.step.view.navigation.StepScreen
import org.hyperskill.app.android.streak_recovery.view.delegate.StreakRecoveryViewActionDelegate
import org.hyperskill.app.android.track_selection.list.navigation.TrackSelectionListScreen
import org.hyperskill.app.android.users_questionnaire_onboarding.fragment.UsersQuestionnaireOnboardingFragment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.github.terrakok.cicerone.Router
import org.hyperskill.app.android.main.view.ui.navigation.MainScreen
import org.hyperskill.app.android.main.view.ui.navigation.Tabs
import org.hyperskill.app.android.profile.view.dialog.BadgeEarnedDialogFragment
import org.hyperskill.app.android.step.view.screen.StepScreen
import org.hyperskill.app.android.step.view.navigation.StepScreen
import org.hyperskill.app.android.topics_repetitions.view.screen.TopicsRepetitionScreen
import org.hyperskill.app.notification.click_handling.presentation.NotificationClickHandlingFeature
import ru.nobird.android.view.base.ui.extension.showIfNotExists
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ class SentryManagerImpl(

override fun captureMessage(message: String, level: HyperskillSentryLevel, data: Map<String, Any>) {
Sentry.captureMessage(message, level.toSentryLevel()) { scope ->
scope.span.let {
scope.span?.let { span ->
data.forEach { (key, value) ->
it?.setData(key, value)
span.setData(key, value)
}
}
}
Expand Down
Loading

0 comments on commit 5487005

Please sign in to comment.