Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix exception on widget #58

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

inucat
Copy link
Contributor

@inucat inucat commented Oct 21, 2024

Try to fix #57

#57 の原因と考えられるnullity問題に対処しました。
ただAndroidエミュレータや手持ちの実機で動かすと、Googleアカウントでログインできないので挙動を試せないです。

@private-yusuke

Copy link
Member

@private-yusuke private-yusuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!確かに最初に提案した kotlin.runCatching を使う方法よりも早期 return の方が差分を小さくできますね。

@private-yusuke private-yusuke merged commit d4b4f22 into twin-te:master Oct 21, 2024
3 checks passed
@private-yusuke
Copy link
Member

ただAndroidエミュレータや手持ちの実機で動かすと、Googleアカウントでログインできないので挙動を試せないです。

開発者が Google アカウントでのログインを試行するためには、その人の開発環境で ./gradlew signingReport を実行して得られたフィンガープリントを Twin:te が使う OAuth2 クライアントの設定に入れる必要があり、それをしていないとログイン試行時に例外が発生します。そのため、twinte-android をデバッグするためには Twitter ログインなどの別手段を使う必要があることがあります。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ウィジェットでNullPointerExceptionが発生し、開発者へ自動報告されない
2 participants