Skip to content

Commit

Permalink
iOS Enable Babel fees after 5.0 activation
Browse files Browse the repository at this point in the history
  • Loading branch information
MrStahlfelge committed Dec 6, 2022
1 parent 5832d71 commit 42045fc
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion common-jvm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 0 additions & 2 deletions common-jvm/src/main/java/org/ergoplatform/BabelFees.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ data class BabelSwapData(
)

object BabelFees {
var isEnabled = true

fun findBabelBox(
tokensToSend: List<ErgoToken>,
tokenBalanceSenders: Map<String, WalletToken>,
Expand Down
1 change: 0 additions & 1 deletion common-jvm/src/main/java/org/ergoplatform/ErgoFacade.kt
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ object ErgoFacade {
val babelSwap =
if (amountToSend <= Parameters.MinChangeValue && tokensToSend.isNotEmpty()
&& babelAmount >= 0
&& BabelFees.isEnabled
)
BabelFees.findBabelBox(
tokensToSend,
Expand Down
4 changes: 0 additions & 4 deletions ios/src/main/java/org/ergoplatform/ios/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 42045fc

Please sign in to comment.