From 9b41b214469906b06cc406b5cf5e4e68198b5fbc Mon Sep 17 00:00:00 2001 From: polstianka Date: Sat, 19 Oct 2024 23:27:08 -0700 Subject: [PATCH] single base64 implementation for all app parts --- .idea/gradle.xml | 1 + .../src/main/java/com/tonapps/signer/App.kt | 5 -- .../tonapps/signer/screen/sign/SignArgs.kt | 2 - .../main/java/com/tonapps/wallet/api/API.kt | 8 -- .../wallet/data/account/source/VaultSource.kt | 2 +- .../data/core/entity/RawMessageEntity.kt | 6 +- apps/wallet/data/dapps/build.gradle.kts | 1 + .../data/dapps/entities/AppConnectEntity.kt | 30 +++++-- apps/wallet/instance/app/build.gradle.kts | 1 + .../manager/tonconnect/TonConnectManager.kt | 1 + .../manager/tonconnect/bridge/Bridge.kt | 12 ++- .../res/layout/fragment_main_events_list.xml | 6 +- buildSrc/src/main/kotlin/Dependence.kt | 1 + lib/base64/.gitignore | 1 + lib/base64/build.gradle.kts | 23 +++++ lib/base64/src/main/AndroidManifest.xml | 2 + .../main/java/com/tonapps/base64/Base64.kt | 56 +++++++++++++ .../main/java/com/tonapps/base64/Base64Url.kt | 62 ++++++++++++++ .../java/com/tonapps/base64/Base64Utils.kt | 14 ++++ .../main/java/com/tonapps/base64/Encoding.kt | 83 +++++++++++++++++++ lib/blockchain/build.gradle.kts | 1 + .../blockchain/ton/extensions/Base64.kt | 11 --- .../tonapps/blockchain/ton/extensions/Cell.kt | 20 ++--- .../ton/extensions/PublicKeyEd25519.kt | 5 +- lib/extensions/build.gradle.kts | 1 + .../java/com/tonapps/extensions/Base64.kt | 9 -- .../tonapps/extensions/SharedPreferences.kt | 52 +++++++++++- lib/security/build.gradle.kts | 1 + .../java/com/tonapps/security/Extensions.kt | 31 ------- .../com/tonapps/security/vault/MasterKey.kt | 4 +- .../com/tonapps/security/vault/PasswordKey.kt | 6 +- .../com/tonapps/security/vault/Storage.kt | 4 +- settings.gradle.kts | 1 + 33 files changed, 347 insertions(+), 116 deletions(-) create mode 100644 lib/base64/.gitignore create mode 100644 lib/base64/build.gradle.kts create mode 100644 lib/base64/src/main/AndroidManifest.xml create mode 100644 lib/base64/src/main/java/com/tonapps/base64/Base64.kt create mode 100644 lib/base64/src/main/java/com/tonapps/base64/Base64Url.kt create mode 100644 lib/base64/src/main/java/com/tonapps/base64/Base64Utils.kt create mode 100644 lib/base64/src/main/java/com/tonapps/base64/Encoding.kt delete mode 100644 lib/blockchain/src/main/java/com/tonapps/blockchain/ton/extensions/Base64.kt delete mode 100644 lib/extensions/src/main/java/com/tonapps/extensions/Base64.kt diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 431ed358a..411b4b9c7 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -58,6 +58,7 @@