Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
Bump the ivy-wallet group with 3 updates (#3135)
Browse files Browse the repository at this point in the history
* Bump the ivy-wallet group with 3 updates

Bumps the ivy-wallet group with 3 updates: com.android.tools.build:gradle, [com.google.firebase:firebase-crashlytics](https://github.com/firebase/firebase-android-sdk) and [io.nlopez.compose.rules:detekt](https://github.com/mrmans0n/compose-rules).


Updates `com.android.tools.build:gradle` from 8.3.1 to 8.3.2

Updates `com.google.firebase:firebase-crashlytics` from 18.6.3 to 18.6.4
- [Changelog](https://github.com/firebase/firebase-android-sdk/blob/master/docs/make_release_notes.py)
- [Commits](https://github.com/firebase/firebase-android-sdk/commits)

Updates `io.nlopez.compose.rules:detekt` from 0.3.13 to 0.3.15
- [Release notes](https://github.com/mrmans0n/compose-rules/releases)
- [Commits](mrmans0n/compose-rules@v0.3.13...v0.3.15)

---
updated-dependencies:
- dependency-name: com.android.tools.build:gradle
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ivy-wallet
- dependency-name: com.google.firebase:firebase-crashlytics
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ivy-wallet
- dependency-name: io.nlopez.compose.rules:detekt
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: ivy-wallet
...

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

* Fix Detekt errors

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: iliyangermanov <[email protected]>
  • Loading branch information
dependabot[bot] and ILIYANGERMANOV authored Apr 16, 2024
1 parent 3667e7d commit 0bfce62
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 8 deletions.
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jvm-target = "17"
detekt = "1.23.6" # https://detekt.dev/docs/gettingstarted/gradle/

[libraries]
android-gradle-plugin = { module = "com.android.tools.build:gradle", version = "8.3.1" }
android-gradle-plugin = { module = "com.android.tools.build:gradle", version = "8.3.2" }

# Kotlin
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
Expand Down Expand Up @@ -108,7 +108,7 @@ google-services-plugin = { module = "com.google.gms:google-services", version =
google-playservices-auth = { module = "com.google.android.gms:play-services-auth", version = "21.0.0" }
google-play-core = { module = "com.google.android.play:core", version = "1.10.3" }
google-play-core-ktx = { module = "com.google.android.play:core-ktx", version = "1.8.1" }
firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics", version = "18.6.3" }
firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics", version = "18.6.4" }
firebase-crashlytics-gradle-plugin = { module = "com.google.firebase:firebase-crashlytics-gradle", version = "2.9.9" }

# AndroidX
Expand All @@ -135,7 +135,7 @@ opencsv-apache-commons = { module = "org.apache.commons:commons-lang3", version
detekt-gradle-plugin = { module = "io.gitlab.arturbosch.detekt:detekt-gradle-plugin", version.ref = "detekt" }
detekt-ruleset-compiler = { module = "com.braisgabin.detekt:kotlin-compiler-wrapper", version = "0.0.4" }
detekt-ruleset-ktlint = { module = "io.gitlab.arturbosch.detekt:detekt-formatting", version.ref = "detekt" }
detekt-ruleset-compose = { module = "io.nlopez.compose.rules:detekt", version = "0.3.13" }
detekt-ruleset-compose = { module = "io.nlopez.compose.rules:detekt", version = "0.3.15" }
detekt-ruleset-ivy-explicit = { module = "com.github.Ivy-Apps:detekt-explicit", version = "v0.0.8" }
slack-lint-compose = { module = "com.slack.lint.compose:compose-lint-checks", version = "1.3.1" }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableFloatStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
Expand Down Expand Up @@ -261,7 +262,7 @@ private fun BoxWithConstraintsScope.UI(
val scrollState = rememberScrollState()

// This is to scroll the column to the customExchangeCard composable when it is shown
var customExchangeRatePosition by remember { mutableStateOf(0F) }
var customExchangeRatePosition by remember { mutableFloatStateOf(0F) }
LaunchedEffect(key1 = customExchangeRateState.showCard) {
val scrollInt =
if (customExchangeRateState.showCard) customExchangeRatePosition.roundToInt() else 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import androidx.compose.foundation.layout.width
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableFloatStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
Expand Down Expand Up @@ -204,7 +205,7 @@ private fun SwipeToAgree(
val ivyContext = ivyWalletCtx()

val maxOffsetX = ivyContext.screenWidth - 80.dp.toDensityPx() - 72.dp.toDensityPx()
var offsetX by remember { mutableStateOf(0f) }
var offsetX by remember { mutableFloatStateOf(0f) }

val percentSwiped = offsetX / maxOffsetX
val agreed = percentSwiped > 0.5f
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberUpdatedState
Expand Down Expand Up @@ -130,7 +131,7 @@ fun BoxScope.IvyModal(
}

if (visible || modalPercentVisible > 0.01f) {
var actionsRowHeight by remember { mutableStateOf(0) }
var actionsRowHeight by remember { mutableIntStateOf(0) }

Column(
modifier = Modifier
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
Expand Down Expand Up @@ -136,7 +137,7 @@ fun BoxWithConstraintsScope.EditBottomSheet(
animationSpec = tween(DURATION_MODAL_ANIM)
)

var bottomBarHeight by remember { mutableStateOf(0) }
var bottomBarHeight by remember { mutableIntStateOf(0) }

var internalExpanded by remember { mutableStateOf(true) }
val expanded = internalExpanded && !keyboardShown
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import android.view.inputmethod.EditorInfo
import android.widget.EditText
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableIntStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
Expand Down Expand Up @@ -245,7 +246,7 @@ enum class IvyImeAction {
class InputFieldFocus {
var requestFocus: Boolean by mutableStateOf(false)
private set
var triggerRecomposition: Int by mutableStateOf(0)
var triggerRecomposition: Int by mutableIntStateOf(0)
private set

fun consumeFocus(): Boolean {
Expand Down

0 comments on commit 0bfce62

Please sign in to comment.