Yuito-app-android/app/src/main/java/com/keylesspalace/tusky
Ivan Kupalov 4d8289b245
Implement Login via WebView (#2371)
* Improve login process with newer APIs

* Implement login with WebView instead of browser tab or external browser

Oauth process requires us to open login prompt for correct instance and
we need to receive the result back. Usually it is done with redirect
parameter.

Previously we've been using BrowserTabs API and have been falling back
to just opening browser. This mostly worked but is very clumsy:

 - It relies on few system mechanisms for opening URLs in both
directions
 - Browsers do weird things and tend to break quite a bit
 - There's a good chance that the app can die in the process and we need
to recover our state.

So instead we are now using WebView. It has disadvantages (users have
to trust us to show correct page, logins are not shared w/ browser) but
it should be more reliable.

* Changes to login after review

* Move login classes to their own package

* Fix linting issues
2022-03-08 21:22:19 +01:00
..
adapter display account name when display name is not set (#2361) 2022-03-01 21:29:16 +01:00
appstore Improve timeline dao (#2353) 2022-03-02 20:40:06 +01:00
components Implement Login via WebView (#2371) 2022-03-08 21:22:19 +01:00
db Improve timeline dao (#2353) 2022-03-02 20:40:06 +01:00
di Implement Login via WebView (#2371) 2022-03-08 21:22:19 +01:00
entity Instance configuration: the easy parts (#2341) 2022-03-01 19:43:36 +01:00
fragment merge ModalTimelineActivity & ViewTagActivity into StatusListActivity (#2332) 2022-02-25 18:57:31 +01:00
interfaces merge ModalTimelineActivity & ViewTagActivity into StatusListActivity (#2332) 2022-02-25 18:57:31 +01:00
json use custom JsonAdapter to be compatible with instances that have a custom subscribing feature (#2298) 2022-01-21 07:34:26 +01:00
network Implement Login via WebView (#2371) 2022-03-08 21:22:19 +01:00
pager move AccountActivity and related classes to a new package (#2216) 2022-01-11 19:55:17 +01:00
receiver add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
service Cleanup dagger setup (#2300) 2022-01-23 20:24:55 +01:00
settings Add confirmation for favourite and bookmark actions (#2245) 2021-10-04 07:48:44 +02:00
util fix String.inc() and String.dec() not being inverse operations (#2355) 2022-03-01 21:29:05 +01:00
view Use tags from status when adding handlers to hashtag spans in status content (#2344) 2022-02-25 18:56:21 +01:00
viewdata Highlight your own votes when displaying poll results (#2242) 2021-09-17 22:12:17 +02:00
viewmodel update Android Image Cropper and get rid of deprecated onActivityResult (#2351) 2022-03-02 20:39:56 +01:00
AboutActivity.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
AccountListActivity.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
AccountsInListFragment.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
BaseActivity.java Implement Login via WebView (#2371) 2022-03-08 21:22:19 +01:00
BottomSheetActivity.kt Use tags from status when adding handlers to hashtag spans in status content (#2344) 2022-02-25 18:56:21 +01:00
EditProfileActivity.kt update Android Image Cropper and get rid of deprecated onActivityResult (#2351) 2022-03-02 20:39:56 +01:00
FiltersActivity.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
LicenseActivity.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
ListsActivity.kt merge ModalTimelineActivity & ViewTagActivity into StatusListActivity (#2332) 2022-02-25 18:57:31 +01:00
MainActivity.kt Implement Login via WebView (#2371) 2022-03-08 21:22:19 +01:00
SplashActivity.kt Implement Login via WebView (#2371) 2022-03-08 21:22:19 +01:00
StatusListActivity.kt merge ModalTimelineActivity & ViewTagActivity into StatusListActivity (#2332) 2022-02-25 18:57:31 +01:00
TabData.kt Timeline paging (#2238) 2022-01-11 19:00:29 +01:00
TabPreferenceActivity.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
TuskyApplication.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
ViewMediaActivity.kt add ktlint plugin to project and apply default code style (#2209) 2021-06-28 21:13:24 +02:00
ViewThreadActivity.java Use tags from status when adding handlers to hashtag spans in status content (#2344) 2022-02-25 18:56:21 +01:00