algorand / algorand/java-algorand-sdk

Modern android applications does not work out of the box with the sdk. Add solution to readme

未关闭
#693 0 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
73
派生
71
平均合并
41 分钟
30 天内合并 PR
2

描述

## Problem

On a jetpack compose android application, you receive this error: Caused by: java.lang.RuntimeException: java.security.NoSuchAlgorithmException: SHA-512/256 MessageDigest not available
When trying to parse an account with a Mnemonic.

Android apparently has its own outdated bouncy castle implementation.

## Solution

This needs to be added to the oncreate of the application.
class MyApp : Application() {
override fun onCreate() {
super.onCreate()
Security.removeProvider("BC")
Security.insertProviderAt(BouncyCastleProvider(), 0)
}
}

This code could be added to the README for android developers.

## Dependencies

## Urgency

Pretty urgent, the solution is present in an algorand forum thread, but its hard to find.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。