Renewing Elisa Viihde with the latest Android practices
Pölkki, Patrik (2023)
Pölkki, Patrik
2023
All rights reserved. This publication is copyrighted. You may download, display and print it for Your own personal use. Commercial use is prohibited.
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-2023060521229
https://urn.fi/URN:NBN:fi:amk-2023060521229
Tiivistelmä
This thesis investigates techniques for upgrading the Elisa Viihde Android application to follow the latest Android best practices and technologies. The current version of the application does not follow recent design patterns such as Model-View-ViewModel, one of the most used design patterns in Android development, and the user interface of the application is created using Fragment classes and XML files. This thesis aims to identify methods for migrating XML views to Jetpack Compose and introducing the MVVM design pattern into the current Elisa Viihde Android application. The migration requires removing the business logic from Fragment and adapters into the ViewModel class and migrating the XML-based UI to Jetpack Compose.
BlockFragment is a Fragment class in the Elisa Viihde Android application which generates multiple views and is the area of the application that got updated. The project uses the MVVM design pattern, and Jetpack Compose to create a clearer and simplified BlockFragment. In this project, the business logic from BlockFragment was moved to ViewModel and part of the UI was upgraded to Jetpack Compose using Kotlin. In conclusion, the project provides valuable insights into how Jetpack Compose can be integrated into the current implementation and used in the future to upgrade the application in line with the latest Android best practices and technologies.
BlockFragment is a Fragment class in the Elisa Viihde Android application which generates multiple views and is the area of the application that got updated. The project uses the MVVM design pattern, and Jetpack Compose to create a clearer and simplified BlockFragment. In this project, the business logic from BlockFragment was moved to ViewModel and part of the UI was upgraded to Jetpack Compose using Kotlin. In conclusion, the project provides valuable insights into how Jetpack Compose can be integrated into the current implementation and used in the future to upgrade the application in line with the latest Android best practices and technologies.