diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/di/BankingModule.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/di/BankingModule.kt index 1e336c9c..db6ae8d6 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/di/BankingModule.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/di/BankingModule.kt @@ -167,12 +167,6 @@ class BankingModule(private val applicationContext: Context) { return JacksonJsonSerializer() } - @Provides - @Singleton - fun provideBase64Service() : IBase64Service { - return Base64ServiceAndroid() - } - @Provides @Singleton fun provideAsyncRunner() : IAsyncRunner { diff --git a/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/util/Base64ServiceJava8.kt b/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/util/Base64ServiceJava8.kt deleted file mode 100644 index 78b39896..00000000 --- a/ui/BankingJavaFxControls/src/main/kotlin/net/dankito/banking/ui/javafx/util/Base64ServiceJava8.kt +++ /dev/null @@ -1,21 +0,0 @@ -package net.dankito.banking.ui.javafx.util - -import net.dankito.banking.util.IBase64Service -import java.nio.charset.Charset -import java.util.* - - -// TODO: use version from JavaFxUtils -open class Base64ServiceJava8 : IBase64Service { - - override fun encode(text: String, charset: Charset): String { - return Base64.getEncoder().encodeToString(text.toByteArray(charset)) - } - - override fun decode(base64: String, charset: Charset): String { - val decodedBytes = Base64.getDecoder().decode(base64) - - return String(decodedBytes, charset) - } - -} \ No newline at end of file diff --git a/ui/BankingUiCommon/src/main/java/net/dankito/banking/util/IBase64Service.kt b/ui/BankingUiCommon/src/main/java/net/dankito/banking/util/IBase64Service.kt deleted file mode 100644 index 1f01c7e8..00000000 --- a/ui/BankingUiCommon/src/main/java/net/dankito/banking/util/IBase64Service.kt +++ /dev/null @@ -1,12 +0,0 @@ -package net.dankito.banking.util - -import java.nio.charset.Charset - - -interface IBase64Service { - - fun encode(text: String, charset: Charset): String - - fun decode(base64: String, charset: Charset): String - -} \ No newline at end of file diff --git a/ui/fints4kBankingClient/src/main/kotlin/net/dankito/banking/util/UiCommonBase64ServiceWrapper.kt b/ui/fints4kBankingClient/src/main/kotlin/net/dankito/banking/util/UiCommonBase64ServiceWrapper.kt deleted file mode 100644 index 671ad22a..00000000 --- a/ui/fints4kBankingClient/src/main/kotlin/net/dankito/banking/util/UiCommonBase64ServiceWrapper.kt +++ /dev/null @@ -1,16 +0,0 @@ -package net.dankito.banking.util - -import java.nio.charset.Charset - - -open class UiCommonBase64ServiceWrapper(protected val base64Service: IBase64Service) : net.dankito.banking.fints.util.IBase64Service { - - override fun encode(text: String, charset: Charset): String { - return base64Service.encode(text, charset) - } - - override fun decode(base64: String, charset: Charset): String { - return base64Service.decode(base64, charset) - } - -} \ No newline at end of file