Skip to content
This repository was archived by the owner on Oct 5, 2023. It is now read-only.
This repository was archived by the owner on Oct 5, 2023. It is now read-only.

[Request] Support >= Android API 24 #13

Description

@pois0

Request type / Request の種類

  • Others / その他

Description / 概要:
Android上ではJVM上ではなくAndroid Runtimeを通して処理が行われるので, java.utilパッケージにあるクラス等が利用できないことがあります。
今回java.util.Base64を読み込むところでClassNotFoundExceptionの送出が確認されました。
確かに下記を確認するとAndroid API 26以上を要求していることがわかります。
https://developer.android.com/reference/java/util/Base64
現在確認されているのはこれだけですが, 他にもAndroid上にて問題が発生する可能性があります。
このようなことを避けるためAndroid向けのエディションがほしいです。

Additional context / 備考:
なお, そもそもKtorはAndroid API 24未満では動作しないらしいのでAPI 24未満に対応するのは難しいと考えられます(ただもしかしたらKtor Clientだけだったら24以下でも動作するかもしれない)。
https://ktor.io/quickstart/faq.html#android-support

また, Base64については, android.util.Base64があり, これはAPI 8以上で利用可能です。
https://developer.android.com/reference/android/util/Base64

参考までにAndroidのバージョンのシェアを示します。
https://developer.android.com/about/dashboards/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

TODOScheduled feature implementationenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions