kopia lustrzana https://github.com/ryukoposting/Signal-Android
Increment compileSdkVersion to 33.
rodzic
7af94f60ae
commit
1e9115a917
|
@ -111,7 +111,7 @@ class ThanksForYourSupportBottomSheetDialogFragment : FixedRoundedCornerBottomSh
|
||||||
lottie.visible = true
|
lottie.visible = true
|
||||||
lottie.playAnimation()
|
lottie.playAnimation()
|
||||||
lottie.addAnimatorListener(object : AnimationCompleteListener() {
|
lottie.addAnimatorListener(object : AnimationCompleteListener() {
|
||||||
override fun onAnimationEnd(animation: Animator?) {
|
override fun onAnimationEnd(animation: Animator) {
|
||||||
lottie.removeAnimatorListener(this)
|
lottie.removeAnimatorListener(this)
|
||||||
lottie.setMinAndMaxFrame(30, 91)
|
lottie.setMinAndMaxFrame(30, 91)
|
||||||
lottie.repeatMode = LottieDrawable.RESTART
|
lottie.repeatMode = LottieDrawable.RESTART
|
||||||
|
|
|
@ -202,7 +202,7 @@ class ConversationListFilterPullView @JvmOverloads constructor(
|
||||||
animateHelpText = 0
|
animateHelpText = 0
|
||||||
helpTextStartFraction = ANIMATE_HELP_TEXT_START_FRACTION
|
helpTextStartFraction = ANIMATE_HELP_TEXT_START_FRACTION
|
||||||
binding.helpText.animate().alpha(0f).setListener(object : AnimationCompleteListener() {
|
binding.helpText.animate().alpha(0f).setListener(object : AnimationCompleteListener() {
|
||||||
override fun onAnimationEnd(animation: Animator?) {
|
override fun onAnimationEnd(animation: Animator) {
|
||||||
binding.helpText.visibility = INVISIBLE
|
binding.helpText.visibility = INVISIBLE
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -155,7 +155,7 @@ class KeyboardPageSearchView @JvmOverloads constructor(
|
||||||
.setDuration(REVEAL_DURATION)
|
.setDuration(REVEAL_DURATION)
|
||||||
.alpha(0f)
|
.alpha(0f)
|
||||||
.setListener(object : AnimationCompleteListener() {
|
.setListener(object : AnimationCompleteListener() {
|
||||||
override fun onAnimationEnd(animation: Animator?) {
|
override fun onAnimationEnd(animation: Animator) {
|
||||||
visibility = INVISIBLE
|
visibility = INVISIBLE
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
@ -103,14 +103,14 @@ class LottieAnimatedButton @JvmOverloads constructor(
|
||||||
MotionEvent.ACTION_UP -> {
|
MotionEvent.ACTION_UP -> {
|
||||||
if (isAnimating) {
|
if (isAnimating) {
|
||||||
addAnimatorListener(object : AnimatorListener {
|
addAnimatorListener(object : AnimatorListener {
|
||||||
override fun onAnimationEnd(animation: Animator?) {
|
override fun onAnimationEnd(animation: Animator) {
|
||||||
removeAllAnimatorListeners()
|
removeAllAnimatorListeners()
|
||||||
playAnimationReverse()
|
playAnimationReverse()
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onAnimationStart(animation: Animator?) {}
|
override fun onAnimationStart(animation: Animator) {}
|
||||||
override fun onAnimationCancel(animation: Animator?) {}
|
override fun onAnimationCancel(animation: Animator) {}
|
||||||
override fun onAnimationRepeat(animation: Animator?) {}
|
override fun onAnimationRepeat(animation: Animator) {}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
playAnimationReverse()
|
playAnimationReverse()
|
||||||
|
|
|
@ -183,11 +183,11 @@ class RotationDialView @JvmOverloads constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
private inner class GestureListener : GestureDetector.SimpleOnGestureListener() {
|
private inner class GestureListener : GestureDetector.SimpleOnGestureListener() {
|
||||||
override fun onDown(e: MotionEvent?): Boolean {
|
override fun onDown(e: MotionEvent): Boolean {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onScroll(e1: MotionEvent?, e2: MotionEvent?, distanceX: Float, distanceY: Float): Boolean {
|
override fun onScroll(e1: MotionEvent, e2: MotionEvent, distanceX: Float, distanceY: Float): Boolean {
|
||||||
val degreeIncrement: Float = distanceX / dimensions.spaceBetweenAngleIndicators
|
val degreeIncrement: Float = distanceX / dimensions.spaceBetweenAngleIndicators
|
||||||
val prevDialDegrees = getDialDegrees(degrees)
|
val prevDialDegrees = getDialDegrees(degrees)
|
||||||
val newDialDegrees = getDialDegrees(degrees + degreeIncrement)
|
val newDialDegrees = getDialDegrees(degrees + degreeIncrement)
|
||||||
|
|
|
@ -108,7 +108,7 @@ class ScaleTransition : Transition {
|
||||||
ofFloat(View.SCALE_Y, 1f)
|
ofFloat(View.SCALE_Y, 1f)
|
||||||
).apply {
|
).apply {
|
||||||
addListener(object : AnimatorListenerAdapter() {
|
addListener(object : AnimatorListenerAdapter() {
|
||||||
override fun onAnimationEnd(animation: Animator?) {
|
override fun onAnimationEnd(animation: Animator) {
|
||||||
resetValues(start.view)
|
resetValues(start.view)
|
||||||
resetValues(end.view)
|
resetValues(end.view)
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,7 +125,7 @@ class StoryFirstTimeNavigationView @JvmOverloads constructor(
|
||||||
|
|
||||||
isPlayingAnimations = true
|
isPlayingAnimations = true
|
||||||
tapToAdvance.addAnimatorListener(object : AnimatorListenerAdapter() {
|
tapToAdvance.addAnimatorListener(object : AnimatorListenerAdapter() {
|
||||||
override fun onAnimationEnd(animation: Animator?) {
|
override fun onAnimationEnd(animation: Animator) {
|
||||||
if (isPlayingAnimations) {
|
if (isPlayingAnimations) {
|
||||||
swipeUp.playAnimation()
|
swipeUp.playAnimation()
|
||||||
}
|
}
|
||||||
|
@ -133,7 +133,7 @@ class StoryFirstTimeNavigationView @JvmOverloads constructor(
|
||||||
})
|
})
|
||||||
|
|
||||||
swipeUp.addAnimatorListener(object : AnimatorListenerAdapter() {
|
swipeUp.addAnimatorListener(object : AnimatorListenerAdapter() {
|
||||||
override fun onAnimationEnd(animation: Animator?) {
|
override fun onAnimationEnd(animation: Animator) {
|
||||||
if (isPlayingAnimations) {
|
if (isPlayingAnimations) {
|
||||||
swipeRight.playAnimation()
|
swipeRight.playAnimation()
|
||||||
}
|
}
|
||||||
|
@ -141,7 +141,7 @@ class StoryFirstTimeNavigationView @JvmOverloads constructor(
|
||||||
})
|
})
|
||||||
|
|
||||||
swipeRight.addAnimatorListener(object : AnimatorListenerAdapter() {
|
swipeRight.addAnimatorListener(object : AnimatorListenerAdapter() {
|
||||||
override fun onAnimationEnd(animation: Animator?) {
|
override fun onAnimationEnd(animation: Animator) {
|
||||||
postDelayed({
|
postDelayed({
|
||||||
if (isPlayingAnimations) {
|
if (isPlayingAnimations) {
|
||||||
startLottieAnimations()
|
startLottieAnimations()
|
||||||
|
|
|
@ -1184,7 +1184,7 @@ class StoryViewerPageFragment :
|
||||||
scaleFactor = 1f
|
scaleFactor = 1f
|
||||||
isPerformingEndAnimation = true
|
isPerformingEndAnimation = true
|
||||||
card.animate().scaleX(1f).scaleY(1f).setListener(object : AnimationCompleteListener() {
|
card.animate().scaleX(1f).scaleY(1f).setListener(object : AnimationCompleteListener() {
|
||||||
override fun onAnimationEnd(animation: Animator?) {
|
override fun onAnimationEnd(animation: Animator) {
|
||||||
isPerformingEndAnimation = false
|
isPerformingEndAnimation = false
|
||||||
viewModel.setIsUserScaling(false)
|
viewModel.setIsUserScaling(false)
|
||||||
sharedViewModel.setIsChildScrolling(false)
|
sharedViewModel.setIsChildScrolling(false)
|
||||||
|
@ -1255,7 +1255,7 @@ class StoryViewerPageFragment :
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onFling(e1: MotionEvent?, e2: MotionEvent?, velocityX: Float, velocityY: Float): Boolean {
|
override fun onFling(e1: MotionEvent, e2: MotionEvent, velocityX: Float, velocityY: Float): Boolean {
|
||||||
val isSideSwipe = abs(velocityX) > abs(velocityY)
|
val isSideSwipe = abs(velocityX) > abs(velocityY)
|
||||||
if (!isSideSwipe) {
|
if (!isSideSwipe) {
|
||||||
return false
|
return false
|
||||||
|
|
|
@ -30,7 +30,7 @@ buildscript {
|
||||||
ext {
|
ext {
|
||||||
BUILD_TOOL_VERSION = '32.0.0'
|
BUILD_TOOL_VERSION = '32.0.0'
|
||||||
|
|
||||||
COMPILE_SDK = 32
|
COMPILE_SDK = 33
|
||||||
TARGET_SDK = 31
|
TARGET_SDK = 31
|
||||||
MINIMUM_SDK = 19
|
MINIMUM_SDK = 19
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ RUN apt-get update -y && apt-get install -y $(cat docker/dependencies.txt)
|
||||||
RUN docker/print-versions.sh docker/dependencies.txt
|
RUN docker/print-versions.sh docker/dependencies.txt
|
||||||
|
|
||||||
ENV ANDROID_COMMAND_LINE_TOOLS_FILENAME commandlinetools-linux-7583922_latest.zip
|
ENV ANDROID_COMMAND_LINE_TOOLS_FILENAME commandlinetools-linux-7583922_latest.zip
|
||||||
ENV ANDROID_API_LEVELS android-32
|
ENV ANDROID_API_LEVELS android-33
|
||||||
ENV ANDROID_BUILD_TOOLS_VERSION 32.0.0
|
ENV ANDROID_BUILD_TOOLS_VERSION 32.0.0
|
||||||
|
|
||||||
ENV ANDROID_HOME /usr/local/android-sdk-linux
|
ENV ANDROID_HOME /usr/local/android-sdk-linux
|
||||||
|
|
Ładowanie…
Reference in New Issue