{"id":17004736,"url":"https://github.com/kshivang/noccaventilator","last_synced_at":"2026-05-16T21:04:43.930Z","repository":{"id":86265758,"uuid":"252891821","full_name":"kshivang/NoccaVentilator","owner":"kshivang","description":"Ventilator Operating App made for Nocca Robotics. In wake of Covid 19, this my small contribution.","archived":false,"fork":false,"pushed_at":"2020-06-05T18:40:10.000Z","size":3487,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T10:40:35.795Z","etag":null,"topics":[],"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/kshivang.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":"2020-04-04T02:42:21.000Z","updated_at":"2020-06-05T18:40:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c51c0bf-e608-4f3d-8986-a835839342d6","html_url":"https://github.com/kshivang/NoccaVentilator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kshivang/NoccaVentilator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshivang%2FNoccaVentilator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshivang%2FNoccaVentilator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshivang%2FNoccaVentilator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshivang%2FNoccaVentilator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kshivang","download_url":"https://codeload.github.com/kshivang/NoccaVentilator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kshivang%2FNoccaVentilator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33118952,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-10-14T04:44:16.697Z","updated_at":"2026-05-16T21:04:43.926Z","avatar_url":"https://github.com/kshivang.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NoccaVentilator\n\n## Design\n\n[android zeplin](https://zpl.io/258kmwn)\n\n[showcase](https://scene.zeplin.io/project/5e8789e1b5d50bbb08b003b0)\n\n## Code Design\n\n__| Backend | \u003c=\u003e | Rx functional API | \u003c=\u003e | Frontend |__\n\n**Backend** is assunmed to be asyncronous therefore not safe to call directly from UI main thread.\n\n**Rx functional api** will bridge this async bridge with awesome thread management.\n\n### How to create these Rx API\nIt's quite simple you just have to follow following syntax\n```kotlin\nlet someObservable get() = Observable.create\u003cString\u003e {\n    let listener = backendCall( { result -\u003e\n        it.onNext(result)\n    })\n    it.setCancellable { listener.release() } // this may/may not be used\n}.apply {\n    subscribeOn(Schedulers.io())\n    observeOn(AndroidSchedulers.mainThread())\n}\n```\n\n\nSince this app backend will implement connection protocal(USB connection), \ntherefore, lifecycle aware backend may be required, hence [Single Activity Architecture](https://www.youtube.com/watch?v=2k8x8V77CrU).\n\n### HolderActivity \u0026 BaseActivity\nHolderActivity extends BaseActivity for better readiblity purposes. \nFor view related code use HolderActivity and for backend related code use BaseActivity.\nAll of HolderActivity life-cycle call is also passed to BaseActivity as well.\n\n#### onCreate\nIf you want to initialise 3rd party sdk or establish device backend connection do it here\n\n#### onDestroy\nRelease and clean all of resources like realtime listener or socket connection here.\n\n### BaseFragment\nThis is abstract fragment which expect `val title` to be implemented\n```kotlin\nval title: get()\n```\nwhich is used as title shown by activity while showing this fragment.\n#### onViewCreated\nHere you should subscribe to api observable and pass value to handler and update view using runOnActive handler.\ne.g.: \n```kotlin\nsomeObservable.subscribe { string -\u003e\n  runOnActive {\n    someView.text = string\n  }\n}\n```\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshivang%2Fnoccaventilator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkshivang%2Fnoccaventilator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkshivang%2Fnoccaventilator/lists"}