Commit Graph

265 Commits

Author SHA1 Message Date
Konrad Pozniak
cf3295749b upgrade SwipeRefreshLayout to 1.1.0 (#1866) 2020-07-28 17:45:06 +03:00
fe0e68ba5c ViewImageFragment: upgrade BigImageView to 1.6.6, enable swiping for all kinds of embedded views 2020-07-26 16:06:21 +03:00
978489165e ViewImageFragment: replace TouchImageView by BigImageView based on SSIV and with proper GIF support 2020-06-30 19:22:52 +03:00
Ivan Kupalov
da110b8fc0 Improve image viewer (#1843)
This commit does 3 things:
1. Replaces PhotoView (which is abandonware) with modern TouchImageView
2. Fixes an issue with panning images. Gesture was not intercepted
properly and pager was taking control instead of image being moved.
3. Adds feedback to dismissing of images with vertical gesture.
2020-06-25 16:42:56 +03:00
Konrad Pozniak
4d811dc51d upgrade gradle wrapper, materialdrawer and AndroidX fragment (#1837) 2020-06-23 12:47:15 +03:00
Conny Duck
869c6dacad downgrade dagger to get rid of READ_PHONE_STATE permission
https://github.com/google/dagger/issues/1864
2020-06-15 16:39:49 +03:00
Konrad Pozniak
7d255e8302 upgrade gradle, AGP and dependencies (#1818)
* upgrade gradle, AGP and dependencies

* fix new layout related warnings
2020-06-15 16:39:06 +03:00
Konrad Pozniak
e4aee072e4 use AndroidX WorkManager instead of Evernote Android Job (#1783)
* use AndroidX WorkManager instead of Evernote Android Job

* move notification related classes to their own package

* fix missing import
2020-06-15 16:22:35 +03:00
03944de506 gradle: set version to 1.0 2020-05-23 15:19:47 +03:00
ca86a3de90 husky: add new flavor to be able to override original Tusky strings. Restore strings from upstream 2020-05-23 00:43:06 +03:00
8641b0f220 Patch to compile, downgrade Kotlin version, otherwise it fails with useless message, disable incremental kapt otherwise it fails 2020-05-03 04:28:26 +03:00
c7e7da9433 Cherry-picked 2cf1e366. 2020-05-03 04:05:38 +03:00
333c906a36 gradle: disable another lint warning that I don't want to fix 2020-05-03 02:49:44 +03:00
ff5ec41e76 http: haha content-encoding goes brrrr (enabled brotli compression) 2020-04-10 18:53:28 +03:00
ca36dd0238 gradle: remove ndk version setting 2020-04-10 03:34:04 +03:00
ceadb76785 emoji: use bundled compat font 2020-04-10 01:58:47 +03:00
bb0cde546a travis: disable lint abort for now 2020-03-06 23:44:07 +03:00
0257cd3b07 Merge upstream 2020-03-06 16:16:54 +03:00
Ivan Kupalov
0547e78c94 Add options to confirm reblog/unreblog actions, close #460 (#1650) 2020-03-03 21:27:26 +01:00
3295348a79 Merge upstream 2020-02-28 10:30:09 +03:00
Konrad Pozniak
025d1d4b3c Upgrade deps (#1708)
* upgrade Dagger

* upgrade AndroidX Lifecycle

* upgrade AndroidX Fragment

* upgrade Room, Retrofit, AndroidX core, Material components

* fix report fragments not sharing viewmodels
2020-02-25 19:49:41 +01:00
Conny Duck
7309b683cc Release 70 / 10.0 2020-02-25 19:00:21 +01:00
7e0b45c52e gradle: set up version to 0.99 for now and version code to days passed since first my commit to this repo 2020-02-23 06:12:30 +01:00
f2d14a0f9b Merge upstream 2020-02-19 04:54:30 +03:00
Ivan Kupalov
f02fe69b98 Fix emoji download (#1691)
* Update OkHttp to 4.3.1

* Fix downloading emoji fonts

OkHttp strips away content length info when compression is used.
Even though this behavior is old, we didn't observe it until OkHttp was
updated in d05bd4b751.

We get it from the original network response header. It should be
compressed length.

* Reformat EmojiCompatFont and EmojiPreference
2020-02-17 16:23:34 +01:00
Conny Duck
e1a6570cf6 put androidExtensions experimental=true back in to fix crash 2020-02-12 21:53:16 +01:00
Conny Duck
4b6744a5b5 Release 69 / 10.0 beta 1 2020-02-10 16:50:35 +01:00
e1eaea9d5a Very dirty, very quick, read-only implementation of emoji reactions 2020-02-07 01:21:10 +03:00
1cf2416dd1 Merge remote-tracking branch 'origin2/develop' into develop 2020-02-03 12:51:15 +03:00
96e0c39f90 Merge upstream, update color scheme 2020-02-03 12:50:52 +03:00
Frieder Bluemle
ee2bc75ecf Update espresso-core to 3.2.0 2020-02-01 11:14:31 -08:00
Konrad Pozniak
25e0e73085 fix in app language switching (#1659) 2020-01-30 21:05:24 +01:00
fc546f2071 gradle: fix AppCompatCustomView lint warning. I don't really care about AppCompat bloated everyone use 2020-01-14 18:41:58 +03:00
82aac35fdb gradle: disable ExtraTranslation 2020-01-11 08:50:03 +03:00
0e5e0bea39 Merge upstream develop 2020-01-03 22:55:09 +03:00
Konrad Pozniak
e28463ae7d upgrade dependencies (#1596) 2019-12-20 21:31:41 +01:00
Konrad Pozniak
8aa217c028 upgrade androidx.browser to 1.2.0 (#1595) 2019-12-20 20:08:02 +01:00
Konrad Pozniak
d9d2fdbc4b upgrade SparkButton to 3.0.0 (#1594) 2019-12-20 19:52:36 +01:00
Ivan Kupalov
9c59d000f9 ComposeActivity refactor (#1541)
* Convert ComposeActivity to Kotlin

* More ComposeActivity cleanups

* Move ComposeActivity to it's own package

* Remove ComposeActivity.IntentBuilder

* Re-do part of the media downsizing/uploading

* Add sending of status to ViewModel, draft media descriptions

* Allow uploading video, update description after uploading

* Enable camera, enable upload cancelling

* Cleanup of ComposeActivity

* Extract CaptionDialog, extract ComposeActivity methods

* Fix handling of redrafted media

* Add initial state and media uploading out of Activity

* Change ComposeOptions.mentionedUsernames to be Set rather than List

We probably don't want repeated usernames when we are writing a post
and Set provides such guarantee for free plus it tells it to the
callers. The only disadvantage is lack of order but it shouldn't be a
problem.

* Add combineOptionalLiveData. Add docs.

It it useful for nullable LiveData's. I think we cannot differentiate
between value not being set and value being null so I just added the
variant without null check.

* Add poll support to Compose.

* cleanup code

* move more classes into compose package

* cleanup code

* fix button behavior

* add error handling for media upload

* add caching for instance data again

* merge develop

* fix scheduled toots

* delete unused string

* cleanup ComposeActivity

* fix restoring media from drafts

* make media upload code a little bit clearer

* cleanup autocomplete search code

* avoid duplicate object creation in SavedTootActivity

* perf: avoid unnecessary work when initializing ComposeActivity

* add license header to new files

* use small toot button on bigger displays

* fix ComposeActivityTest

* fix bad merge

* use Singles.zip instead of Single.zip
2019-12-19 19:09:40 +01:00
a090925d2b OkHttpUtils: change useragent to Husky 2019-12-17 03:28:28 +03:00
e4400f0061 markdown: implement wysiwyg editor 2019-12-17 03:28:28 +03:00
Konrad Pozniak
8a65f91d2c Bookmarks (#1560)
* add bookmarks to timelines

* add Bookmarks to main menu

* cleanup

* handle BookmarkEvent

* fix tests

* fix bookmark handling in NotificationsFragment

* add bookmark accessibility actions
2019-11-19 10:15:32 +01:00
Konrad Pozniak
d05bd4b751 update deps, cleanup build file (#1546) 2019-11-06 20:48:58 +01:00
Konrad Pozniak
4d4c4cdb3d Migrate to ViewPager2 (#1544)
* migrate MainActivty to ViewPager2

* migrate AccountActivty to ViewPager2

* migrate ViewMediaActivty to ViewPager2

* migrate SearchActivity to ViewPager2

* checkin missing AccountPagerAdapter file

* remove unused class ImageViewPager

* replace SparseArray with MutableList
2019-11-06 20:17:53 +01:00
Konrad Pozniak
c02a8c3a41 add build customization options (#1532) 2019-10-29 20:30:46 +01:00
Konrad Pozniak
d5d9af4fde Upgrade api level to Android 10, implement new sharing api (#1537)
* upgrade api level to Android 10, resolve compile errors

* use androidx.preference.PreferenceManager instead of deprecated platform class

* add hyphenation to important TextViews

*  setBottomSheetCallback -> addBottomSheetCallback

* implement new sharing api

* improve TuskyTileService so it shows account picker when multiple accounts are present

* delete unused AccountChooserService

* fix test

* improve ShareShortcutHelper

* remove debug log statement

* improve image loading fallback behavior in ShareShortcutHelper

* improve behavior on foldable devices
2019-10-22 21:18:20 +02:00
Konrad Pozniak
0e920ca8f6 upgrade dependencies (#1535)
* upgrade dependencies

* enable incremental annotation processing for room
2019-10-14 09:56:00 +02:00
Konrad Pozniak
4c81f71afe Refactor theming (#1529)
* fix toolbars

* use toolbar in MainActivity

* update AccountActivity appbar

* update material design library

* remove unneeded tabs styling

* fix black theme
2019-10-12 20:00:29 +02:00
Konrad Pozniak
14ce0c4952 upgrade appcompat, fix nightmode (#1455)
* upgrade appcompat, fix language switching & nightmode

* cleanup ThemeUtils

* upgrade dependencies

* change active boost icon (#1513)

* upgrade jetifier and android gradle plugin

* fix FilterTest
2019-10-03 19:58:21 +02:00
kyori19
dc933b439d Scheduled toot (#1004)
* Scheduled toot

* Hide scheduled toot button if version < 2.7.0

* Fix timeline reloading after toot

* Add edit icon to ComposeScheduleView

* Add button to reset scheduled toot

* Close bottom sheet and change button color after time a was selected

* Fix edit icon's size

* List of scheduled toots

* Fix instance version check

* Use MaterialDatePicker

* Set date and time consecutively

* Add licenses
2019-10-02 21:28:12 +02:00