Skip to content

Commit

Permalink
Increment to version 4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
angelix committed Dec 20, 2024
1 parent bbaeb99 commit 38bf6a6
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 11 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [4.1.1] - 2024-12-18

### Added
- Jade genuine check

### Changed
- Bump GDK to version 0.74.0
- Bump Breez to version 0.6.6
- Update dependencies
- Support video content on promo screen

### Fixed
- Fix Jade BIP39 Passphrase input timeout
- Fix recovery keyboard matching words pre-emptively
- Various bug fixes

## [4.1.0] - 2024-11-19

### Changed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1962,8 +1962,8 @@ class GdkSession constructor(
}

suspend fun getFeeEstimates(network: Network): FeeEstimation = tryCatch(context = Dispatchers.Default) {
if(network.isLightning){
lightningSdk.recommendedFees().let { fees ->
if (network.isLightning) {
lightningSdk.recommendedFees()?.let { fees ->
(
listOf(fees.minimumFee) +
List(FeeBlockTarget[0] - 0) { fees.fastestFee } +
Expand All @@ -1973,8 +1973,7 @@ class GdkSession constructor(
FeeEstimation(it)
}
}

}else{
} else {
gdk.getFeeEstimates(gdkSession(network)).let {
// Temp fix
if (network.isSinglesig && network.isLiquid) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ import breez_sdk.defaultConfig
import breez_sdk.mnemonicToSeed
import breez_sdk.parseInput
import com.blockstream.common.data.AppInfo
import com.blockstream.common.extensions.tryCatch
import com.blockstream.common.fcm.FcmCommon
import com.blockstream.common.platformFileSystem
import com.blockstream.common.platformName
Expand All @@ -71,7 +72,6 @@ import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asSharedFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.withContext
import kotlinx.coroutines.withTimeout
import kotlinx.datetime.Clock
import okio.Path.Companion.toPath
Expand Down Expand Up @@ -456,8 +456,8 @@ class LightningBridge constructor(
}

@NativeCoroutinesIgnore
suspend fun recommendedFees(): RecommendedFees = withContext(context = Dispatchers.IO) {
breezSdk.recommendedFees()
suspend fun recommendedFees(): RecommendedFees? = tryCatch(context = Dispatchers.IO) {
breezSdkOrNull?.recommendedFees()
}

fun onchainPaymentLimits(): OnchainPaymentLimitsResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ class RecoverFundsViewModel(
session.ifConnectedSuspend {
emit(
session.lightningSdk.recommendedFees().also {
_customFeeRate.value = it.minimumFee.toLong()
_customFeeRate.value = it?.minimumFee?.toLong()
}
)
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
4 changes: 2 additions & 2 deletions green/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ android {
defaultConfig {
minSdk = libs.versions.androidMinSdk.get().toInt()
targetSdk = libs.versions.androidTargetSdk.get().toInt()
versionCode = 439
versionName = "4.1.0"
versionCode = 440
versionName = "4.1.1"

setProperty("archivesBaseName", "BlockstreamGreen-v$versionName")
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
Expand Down

0 comments on commit 38bf6a6

Please sign in to comment.