akiomik / seiun Goto Github PK
View Code? Open in Web Editor NEWAn experimental ATP/Bluesky client app for Android
Home Page: https://play.google.com/store/apps/details?id=io.github.akiomik.seiun
License: Apache License 2.0
An experimental ATP/Bluesky client app for Android
Home Page: https://play.google.com/store/apps/details?id=io.github.akiomik.seiun
License: Apache License 2.0
Seiun supports only single image uploading. We'd like to support up to 4 images.
Currently:
Expected:
request (replace $server
with your local server, and $jwt
with your jwt token)
GET /xrpc/app.bsky.actor.getPreferences HTTP/2
Host: enoki.$server.host.bsky.network
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:120.0) Gecko/20100101 Firefox/120.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
authorization: Bearer $jwt
Origin: https://bsky.app
DNT: 1
Sec-GPC: 1
Connection: keep-alive
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: cross-site
If-None-Match: W/"349-SWwpR5qWL31vpiXvOJvXryqYzQU"
TE: trailers
response
{
"preferences": [
{
"$type": "app.bsky.actor.defs#savedFeedsPref",
"pinned": [
"at://did:plc:...",
"at://did:plc:...",
"at://did:plc:...",
"at://did:plc:...",
"at://did:plc:..."
],
"saved": [
"at://did:plc:...",
"at://did:plc:...",
"at://did:plc:...",
"at://did:plc:...",
"at://did:plc:...",
"at://did:plc:...",
"at://did:plc:...",
"at://did:plc:...",
"at://did:plc:...",
"at://did:plc:..."
]
}
]
}
現状:2023/03/08 02:04:05
要望:2023/03/08 14:04:05
14:00台でも12時間表記のため
24時間表記への修正を期待します
UserFeedViewModel.getProfile
and UserFeedViewModel.setFeed
are called multiple times unintentionally.
ref: #24
Don't use object XXXViewModel
(Move state to DataSource
or Repository
)
ふぁぼ→リポスト→ふぁぼレスポンス→リポストレスポンス
この状態の時、ふぁぼのアイコンがアクティブにならず、リポストのみ完了したことになってしまいます。
処理がキャンセルされてしまう・・・?
実際の挙動を見ていると、ふぁぼ・リポストともに完了していることを確認しました
Two-digit numbers are wrapped for small devices (e.g. Pixel 5)
AppViewModel.updateProfile is called multiple times unintentionally.
It would be better if seiun is submitted to F-Droid.
First: thanks for your works! Love there is a Kotlin codebase for Bluesky already
Prefixing this issue: I extracted the API from your codebase to experiment with a bot.
For getTimeline calls with a certain cursor I am seeing this:
com.squareup.moshi.JsonDataException: Expected 'app.bsky.embed.images' or 'app.bsky.embed.external' or 'app.bsky.embed.record' or 'app.bsky.embed.recordWithMedia' but found 'AppBskyEmbedImages.Main'.
at io.github.akiomik.seiun.api.adapters.Union4JsonAdapter.determineEither(Union4JsonAdapter.kt:99)
at io.github.akiomik.seiun.api.adapters.Union4JsonAdapter.fromJson(Union4JsonAdapter.kt:61)
at io.github.akiomik.seiun.api.adapters.Union4JsonAdapter.fromJson(Union4JsonAdapter.kt:15)
at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:86)
at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
at com.squareup.moshi.adapters.PolymorphicJsonAdapterFactory$PolymorphicJsonAdapter.fromJson(PolymorphicJsonAdapterFactory.java:264)
at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:86)
at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:86)
at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
at com.squareup.moshi.CollectionJsonAdapter.fromJson(CollectionJsonAdapter.java:81)
at com.squareup.moshi.CollectionJsonAdapter$2.fromJson(CollectionJsonAdapter.java:55)
at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
at com.squareup.moshi.kotlin.reflect.KotlinJsonAdapter.fromJson(KotlinJsonAdapter.kt:86)
at com.squareup.moshi.internal.NullSafeJsonAdapter.fromJson(NullSafeJsonAdapter.java:41)
at retrofit2.converter.moshi.MoshiResponseBodyConverter.convert(MoshiResponseBodyConverter.java:46)
at retrofit2.converter.moshi.MoshiResponseBodyConverter.convert(MoshiResponseBodyConverter.java:27)
at com.slack.eithernet.ApiResultConverterFactory$ApiResultConverter.convert(ApiResult.kt:230)
at com.slack.eithernet.ApiResultConverterFactory$ApiResultConverter.convert(ApiResult.kt:226)
at retrofit2.OkHttpCall.parseResponse(OkHttpCall.java:243)
at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:153)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
Very likely your android app will also stumble over this content.
Also wonder if you would be open to extracting the API to a separate project (I could also PR this)
App may crash when createdAt is ISO-8601 basic format (e.g. 20230305T000952+0900
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.