Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Replace anko (v2) #1615

Merged
merged 50 commits into from
Sep 17, 2023
Merged

Replace anko (v2) #1615

merged 50 commits into from
Sep 17, 2023

Conversation

CommanderStorm
Copy link
Member

Issue

This fixes the following issue(s):

Why this is useful for all students

Most likely users won't notice. But Anko has been archived since 2020 and thus not received improvements. Also the way how asynchronous work is done is not up to date / deprecated classes are used. This PR fixes this in all cases where previously Anko was used.

How is Anko replaced

  • for services through the corresponding native implementation
  • for SharedPreferences through the androidx PreferenceManager
  • asynchronous handling:
    • for impersistent work by binding to lifecycle using coroutines where possible
    • for persistent work by using WorkManager
  • all other cases through native implementations see commit messages for every replacement

kunzef and others added 30 commits May 25, 2023 02:39
This solved the getDefaultSharedPreferenceDeprecated message
kunzef and others added 19 commits May 28, 2023 22:05
# Conflicts:
#	app/src/main/java/de/tum/in/tumcampusapp/component/other/locations/LocationManager.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/tumui/calendar/CalendarFragment.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/tumui/calendar/CreateEventActivity.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/tumui/roomfinder/NavigationDetailsFragment.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/barrierfree/BarrierFreeFacilitiesActivity.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/cafeteria/controller/CafeteriaManager.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/eduroam/EduroamCard.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/eduroam/EduroamFixCard.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/news/TopNewsCard.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/onboarding/OnboardingExtrasFragment.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/onboarding/OnboardingStartFragment.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/onboarding/StartupActivity.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/overview/CardManager.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/overview/MainActivityViewModel.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/overview/MainFragment.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/overview/card/Card.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/studyroom/StudyRoomGroupManager.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/studyroom/StudyRoomsFragment.kt
#	app/src/main/java/de/tum/in/tumcampusapp/component/ui/transportation/widget/MVVWidget.kt
#	app/src/main/java/de/tum/in/tumcampusapp/service/QueryLocationsService.kt
#	app/src/main/java/de/tum/in/tumcampusapp/utils/CacheManager.kt
#	app/src/main/java/de/tum/in/tumcampusapp/utils/NetUtils.kt
@CommanderStorm CommanderStorm mentioned this pull request Sep 17, 2023
@CommanderStorm CommanderStorm merged commit 34199d6 into master Sep 17, 2023
1 check passed
@CommanderStorm CommanderStorm deleted the replace-anko branch September 17, 2023 16:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Replace Anko Library
2 participants