-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1072 from hyperskill/release/1.61
Release 1.61
- Loading branch information
Showing
428 changed files
with
9,466 additions
and
3,965 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
source "https://rubygems.org" | ||
ruby "3.3.0" | ||
|
||
gem "fastlane", "2.220.0" | ||
gem "fastlane", "2.221.1" | ||
|
||
eval_gemfile("fastlane/Pluginfile") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
fastlane_version "2.220.0" | ||
fastlane_version "2.221.0" | ||
|
||
default_platform(:android) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
...lApp/src/main/java/org/hyperskill/app/android/core/extensions/HapticFeedbackExtentions.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.hyperskill.app.android.core.extensions | ||
|
||
import android.view.HapticFeedbackConstants | ||
import android.view.View | ||
import androidx.core.view.HapticFeedbackConstantsCompat | ||
|
||
fun View.performRejectHapticFeedback(flag: Int = 0): Boolean = | ||
performHapticFeedback(HapticFeedbackConstantsCompat.REJECT, flag = flag) | ||
|
||
fun View.performConfirmHapticFeedback(flag: Int = 0): Boolean = | ||
performHapticFeedback(HapticFeedbackConstantsCompat.CONFIRM, flag = flag) | ||
|
||
// If REJECT feedback was not performed, then use default to haptic feedback | ||
@Suppress("DEPRECATION") | ||
fun View.performHapticFeedback( | ||
feedbackConstant: Int, | ||
flag: Int = 0, | ||
defaultFeedbackConstant: Int = HapticFeedbackConstantsCompat.LONG_PRESS | ||
): Boolean = | ||
performHapticFeedback( | ||
/* feedbackConstant = */ feedbackConstant, | ||
/* flags = */ HapticFeedbackConstants.FLAG_IGNORE_GLOBAL_SETTING or flag | ||
) || performHapticFeedback(defaultFeedbackConstant) |
18 changes: 18 additions & 0 deletions
18
...lApp/src/main/java/org/hyperskill/app/android/core/extensions/NestedScollViewExtention.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package org.hyperskill.app.android.core.extensions | ||
|
||
import android.view.View | ||
import android.view.ViewGroup | ||
import androidx.core.widget.NestedScrollView | ||
|
||
private const val DEFAULT_SMOOTH_SCROLL_DURATION = 250 | ||
|
||
fun NestedScrollView.smoothScrollToBottom(durationMilliseconds: Int = DEFAULT_SMOOTH_SCROLL_DURATION) { | ||
val scrollView = this | ||
val childCount = scrollView.childCount | ||
if (childCount > 0) { | ||
val view: View = scrollView.getChildAt(childCount - 1) | ||
val lp = view.layoutParams as ViewGroup.MarginLayoutParams | ||
val y = view.bottom + lp.bottomMargin + scrollView.paddingBottom | ||
scrollView.smoothScrollTo(0, y, durationMilliseconds) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.