{"id":18829728,"url":"https://github.com/infomaniak/ios-bug-tracker","last_synced_at":"2025-08-23T03:35:59.744Z","repository":{"id":65796001,"uuid":"511911658","full_name":"Infomaniak/ios-bug-tracker","owner":"Infomaniak","description":"Bug tracker component in Swift to add in iOS apps (internal use)","archived":false,"fork":false,"pushed_at":"2025-04-08T11:55:08.000Z","size":104,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-08T12:42:23.829Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Infomaniak.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-08T13:49:51.000Z","updated_at":"2025-04-08T11:54:55.000Z","dependencies_parsed_at":"2024-03-18T16:35:25.607Z","dependency_job_id":"4eac35da-7220-4151-b6e9-1195f92d88db","html_url":"https://github.com/Infomaniak/ios-bug-tracker","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Infomaniak%2Fios-bug-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Infomaniak%2Fios-bug-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Infomaniak%2Fios-bug-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Infomaniak%2Fios-bug-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Infomaniak","download_url":"https://codeload.github.com/Infomaniak/ios-bug-tracker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248817041,"owners_count":21166176,"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":[],"created_at":"2024-11-08T01:45:59.244Z","updated_at":"2025-04-14T03:35:14.621Z","avatar_url":"https://github.com/Infomaniak.png","language":"Swift","readme":"# InfomaniakBugTracker\n\nBug tracker component in Swift to add in iOS apps (internal use).\n\n## Installation\n\n1. In your Xcode project, go to: File \u003e Swift Packages \u003e Add Package Dependency…\n2. Enter the package URL: `git@github.com:Infomaniak/ios-bug-tracker.git`\n\n## Usage\n\n### Configuration\n\nBefore presenting the bug tracker, you need to configure it:\n\n```swift\nBugTrackerInfo(\n    route: \"route\", // route to find the project bucket (optional)\n    project: \"app-mobile-mail\", // project name\n    serviceId: 0 // service ID to find the project bucket (optional) \n)\n```\n\n### Checking that the user is staff\n\nThe bug tracker component can only be used by staff accounts. To check this, use the `isStaff` property of the `UserProfile` object (from [InfomaniakCore](https://github.com/Infomaniak/ios-core) package).\n\nNote: the token needs the `user_info_staff` scope to be able to fetch this property.\n\n### Present the view using SwiftUI\n\nTo present the bug tracker component using SwiftUI, simply return a `BugTrackerView` in a `sheet` or `NavigationLink`.\n\n```swift\nstruct MyView: View {\n    @State private var showingBugTracker = false\n\n    var body: some View {\n        VStack {\n            Text(\"My view\")\n            Button(\"Present bug tracker\") {\n                showingBugTracker = true\n            }\n        }\n        .sheet(isPresented: $showingBugTracker) {\n            BugTrackerView(isPresented: $showingBugTracker)\n        }\n    }\n}\n```\n\n### Present the view using UIKit\n\nTo present the bug tracker component using UIKit, simply present a `BugTrackerViewController` instance.\n\n```swift\nmyViewController.present(BugTrackerViewController(), animated: true)\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfomaniak%2Fios-bug-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfomaniak%2Fios-bug-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfomaniak%2Fios-bug-tracker/lists"}