File tree Expand file tree Collapse file tree 5 files changed +31
-7
lines changed
java/com/blockstream/green/gdk Expand file tree Collapse file tree 5 files changed +31
-7
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,19 @@ All notable changes to this project will be documented in this file.
33
44The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) .
55
6+ ## [ 4.0.9] - 2023-06-16
7+
8+ ### Changed
9+ - Make QR code scanner take 85% of the screen
10+ - Long press a QR code to show it full screen
11+
12+ ### Fixed
13+ - Remove PIN character limit for Trezor One
14+ - Hide Denomination & Exchange dialog for watch-only multisig
15+ - Fix 2FA threshold with empty string
16+ - Fixes on denomination behaviors
17+ - Fix receive address ellipsize middle
18+
619## [ 4.0.8] - 2023-06-09
720
821### Changed
Original file line number Diff line number Diff line change @@ -42,8 +42,8 @@ android {
4242 defaultConfig {
4343 minSdk = 23
4444 targetSdk = 33
45- versionCode = 408
46- versionName = " 4.0.8 "
45+ versionCode = 409
46+ versionName = " 4.0.9 "
4747 setProperty(" archivesBaseName" , " BlockstreamGreen-v$versionName " )
4848
4949 testApplicationId = " com.blockstream.green.test"
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ import kotlinx.serialization.json.put
5252import kotlinx.serialization.json.putJsonArray
5353import mu.KLogging
5454import java.io.File
55+ import java.lang.Long.max
5556import java.net.URL
5657import kotlin.math.absoluteValue
5758import kotlin.properties.Delegates
@@ -1596,11 +1597,20 @@ class GdkSession constructor(
15961597 }
15971598
15981599 }else {
1599- gdkBridge.getFeeEstimates(gdkSession(network))
1600+ gdkBridge.getFeeEstimates(gdkSession(network)).let {
1601+ // Temp fix
1602+ if (network.isSinglesig && network.isLiquid) {
1603+ FeeEstimation (it.fees.map { fee ->
1604+ max(100L , fee)
1605+ })
1606+ }else {
1607+ it
1608+ }
1609+ }
16001610 }
16011611 } catch (e: Exception ) {
16021612 e.printStackTrace()
1603- FeeEstimation (fees = listOf (network.defaultFee))
1613+ FeeEstimation (fees = mutableListOf (network.defaultFee))
16041614 }
16051615
16061616 fun getTransactions (account : Account , params : TransactionParams = TransactionParams (subaccount = 0)) = (if (account.network.isLightning) {
Original file line number Diff line number Diff line change 4949 android : hint =" @string/id_account_name"
5050 android : layout_marginStart =" 24dp"
5151 android : layout_marginEnd =" 24dp"
52+ app : endIconMode =" clear_text"
5253 app : layout_constraintEnd_toEndOf =" parent"
5354 app : layout_constraintStart_toStartOf =" parent"
5455 app : layout_constraintTop_toBottomOf =" @id/title" >
Original file line number Diff line number Diff line change @@ -58,11 +58,11 @@ check_command sed
5858# --- Execution
5959printf " \nUpdating versionCode & VersionName...\n\n"
6060
61- currentVersionCode=` awk ' / versionCode / {print $2 }' $GRADLE_BUILD_FILE `
61+ currentVersionCode=` awk ' / versionCode = / {print $3 }' $GRADLE_BUILD_FILE `
6262newVersionCode=$(( $currentVersionCode + 1 ))
6363
64- sed -i ' ' -e " s/versionCode .*/versionCode ${newVersionCode} /" $GRADLE_BUILD_FILE `
65- sed -i ' ' -e " s/versionName .*/versionName \" ${VERSION_NAME} \" /" $GRADLE_BUILD_FILE `
64+ sed -i ' ' -e " s/versionCode = .*/versionCode = ${newVersionCode} /" $GRADLE_BUILD_FILE `
65+ sed -i ' ' -e " s/versionName = .*/versionName = \" ${VERSION_NAME} \" /" $GRADLE_BUILD_FILE `
6666
6767printf " * versionCode: \t${newVersionCode} \n"
6868printf " * versionName: \t${VERSION_NAME} \n"
You can’t perform that action at this time.
0 commit comments