diff options
author | Torsten Grote <t@grobox.de> | 2020-08-17 09:29:54 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-08-17 09:29:54 -0300 |
commit | dade0470c7e378c72ac2f2fd2a623416dadbff10 (patch) | |
tree | 083449814b1ad1320677e115f42f9a76125ccd76 /wallet/src/androidMain/kotlin/net/taler/lib | |
parent | a307a498dc8a42df129e8eaff591e9144ed96298 (diff) | |
download | wallet-kotlin-dade0470c7e378c72ac2f2fd2a623416dadbff10.tar.gz wallet-kotlin-dade0470c7e378c72ac2f2fd2a623416dadbff10.tar.bz2 wallet-kotlin-dade0470c7e378c72ac2f2fd2a623416dadbff10.zip |
Provide a blocking API for iOS (until Kotlin 1.4 is out)
and put base crypto into dedicated package (to be split out later).
Diffstat (limited to 'wallet/src/androidMain/kotlin/net/taler/lib')
-rw-r--r-- | wallet/src/androidMain/kotlin/net/taler/lib/crypto/CryptoFactory.kt (renamed from wallet/src/androidMain/kotlin/net/taler/lib/wallet/crypto/CryptoFactory.kt) | 2 | ||||
-rw-r--r-- | wallet/src/androidMain/kotlin/net/taler/lib/crypto/RsaBlinding.kt (renamed from wallet/src/androidMain/kotlin/net/taler/lib/wallet/crypto/RsaBlinding.kt) | 2 | ||||
-rw-r--r-- | wallet/src/androidMain/kotlin/net/taler/lib/wallet/api/WalletFactory.kt | 23 |
3 files changed, 25 insertions, 2 deletions
diff --git a/wallet/src/androidMain/kotlin/net/taler/lib/wallet/crypto/CryptoFactory.kt b/wallet/src/androidMain/kotlin/net/taler/lib/crypto/CryptoFactory.kt index 1f6c7a8..85c159e 100644 --- a/wallet/src/androidMain/kotlin/net/taler/lib/wallet/crypto/CryptoFactory.kt +++ b/wallet/src/androidMain/kotlin/net/taler/lib/crypto/CryptoFactory.kt @@ -14,7 +14,7 @@ * GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -package net.taler.lib.wallet.crypto +package net.taler.lib.crypto import com.goterl.lazycode.lazysodium.LazySodiumJava import com.goterl.lazycode.lazysodium.SodiumJava diff --git a/wallet/src/androidMain/kotlin/net/taler/lib/wallet/crypto/RsaBlinding.kt b/wallet/src/androidMain/kotlin/net/taler/lib/crypto/RsaBlinding.kt index 70c7c78..732ac10 100644 --- a/wallet/src/androidMain/kotlin/net/taler/lib/wallet/crypto/RsaBlinding.kt +++ b/wallet/src/androidMain/kotlin/net/taler/lib/crypto/RsaBlinding.kt @@ -14,7 +14,7 @@ * GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -package net.taler.lib.wallet.crypto +package net.taler.lib.crypto import java.math.BigInteger import kotlin.math.abs diff --git a/wallet/src/androidMain/kotlin/net/taler/lib/wallet/api/WalletFactory.kt b/wallet/src/androidMain/kotlin/net/taler/lib/wallet/api/WalletFactory.kt new file mode 100644 index 0000000..c8e1f0f --- /dev/null +++ b/wallet/src/androidMain/kotlin/net/taler/lib/wallet/api/WalletFactory.kt @@ -0,0 +1,23 @@ +/* + * This file is part of GNU Taler + * (C) 2020 Taler Systems S.A. + * + * GNU Taler is free software; you can redistribute it and/or modify it under the + * terms of the GNU General Public License as published by the Free Software + * Foundation; either version 3, or (at your option) any later version. + * + * GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY + * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR + * A PARTICULAR PURPOSE. See the GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along with + * GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> + */ + +package net.taler.lib.wallet.api + +actual class WalletFactory { + actual fun createWalletApi(): WalletApi { + TODO("Not yet implemented") + } +}
\ No newline at end of file |