{"id":13774095,"url":"https://github.com/gs-ts/BitfinexClient","last_synced_at":"2025-05-11T06:32:08.313Z","repository":{"id":98493163,"uuid":"184434371","full_name":"gs-ts/BitfinexClient","owner":"gs-ts","description":"An Android app written in Kotlin that demonstrates a clean architecture with MVVM, websockets using WebScoket client Scarlet, and RxAndroid/RxKotlin.","archived":false,"fork":false,"pushed_at":"2021-01-04T09:20:07.000Z","size":218,"stargazers_count":18,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-03T17:10:54.088Z","etag":null,"topics":["android","android-architecture-components","bitfinex","bitfinex-api","bitfinex-websocket-api","clean-architecture","databinding-android","diffutil-recyclerview","koin","kotlin","mvvm","rxandroid","rxkotlin","scarlet","viewbinding","websocket"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gs-ts.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-05-01T15:08:00.000Z","updated_at":"2024-04-23T06:24:59.000Z","dependencies_parsed_at":"2023-06-28T08:15:09.885Z","dependency_job_id":null,"html_url":"https://github.com/gs-ts/BitfinexClient","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gs-ts%2FBitfinexClient","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gs-ts%2FBitfinexClient/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gs-ts%2FBitfinexClient/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gs-ts%2FBitfinexClient/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gs-ts","download_url":"https://codeload.github.com/gs-ts/BitfinexClient/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225021976,"owners_count":17408525,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-architecture-components","bitfinex","bitfinex-api","bitfinex-websocket-api","clean-architecture","databinding-android","diffutil-recyclerview","koin","kotlin","mvvm","rxandroid","rxkotlin","scarlet","viewbinding","websocket"],"created_at":"2024-08-03T17:01:23.646Z","updated_at":"2024-11-17T09:30:31.967Z","avatar_url":"https://github.com/gs-ts.png","language":"Kotlin","readme":"# BitfinexClient\n\nAn android app that showing the details of the BTC/USD currency pair, at real-time:\n- a summary (current price, price change, volume, low, high) - ticker\n- a table with the order book\n\n---\n\n### MVVM pattern with Clean architecture developed with Kotlin.\nClean architecture consists of three layers:\n- **Data**, includes data objects, databases, network clients, repositories.\n- **Domain**, includes use cases of business logic. This layer orchestrates the flow of data from Data Layer to Presentation and the other way.\n- **Presentation**, includes UI related components, such as ViewModels, Fragments, Activities.\n\nEach layer has its own entities/models which are specific to that package. Mapper is used for conversion of one layer to another.\n\n##### Android Jetpack Components used:\n- Activity\n- Fragment\n- ViewModel \n- LiveData \n- View Binding (used to replace `findViewById` and synthetic binding)\n- Data Binding (used for [Layouts and binding expressions](https://developer.android.com/topic/libraries/data-binding/expressions)), example: [binding expression](https://github.com/gs-ts/BitfinexClient/blob/master/app/src/main/res/layout/bitfinex_fragment.xml#L49)\n- ActivityScenario, for instrumentation test (part of AndroidX Test) \n- Espresso\n\n##### Libraries:\n- [Koin](https://insert-koin.io/), an easy-to-use DI framework. [Nice comparison with Dagger](https://medium.com/@farshidabazari/android-koin-with-mvvm-and-retrofit-e040e4e15f9d)\n\n- [RxKotlin](https://github.com/ReactiveX/RxKotlin) / [RxAndroid](https://github.com/ReactiveX/RxAndroid), RxJava bindings for Kotlin / Android \n\n- [Scarlet](https://github.com/Tinder/Scarlet), a Retrofit inspired WebSocket client, manages the client-server connection for you. It makes use of a StateMachine to handle WebSocket connection correctly. Developed by Tinder, and has been in production for more than one year. \n\n- [OkHttp](https://square.github.io/okhttp/), an HTTP client for Android and Java applications \n\n- [moshi](https://github.com/square/moshi), JSON library for Kotlin and Java \n\n- [Timber](https://github.com/JakeWharton/timber), a logger which provides utility on top of Android’s Log class\n\n##### Screenshots:\n\u003cimg src=\"https://user-images.githubusercontent.com/12731470/63213580-561db080-c10e-11e9-8369-687245facb11.png\" width=\"400\"\u003e\n\n\nSources:\n- [Google I/O 2018 app — Architecture and Testing](https://medium.com/androiddevelopers/google-i-o-2018-app-architecture-and-testing-f546e37fc7eb)\n- [Clean Architecture of Android Apps with Practical Examples](https://rubygarage.org/blog/clean-android-architecture)\n- [Clean Architecture Guide (with tested examples): Data Flow != Dependency Rule](https://proandroiddev.com/clean-architecture-data-flow-dependency-rule-615ffdd79e29)\n","funding_links":[],"categories":[":art: Pattern"],"sub_categories":["MVVM"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgs-ts%2FBitfinexClient","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgs-ts%2FBitfinexClient","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgs-ts%2FBitfinexClient/lists"}