Skip to content

Commit

Permalink
Merge pull request #301 from hyperskill/release/1.7
Browse files Browse the repository at this point in the history
* Polling submission in shared

^ALTAPPS-462

* Fix Android dialogFragment dismiss events are not logged to analytics

^ALTAPPS-470 Needs testing

* Fix Android crash when calling startActivity without try/catch

^ALTAPPS-419 Needs testing

* Implement delegate to store serializable value in arguments

* Fix chosenColumns field is not saved into arguments

* Update hypercoins balance after buying streak freeze

^ALTAPPS-482

* Fix RU localisation usage on Android from ru.nobird.android.ui lib

* Update gms libs on Android

* Fix AuthSocialWebViewFragment crash on Android

^ALTAPPS-334 Needs testing

* Enable nonTransitive Rclass on Android

^ALTAPPS-501 Needs testing

* Fix Android app crash in local notifications

^ALTAPPS-332 Needs testing

* Fix representation of hypercoins in home header on iOS

^ALTAPPS-504

* Fix incorrect step analytic route on both platforms

^ALTAPPS-466

* Update Kotlin from 1.6.21 to 1.7.21

^ALTAPPS-488 Fixed

* Update Kotlin from 1.6.21 to 1.7.21

^ALTAPPS-488 Fixed

* Update release notes for beta testers

* Android: Enable debug controls

* Set version to 1.7 & bump build

* GitHub Actions: Bump actions/checkout from 3.2.0 to 3.3.0 (#302)

Bumps [actions/checkout](https://github.com/actions/checkout) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@v3.2.0...v3.3.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Incorrect next daily problem in timer value

^ALTAPPS-427 Needs Testing

* Fix choices elements HTML rendering (no line breaks) in iOS

^ALTAPPS-414 Needs Testing

* CI/CD build caches for default branch

^ALTAPPS-493

* Deploy analytics docs also from develop branch

* Android remove redundant profileDailyRemindersSwitchCompat checked condition

* Android: add theory button to repeat step screen

^ALTAPPS-479 Needs testing

* Android:l Change not completed streak icon in header

^ALTAPPS-475 Needs testing

* Sync incorrect next problem of day in representation

^ALTAPPS-428 Needs testing

* Disable analytics docs deployment for develop branch

It requires conditional check -> deploy only if push to develop contains analytics changes.

* Replace spinner loading with skeleton on Home and Track screens

^APTAPPS-459 Needs testing

* Fix ActivityNotFound crashes 

^ALTAPPS-522 Needs tesing

* Update iOS launch screen year

^ALTAPPS-525 Fixed

* Shared change endpoint config on demand & debug feature draft

^ALTAPPS-424

* iOS change uncompleted streak icon in header

^ALTAPPS-517 Fixed

* Show earned gems count after daily problem solved

^ALTAPPS-503

* Update splash screen on Android 

^ALTAPPS-533

* Update notification icon and color to it

* Move ImageLoader into AndroidAppComponent root

^ALTAPPS-534 Resolved

* Fix StepQuiz feature crash on Android

^ALTAPPS-520 Fixed

*  Fix Android incorrect repetition stats diagram

^ALTAPPS-484 Needs testing

* Add force_build_ios input

* Add force_build_android input

* CI/CD ability to force run lint & unit tests

* CI/CD bump Xcode version from 14.1 to 14.2

^ALTAPPS-538 Fixed

* Shared load gems and streak on the Track screen

^ALTAPPS-506

* Implement GamificationToolbar UI on Android 

^ALTAPPS-519 Needs testing

* Move GamificationToolbarReducer to presentation package

* Update release notes for beta testers

* Bump build

* ALTAPPS-548: provide error data when Sentry transaction failed

* ALTAPPS-548: add Sentry breadcrumbs

* Fix next problem in formatting on Android

^ALTAPPS-428

* ALTAPPS-549: Update Ruby from 2.6.5 to 3.2.0

* ALTAPPS-549: Downgrade Ruby from 3.2.0 to 3.1.0

* Bump build

* ALTAPPS-547: Bump Sentry & update configuration

Configure HTTP Client Errors, Swizzling, Watchdog Terminations, App Hangs and Performance Monitoring.

* iOS: Bump build

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Vladislav Kashchey <[email protected]>
Co-authored-by: Zhukov Aleksandr <[email protected]>
Co-authored-by: Zhukov Aleksandr <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
5 people authored Jan 20, 2023
2 parents b2af86d + 2aac90a commit 328cf13
Show file tree
Hide file tree
Showing 270 changed files with 3,286 additions and 1,546 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 @@ -64,7 +64,7 @@ runs:
if: ${{ inputs.setup-ruby == 'true' }}
uses: ruby/[email protected]
with:
ruby-version: '2.6.5'
ruby-version: '3.1.0'
bundler-cache: true
working-directory: './androidHyperskillApp'

Expand Down
18 changes: 2 additions & 16 deletions .github/actions/setup-ios/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ inputs:
google-cloud-storage-code-signing-certificates-key:
description: 'gc_keys.json file base64 content for code signing APIs communication'
required: false
cache-cocoapods-on-pods-cache-miss:
description: 'Should cache cocoapods on Pods cache miss'
required: false
default: false

outputs:
is-git-crypt-unlocked:
Expand All @@ -24,7 +20,7 @@ runs:
- name: Setup Xcode version
uses: maxim-lobanov/[email protected]
with:
xcode-version: '14.1'
xcode-version: '14.2'

- name: Homebrew install git-crypt
run: brew install git-crypt
Expand Down Expand Up @@ -54,7 +50,7 @@ runs:
- name: Setup Ruby
uses: ruby/[email protected]
with:
ruby-version: '2.6.5'
ruby-version: '3.1.0'
bundler-cache: true
working-directory: './iosHyperskillApp'

Expand Down Expand Up @@ -111,16 +107,6 @@ runs:
restore-keys: |
${{ runner.os }}-pods-
# Cache Cocoapods repository
- name: Cache Cocoapods
if: ${{ inputs.cache-cocoapods-on-pods-cache-miss == 'true' && steps.cache-pods.outputs.cache-hit != 'true' }}
uses: actions/[email protected]
with:
path: ~/.cocoapods
key: ${{ runner.os }}-cocoapods-${{ hashFiles('iosHyperskillApp/Podfile.lock') }}
restore-keys: |
${{ runner.os }}-cocoapods-
# Install Pods if cache miss occurred
- name: Install Pods
if: steps.cache-pods.outputs.cache-hit != 'true'
Expand Down
6 changes: 5 additions & 1 deletion .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ android:
- androidHyperskillApp/**

ci/cd:
- .github/workflows/**
- .github/workflows/**
- .github/actions/**
- .github/dependabot.yml
- .github/filters.yaml
- .github/labeler.yml
4 changes: 2 additions & 2 deletions .github/workflows/android_beta_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- name: Gradle Wrapper Validation
uses: gradle/[email protected]
Expand All @@ -41,7 +41,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- name: Setup CI
id: setup
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 @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- name: Gradle Wrapper Validation
uses: gradle/[email protected]
Expand All @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- name: Setup CI
id: setup
Expand Down
21 changes: 16 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,17 @@ on:
- 'feature/**'
- 'dependabot/bundler/**'
workflow_dispatch:
inputs:
force_build_android:
description: 'Force build Android'
required: false
default: false
type: boolean
force_build_ios:
description: 'Force build iOS'
required: false
default: false
type: boolean

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
Expand All @@ -27,14 +38,14 @@ jobs:

build-android:
needs: files-changed
if: ${{ needs.files-changed.outputs.android == 'true' || needs.files-changed.outputs.shared == 'true' }}
if: ${{ inputs.force_build_android || needs.files-changed.outputs.android == 'true' || needs.files-changed.outputs.shared == 'true' }}
name: Build Android
runs-on: ubuntu-22.04
timeout-minutes: 60

steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- name: Setup CI
id: setup
Expand All @@ -51,14 +62,14 @@ jobs:

build-ios:
needs: files-changed
if: ${{ needs.files-changed.outputs.ios == 'true' || needs.files-changed.outputs.shared == 'true' }}
if: ${{ inputs.force_build_ios || needs.files-changed.outputs.ios == 'true' || needs.files-changed.outputs.shared == 'true' }}
name: Build iOS
runs-on: macos-12
timeout-minutes: 60

steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- name: Setup CI
id: setup
Expand All @@ -73,4 +84,4 @@ jobs:
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 60
IS_GIT_CRYPT_UNLOCKED: ${{ steps.setup.outputs.is-git-crypt-unlocked }}
GITHUB_USER: ${{ github.actor }}
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60 changes: 60 additions & 0 deletions .github/workflows/build_caches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Build Caches

on:
push:
branches:
- 'develop'
workflow_dispatch:
# Runs at 00:00 UTC every sunday
schedule:
- cron: "0 0 * * 0"

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: false

defaults:
run:
shell: bash

jobs:
build-android:
name: Build Android Caches
runs-on: ubuntu-22.04
timeout-minutes: 60

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

- name: Setup CI
uses: ./.github/actions/setup-android
with:
setup-ruby: true

- name: Clean
run: ./gradlew clean
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-ios:
name: Build iOS Caches
runs-on: macos-12
timeout-minutes: 60

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

- name: Setup CI
id: setup
uses: ./.github/actions/setup-ios
with:
git-crypt-key: ${{ secrets.GIT_CRYPT_KEY }}

- name: Clean
run: ./gradlew clean
env:
GITHUB_USER: ${{ github.actor }}
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- name: Cleanup
run: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- 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 @@ -23,7 +23,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- 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 @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- name: Gradle Wrapper Validation
uses: gradle/[email protected]
Expand All @@ -41,7 +41,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- name: Setup CI
id: setup
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/ios_release_deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- name: Gradle Wrapper Validation
uses: gradle/[email protected]
Expand All @@ -35,13 +35,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- name: Setup CI
id: setup
uses: ./.github/actions/setup-ios
with:
cache-cocoapods-on-pods-cache-miss: true
git-crypt-key: ${{ secrets.GIT_CRYPT_KEY }}
google-cloud-storage-code-signing-certificates-key: ${{ secrets.GOOGLE_CLOUD_STORAGE_CODE_SIGNING_CERTIFICATES_KEY_CONTENT }}

Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ on:
branches:
- 'feature/**'
workflow_dispatch:
inputs:
force_ktlint:
description: 'Force run ktlint'
required: false
default: false
type: boolean
force_swiftlint:
description: 'Force run SwiftLint'
required: false
default: false
type: boolean

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
Expand All @@ -25,14 +36,14 @@ jobs:

ktlint:
needs: files-changed
if: ${{ needs.files-changed.outputs.android == 'true' || needs.files-changed.outputs.shared == 'true' }}
if: ${{ inputs.force_ktlint || needs.files-changed.outputs.android == 'true' || needs.files-changed.outputs.shared == 'true' }}
name: Run ktlint
runs-on: ubuntu-22.04
timeout-minutes: 60

steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- name: Setup CI
uses: ./.github/actions/setup-android
Expand All @@ -45,14 +56,14 @@ jobs:

swiftlint:
needs: files-changed
if: ${{ needs.files-changed.outputs.ios == 'true' }}
if: ${{ inputs.force_swiftlint || needs.files-changed.outputs.ios == 'true' }}
name: Run SwiftLint
runs-on: macos-12
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v3.2.0
uses: actions/checkout@v3.3.0

- name: Run SwiftLint
working-directory: './iosHyperskillApp'
Expand Down
Loading

0 comments on commit 328cf13

Please sign in to comment.