From 42045fc6ed62e3b2262f7039e68a60c92b0fdf6b Mon Sep 17 00:00:00 2001 From: Benjamin Schulte Date: Tue, 6 Dec 2022 09:45:03 +0100 Subject: [PATCH] iOS Enable Babel fees after 5.0 activation --- common-jvm/build.gradle | 2 +- common-jvm/src/main/java/org/ergoplatform/BabelFees.kt | 2 -- common-jvm/src/main/java/org/ergoplatform/ErgoFacade.kt | 1 - ios/src/main/java/org/ergoplatform/ios/Main.kt | 4 ---- 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/common-jvm/build.gradle b/common-jvm/build.gradle index c5e3b9f5..6daeceaf 100644 --- a/common-jvm/build.gradle +++ b/common-jvm/build.gradle @@ -9,7 +9,7 @@ java { } dependencies { - api('org.ergoplatform:ergo-appkit_2.11:5.0.0') { + api('org.ergoplatform:ergo-appkit_2.11:db8c1cc8-SNAPSHOT') { exclude group: 'org.bouncycastle', module: 'bcprov-jdk15on' exclude group: 'org.bitbucket.inkytonik.kiama', module: 'kiama_2.11' exclude group: 'com.google.guava', module: 'guava' diff --git a/common-jvm/src/main/java/org/ergoplatform/BabelFees.kt b/common-jvm/src/main/java/org/ergoplatform/BabelFees.kt index 97fb86c8..2be04781 100644 --- a/common-jvm/src/main/java/org/ergoplatform/BabelFees.kt +++ b/common-jvm/src/main/java/org/ergoplatform/BabelFees.kt @@ -16,8 +16,6 @@ data class BabelSwapData( ) object BabelFees { - var isEnabled = true - fun findBabelBox( tokensToSend: List, tokenBalanceSenders: Map, diff --git a/common-jvm/src/main/java/org/ergoplatform/ErgoFacade.kt b/common-jvm/src/main/java/org/ergoplatform/ErgoFacade.kt index cd2da03d..13128a87 100644 --- a/common-jvm/src/main/java/org/ergoplatform/ErgoFacade.kt +++ b/common-jvm/src/main/java/org/ergoplatform/ErgoFacade.kt @@ -219,7 +219,6 @@ object ErgoFacade { val babelSwap = if (amountToSend <= Parameters.MinChangeValue && tokensToSend.isNotEmpty() && babelAmount >= 0 - && BabelFees.isEnabled ) BabelFees.findBabelBox( tokensToSend, diff --git a/ios/src/main/java/org/ergoplatform/ios/Main.kt b/ios/src/main/java/org/ergoplatform/ios/Main.kt index de7432ad..1ad56580 100644 --- a/ios/src/main/java/org/ergoplatform/ios/Main.kt +++ b/ios/src/main/java/org/ergoplatform/ios/Main.kt @@ -49,10 +49,6 @@ class Main : UIApplicationDelegateAdapter() { LogUtils.logDebug = !isErgoMainNet AesEncryptionManager.isOnLegacyApi = true - // FIXME Babel Fees iOS is enabled due to Java7 incompatibility. Recheck after 5.0 - // activation or robovm libcore 10 upgrade - BabelFees.isEnabled = false - CrashHandler.registerUncaughtExceptionHandler() LogUtils.stackTraceLogger = { CrashHandler.writeToDebugFile(it) } database = SqlDelightAppDb(setupDatabase())