title: ÐÐ»Ð¸ÐµÐ½ÑÑÐºÐ°Ñ ÑÐ°ÑÑÑ Ð»Ð¸ÑÐµÑÐ°ÑÑÑÐ½Ð¾Ð³Ð¾ Ð¿Ð¾ÑÑÐ°Ð»Ð° Ð½Ð° Ð±Ð°Ð·Ðµ Android
title: Ð²ÑÐ¿ÑÑÐºÐ½Ð°Ñ ÐºÐ²Ð°Ð»Ð¸ÑÐ¸ÐºÐ°ÑÐ¸Ð¾Ð½Ð½Ð°Ñ ÑÐ°Ð±Ð¾ÑÐ° Ð±Ð°ÐºÐ°Ð»Ð°Ð²ÑÐ°
titleType: Subtitle
title: The client part of the literary portal based on Android
Creators: name: Ð¨ÑÑÐ°ÑÐ¸Ð½, ÐÐ½Ð´ÑÐµÐ¹
Publisher: name: Ð¡Ð°Ð½ÐºÑ-ÐÐµÑÐµÑÐ±ÑÑÐ³ÑÐºÐ¸Ð¹ Ð¿Ð¾Ð»Ð¸ÑÐµÑÐ½Ð¸ÑÐµÑÐºÐ¸Ð¹ ÑÐ½Ð¸Ð²ÐµÑÑÐ¸ÑÐµÑ ÐÐµÑÑÐ° ÐÐµÐ»Ð¸ÐºÐ¾Ð³Ð¾
Year: 2023
Subjects: kotlin
retrofit
activity
fragment
viewmodel
android application

description: ÐÐ°Ð½Ð½Ð°Ñ ÑÐ°Ð±Ð¾ÑÐ° Ð¿Ð¾ÑÐ²ÑÑÐµÐ½Ð° ÑÐµÐ°Ð»Ð¸Ð·Ð°ÑÐ¸Ð¸ ÑÐ´Ð¾Ð±Ð½Ð¾Ð³Ð¾ Ð¸ ÑÑÐ½ÐºÑÐ¸Ð¾Ð½Ð°Ð»ÑÐ½Ð¾Ð³Ð¾ Android Ð¿ÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ðµ, ÐºÐ¾ÑÐ¾ÑÐ¾Ðµ Ð±ÑÐ´ÐµÑ Ð¿ÑÐ¸ÑÑÐ½Ð¾ Ð² Ð¸ÑÐ¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ðµ Ð¸ Ð´Ð»Ñ Ð°Ð²ÑÐ¾ÑÐ¾Ð², Ð¸ Ð´Ð»Ñ Ð¸Ñ ÑÐ¸ÑÐ°ÑÐµÐ»ÐµÐ¹. Ð ÑÐ¾Ð´Ðµ Ð²ÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÑÐ°Ð±Ð¾ÑÑ Ñ Ð¿ÑÐ¸Ð¼ÐµÐ½ÐµÐ½Ð¸ÐµÐ¼ ÑÐ·ÑÐºÐ° Kotlin, HTTP-ÐºÐ»Ð¸ÐµÐ½ÑÐ° Retrofit Ð¸ GoogleSignIn Ð±ÑÐ»Ð° ÑÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½Ð° ÐºÐ»Ð¸ÐµÐ½ÑÑÐºÐ°Ñ ÑÐ°ÑÑÑ Ð´Ð»Ñ Ð»Ð¸ÑÐµÑÐ°ÑÑÑÐ½Ð¾Ð³Ð¾ Ð¿Ð¾ÑÑÐ°Ð»Ð° Ð² ÐºÐ°ÑÐµÑÑÐ²Ðµ android Ð¿ÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ. ÐÐ»Ñ ÑÐ²Ð¾ÐµÐ¹ ÑÐ°Ð±Ð¾ÑÑ ÐºÐ»Ð¸ÐµÐ½ÑÑÐºÐ°Ñ ÑÐ°ÑÑÑ Ð¾Ð±ÑÐ°ÑÐ°ÐµÑÑÑ Ðº ÑÐµÑÐ²ÐµÑÐ½Ð¾Ð¹ Ð¿Ð¾ÑÑÐ»Ð°Ñ Http Ð·Ð°Ð¿ÑÐ¾ÑÑ. Ð¡Ð¾ÑÑÐ°Ð½ÑÐµÑ Ð¿Ð¾Ð»ÑÑÐµÐ½Ð½ÑÐµ Ð´Ð°Ð½Ð½ÑÐµ Ð² ViewModelâs. ÐÐ»Ñ ÐºÐ°Ð¶Ð´Ð¾Ð³Ð¾ ÑÐºÑÐ°Ð½Ð° Ð¿ÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ ÑÐ°Ð·ÑÐ°Ð±Ð¾ÑÐ°Ð½Ð° ÑÐ²ÑÐ·ÐºÐ° ÐºÐ»Ð°ÑÑÐ¾Ð² â ÑÑÐ°Ð³Ð¼ÐµÐ½Ñ, ViewModel. ÐÑÐ¸ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ð¸ ÑÑÐ°Ð³Ð¼ÐµÐ½ÑÐ° Ð¾Ð½ Ð¿Ð¾Ð´ÐºÐ»ÑÑÐ°ÐµÑÑÑ Ðº ÑÐ²Ð¾ÐµÐ¹ ViewModelÂ  Ð¸ Ð¿Ð¾Ð´Ð¿Ð¸ÑÑÐ²Ð°ÐµÑÑÑ Ð½Ð° Ð´Ð°Ð½Ð½ÑÐµ, Ð¿Ð¾Ð»ÑÑÐ°ÐµÐ¼ÑÐµ ÐµÐ¹. Ð¤ÑÐ°Ð³Ð¼ÐµÐ½Ñ ÑÐ¾Ð·Ð´Ð°ÑÑÑÑ, ÐºÐ¾Ð³Ð´Ð° Ð¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°ÑÐµÐ»Ñ Ð´Ð¾Ð»Ð¶ÐµÐ½ Ð¿ÐµÑÐµÐ¹ÑÐ¸ Ð½Ð° Ð´ÑÑÐ³Ð¾Ð¹ ÑÐºÑÐ°Ð½, Ð° ViewModel Ð¿ÑÐ¸ Ð¿ÐµÑÐ²Ð¾Ð¼ Ð¿Ð¾Ð´ÐºÐ»ÑÑÐµÐ½Ð¸Ð¸ Ðº Ð½ÐµÐ¹. ÐÐ¾ÑÐ»Ðµ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ ÑÑÐ°Ð³Ð¼ÐµÐ½Ñ Ð´Ð¾Ð±Ð°Ð²Ð»ÑÐµÑÑÑ Ð² Ð°ÐºÑÐ¸Ð²Ð½Ð¾ÑÑÑ, Ð¿Ð¾ÐºÐ°Ð·ÑÐ²Ð°ÑÑÑ Ð¿Ð¾Ð»ÑÐ·Ð¾Ð²Ð°ÑÐµÐ»Ñ, Ð·Ð°Ð¼ÐµÐ½ÑÑ Ð¿ÑÐµÐ´ÑÐ´ÑÑÐ¸Ð¹ ÑÑÐ°Ð³Ð¼ÐµÐ½Ñ, ÐºÐ¾ÑÐ¾ÑÑÐ¹ ÑÐ´Ð°Ð»ÑÐµÑÑÑ. ViewModel ÑÐ´Ð°Ð»ÑÐµÑÑÑ, ÐºÐ¾Ð³Ð´Ð° ÑÐ½Ð¸ÑÑÐ¾Ð¶Ð°ÐµÑÑÑ Ð°ÐºÑÐ¸Ð²Ð½Ð¾ÑÑÑ, ÑÐ¾ ÐµÑÑÑ ÐºÐ¾Ð³Ð´Ð° Ð·Ð°ÐºÑÑÐ²Ð°ÐµÑÑÑ Ð¿ÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ðµ. ÐÐ»Ñ ÑÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½Ð½Ð¾Ð³Ð¾ Ð¿ÑÐ¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð±ÑÐ»Ð¾ Ð¿ÑÐ¾Ð²ÐµÐ´ÐµÐ½Ð¾ Ð¼Ð¾Ð´ÑÐ»ÑÐ½Ð¾Ðµ ÑÐµÑÑÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ðµ Ñ Ð¿Ð¾ÐºÑÑÑÐ¸ÐµÐ¼ ÐºÐ¾Ð´Ð° Ð±Ð¾Ð»ÐµÐµ 80% Ð¿ÑÐ¾ÑÐµÐ½ÑÐ¾Ð² 62 ÑÐµÑÑÐ°, Ð¸Ð½ÑÐµÐ³ÑÐ°ÑÐ¸Ð¾Ð½Ð½Ð¾Ðµ ÑÐµÑÑÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸ÐµÂ  Ð² Ð²Ð¸Ð´Ðµ 9 ÑÑÐµÐ½Ð°ÑÐ¸ÐµÐ² Ð²Ð·Ð°Ð¸Ð¼Ð¾Ð´ÐµÐ¹ÑÑÐ²Ð¸Ñ Ñ ÑÐµÑÐ²ÐµÑÐ½Ð¾Ð¹. Ð¢ÐµÑÑÐ¸ÑÐ¾Ð²Ð°Ð½Ð¸Ðµ End-to-end ÐºÐ¾Ð»Ð¸ÑÐµÑÑÐ²Ð¾Ð¼ Ð² 18 ÑÑÐµÐ½Ð°ÑÐ¸ÐµÐ². Ð ÐµÐ°Ð»Ð¸Ð·Ð¾Ð²Ð°Ð½Ð½ÑÐµ ÑÑÐµÐ½Ð°ÑÐ¸Ð¸ Ð±ÑÐ»Ð¸ ÑÑÐ¿ÐµÑÐ½Ð¾ Ð¿ÑÐ¾Ð¹Ð´ÐµÐ½Ñ.
description: This work is devoted to the implementation of a convenient and functional Android application, which will be pleasant to use for both authors and their readers. In the course of the work using the language Kotlin, HTTP-client Retrofit and GoogleSignIn the client part was implemented for the literary portal as an android application. For its work the client part accesses the server part by sending Http requests. It saves the received data in ViewModels. For each screen application developed a bunch of classes - a fragment, ViewModel. When a fragment is created, it connects to its ViewModel and subscribes to the data it receives. The fragment is created when the user needs to go to another screen, and the ViewModel when it first connects to it. Once created, the snippet is added to the activity, showing to the user, replacing the previous snippet, which is deleted. The ViewModel is deleted when the activity is destroyed, that is, when the application is closed. Unit testing was performed for the implemented application with over 80% code coverage of 62 tests, integration testing in the form of 9 server-side interaction scenarios. End-to-end testing in the form of 18 scenarios. The implemented scenarios were successfully passed.