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 摘要。