Tusky-App-Android/app/src/main/java/com/keylesspalace/tusky
Christophe Beyls f69cae2315
Optimize I/O code using Okio - part 2 (#4372)
- Read license resource using Okio inside a coroutine (instead of the
main thread) in `LicenseActivity`
- Use Okio and its buffer system to copy ContentProvider streams and
files to a temporary file in `MediaUploader.prepareMedia()`
- Properly close the input file after copying it to a temporary file in
`MediaUploader.prepareMedia()`
- Properly close sink in case of null body source during file copy in
`Uri.copyToFolder()` in `DraftHelper.kt`
- Add comment explaining the current value of `DEFAULT_CHUNK_SIZE` in
`UriRequestBody.kt` and indent the file properly
- Replace hardcoded `Charset` and `Int` byte size with the proper
constants, and align the `hashCode()` implementation with other
`BitmapTransformation` implementations in
`CompositeWithOpaqueBackground`
- Properly close `InputStream` in case of error during Bitmap size
decoding in `getImageSquarePixels()`
- return `Int` instead of `Long` in `getImageSquarePixels()`, since the
current code simply converts the `Int` result to a `Long` _after_
multiplication and not before (and `Int.MAX_VALUE` is already way above
the maximum number of pixels a decoded Bitmap could return)
- Simplify `getImageOrientation()`
- Add explicit dependency to the Okio library and upgrade it to its
latest version.
2024-04-14 16:39:29 +02:00
..
adapter Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
appstore Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
components Optimize I/O code using Okio - part 2 (#4372) 2024-04-14 16:39:29 +02:00
db Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
di enableDecoderFallback for ExoPlayer (#4360) 2024-04-10 21:46:52 +02:00
entity fix deserializing audio attachments (#4362) 2024-04-10 21:47:05 +02:00
fragment Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
interfaces Machine translation of posts (#4307) 2024-03-09 16:12:18 +01:00
json Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
network Optimize I/O code using Okio - part 2 (#4372) 2024-04-14 16:39:29 +02:00
pager upgrade ktlint plugin to 12.0.3 (#4169) 2024-01-04 17:00:55 +01:00
receiver Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
service change SendStatusService type to shortService (#4292) 2024-02-29 12:21:15 +01:00
settings Fix some warnings & recreate lint-baseline.xml (#4278) 2024-02-25 16:20:26 +01:00
usecase Retrofit 2.10.0 (#4330) 2024-03-19 08:32:14 +01:00
util Optimize I/O code using Okio - part 2 (#4372) 2024-04-14 16:39:29 +02:00
view full sdk 34 support (#4224) 2024-02-23 10:27:19 +01:00
viewdata Replace Gson library with Moshi (#4309) 2024-04-02 21:01:04 +02:00
viewmodel Remove redundant crossinline (#4348) 2024-03-29 21:12:49 +01:00
worker upgrade ktlint plugin to 12.0.3 (#4169) 2024-01-04 17:00:55 +01:00
AboutActivity.kt Machine translation of posts (#4307) 2024-03-09 16:12:18 +01:00
AccountsInListFragment.kt upgrade ktlint plugin to 12.0.3 (#4169) 2024-01-04 17:00:55 +01:00
BaseActivity.java improve MainActivity / LoginActivity transitions (#4301) 2024-03-09 11:04:29 +01:00
BottomSheetActivity.kt Replace RxJava3 code with coroutines (#4290) 2024-02-29 15:28:48 +01:00
EditProfileActivity.kt Migrate LiveData to Flow (#4337) 2024-03-27 11:34:17 +01:00
LicenseActivity.kt Optimize I/O code using Okio - part 2 (#4372) 2024-04-14 16:39:29 +02:00
ListsActivity.kt full sdk 34 support (#4224) 2024-02-23 10:27:19 +01:00
MainActivity.kt improve MainActivity / LoginActivity transitions (#4301) 2024-03-09 11:04:29 +01:00
SplashActivity.kt remove legacy notification channel cleanup (#2550) 2022-05-25 20:54:25 +02:00
StatusListActivity.kt full sdk 34 support (#4224) 2024-02-23 10:27:19 +01:00
TabData.kt upgrade ktlint plugin to 12.0.3 (#4169) 2024-01-04 17:00:55 +01:00
TabPreferenceActivity.kt fix check that ensures only one bookmark tab is added (#4217) 2024-01-28 19:07:17 +01:00
TuskyApplication.kt Replace RxJava3 code with coroutines (#4290) 2024-02-29 15:28:48 +01:00
ViewMediaActivity.kt Replace RxJava3 code with coroutines (#4290) 2024-02-29 15:28:48 +01:00