{"id":18137754,"url":"https://github.com/talk-to/forge","last_synced_at":"2025-04-06T17:22:13.257Z","repository":{"id":56911473,"uuid":"162558506","full_name":"talk-to/Forge","owner":"talk-to","description":"Task handler for iOS that can persist tasks across restarts and intelligently retry them","archived":false,"fork":false,"pushed_at":"2020-02-04T06:13:55.000Z","size":621,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-13T05:03:57.882Z","etag":null,"topics":["architecture","cocoapods","forge","ios","offline-capable","operations","persist-tasks","swift","task","task-handler"],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/talk-to.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-20T09:42:40.000Z","updated_at":"2023-07-30T09:49:06.000Z","dependencies_parsed_at":"2022-08-20T20:20:32.528Z","dependency_job_id":null,"html_url":"https://github.com/talk-to/Forge","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talk-to%2FForge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talk-to%2FForge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talk-to%2FForge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/talk-to%2FForge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/talk-to","download_url":"https://codeload.github.com/talk-to/Forge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247518538,"owners_count":20951822,"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":["architecture","cocoapods","forge","ios","offline-capable","operations","persist-tasks","swift","task","task-handler"],"created_at":"2024-11-01T15:06:25.368Z","updated_at":"2025-04-06T17:22:13.220Z","avatar_url":"https://github.com/talk-to.png","language":"Swift","readme":"# Forge\n\n[![Version](https://img.shields.io/cocoapods/v/FlockForge.svg?style=flat)](https://cocoapods.org/pods/FlockForge)\n[![License](https://img.shields.io/cocoapods/l/FlockForge.svg?style=flat)](https://cocoapods.org/pods/FlockForge)\n[![Platform](https://img.shields.io/cocoapods/p/FlockForge.svg?style=flat)](https://cocoapods.org/pods/FlockForge)\n\nSimple Task handler for iOS\n\n- [Features](#features)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Example](#example)\n- [Architecture](#architecture)\n- [Credits](#credits)\n- [License](#license)\n\n## Features\n\n- [x] Task persistence across app restarts\n- [x] Start tasks with delay (simulating undo)\n- [x] Have tasks retriable\n- [x] Task viewer for debugging\n- [x] extensive logging support\n\n## Requirements\n\n* Swift 4.2+\n* iOS 11+\n\n## Installation\n\n[CocoaPods](https://cocoapods.org) is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate Forge into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\npod 'FlockForge',\n```\n\n## Example\n\n1. Create Forge and optionally listen to changes\n\n  ```swift\n  let forge = Forge(with: \"test\")\n  let changeManager = TestChangeManager() // An object following `ChangeManager` protocol.\n  forge.changeManager = changeManager\n  ```\n\n2. Add an executor to handle tasks for a particular type\n\n  ```swift\n  let executor = TestExecutor() // An object following `Executor` protocol.\n  try! forge.register(executor: executor, for: \"t\") // Register executor for tasks with type \"t\"\n  ```\n\n3. Create a task and submit to forge\n\n  ```swift\n  let params = [\"params\": \"params\"]\n  let task = try! Task(id: \"id\", type: \"t\", params: params) // Create task\n  forge.submit(task: task)\n  ```\n\n4. [Optional] Presenting the Forge Tasks View Controller\n\n\t1. Create the View controller\n\n\t  ```swift\n\t  let storyBoard = UIStoryboard(name: \"ForgeTask\", bundle: Bundle(for: Forge.self))\n\t  guard let forgeTasksVC = storyBoard.instantiateViewController(withIdentifier: \"ForgeTasksViewController\")\n\t  as? ForgeTasksViewController else {\n\t  fatalError(\"Could not instantiate TroubleshootController\")\n\t  }\n\t  ```\n\t  \n\t2. Present the created ViewController in your view heirarchy.\n  \nNote: To give it a spin, you can use the Tests project in [Tests](Tests) folder. Run `pod install` before opening the workspace.\n\n\n\n## Architecture\n\n**Please read [architecture doc](doc/architecture.md) for more details.**\n\n\n## Credits\n\n* [Ayush Goel](https://github.com/ayushgoel)\n* [Aditya Ghosh](https://github.com/adityaghosh996)\n* [Dinesh Kumar](https://github.com/dineshflock)\n\n## License\n\nForge is available under the BSD 3-Clause license. See the LICENSE file for more info.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalk-to%2Fforge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftalk-to%2Fforge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftalk-to%2Fforge/lists"}