{"id":21820208,"url":"https://github.com/zahraheydari/kotlinbaseproject","last_synced_at":"2025-04-14T02:44:20.870Z","repository":{"id":106410121,"uuid":"221238508","full_name":"ZahraHeydari/KotlinBaseProject","owner":"ZahraHeydari","description":"This is a base code for every Kotlin project in Android","archived":false,"fork":false,"pushed_at":"2019-11-12T14:39:12.000Z","size":170,"stargazers_count":23,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T16:49:38.815Z","etag":null,"topics":["abstract","abstraction","abstraction-layer","coroutines","coroutines-android","data","koin","koin-kotlin","koin-mvvm","kotlin-coroutines","moshi","mvvm-android","mvvm-architecture","usecase"],"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/ZahraHeydari.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-12T14:34:27.000Z","updated_at":"2023-01-31T14:47:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"0778614a-cdea-4f74-a038-8c505a415d0a","html_url":"https://github.com/ZahraHeydari/KotlinBaseProject","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/ZahraHeydari%2FKotlinBaseProject","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZahraHeydari%2FKotlinBaseProject/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZahraHeydari%2FKotlinBaseProject/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZahraHeydari%2FKotlinBaseProject/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZahraHeydari","download_url":"https://codeload.github.com/ZahraHeydari/KotlinBaseProject/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248812745,"owners_count":21165472,"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":["abstract","abstraction","abstraction-layer","coroutines","coroutines-android","data","koin","koin-kotlin","koin-mvvm","kotlin-coroutines","moshi","mvvm-android","mvvm-architecture","usecase"],"created_at":"2024-11-27T16:29:15.708Z","updated_at":"2025-04-14T02:44:20.846Z","avatar_url":"https://github.com/ZahraHeydari.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KotlinBaseProject\nA base code which I almost use in every project I work on!\nIt shows how to use ViewModels and Room together with Coroutines \u0026 Koin by Clean Architecture in Kotlin!\nThis way you don`t need to repeat the same code in different parts of your project over \u0026 over.\n\n### BaseActivity:\nAll activities can extends this abstract class.\n- To handle the back process for all its child fragments\n- To handle the navigation of fragments(add/replace)\n- To inflate the view of activities using data binding util\n\n\n### BaseFragment:\nAll fragments extend this abstract class.\n- To inflate root view using data binding util\n- To override a Toolbar for fragment using toolBarId if it exists\n- To check the Authentication of user\n\n### BaseViewGroup\nIt`s an interface that interacts with activities and fragments to determine ViewModel, LayoutId and ViewDataBinding of them\n\n### BaseViewModel\nSometimes we have a same login in many parts of our application. Such as checking the internet connection,\nshowing/hiding progressBar when there is no data, or displaying a message/an error message when needed.\nSo we put all these cases in only one ViewModel as called BaseViewModel and all our ViewModels extend it.\n\n### CommonToast\nThis class is used to customize toasts(appearance)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzahraheydari%2Fkotlinbaseproject","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzahraheydari%2Fkotlinbaseproject","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzahraheydari%2Fkotlinbaseproject/lists"}