{"id":13903053,"url":"https://github.com/safe-global/safe-ios","last_synced_at":"2025-04-04T20:31:12.185Z","repository":{"id":36962828,"uuid":"255579920","full_name":"safe-global/safe-ios","owner":"safe-global","description":"Safe Multisig iOS app.","archived":false,"fork":false,"pushed_at":"2024-03-20T15:15:44.000Z","size":163360,"stargazers_count":108,"open_issues_count":163,"forks_count":35,"subscribers_count":11,"default_branch":"main","last_synced_at":"2024-03-25T21:40:58.681Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/safe-global.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}},"created_at":"2020-04-14T10:34:58.000Z","updated_at":"2024-03-31T06:32:22.716Z","dependencies_parsed_at":"2024-03-31T06:42:21.176Z","dependency_job_id":null,"html_url":"https://github.com/safe-global/safe-ios","commit_stats":null,"previous_names":[],"tags_count":56,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe-global%2Fsafe-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe-global%2Fsafe-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe-global%2Fsafe-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/safe-global%2Fsafe-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/safe-global","download_url":"https://codeload.github.com/safe-global/safe-ios/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247246293,"owners_count":20907770,"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-08-06T22:01:35.383Z","updated_at":"2025-04-04T20:31:07.175Z","avatar_url":"https://github.com/safe-global.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# Safe{Wallet} iOS app\nSafe Multisig iOS app.\n\n# Coding Style\nAs of 18.03.2021, this project adopted the [Google's Swift Style Guide](https://google.github.io/swift/) as well as [Apple's Swift API Design Guidelines](https://swift.org/documentation/api-design-guidelines/). \n\nWe adopt the following modifications to the above guidelines:\n- 4-space indentation instead of 2-space\n- Line wrapping at 120 characters\n\nInconsistencies and differences between the project's source code and the aforementioned guidelines shall be corrected as a by-product of the normal work on feature development and bug fixes.\n\nNotable differences that we should look for:\n- alphabetical sorting of import statements\n- separation of testable import with blank line\n- one statement per line\n- trailing commas after last array or dictionary element\n- Add documentation to every (public) declaration.\n- Delegate methods: first object is the source.\n- force-try! Is forbidden except in unit test, test-only code, or in case of programmer error.\n- Force-unwrap and force-cast is strongly discouraged (except unit tests or programmer error).\n- Implicitly unwrapped optionals should be avoided whenever possible.\n  - Except in @IBOutlet, Objective-C APIs, unit tests or programmer error.\n- Access level is specified on each member of the extension (if it is not default).\n- Graphical playground literals - use only in Playgrounds, not in code. \n\n# Configuration\n\nIn order for the app to be functional, you need to create the protected configuration file\nwith API keys in it (at least the `INFURA_API_KEY`).\n\nYou can find an example of unprotected configuration file at `Multisig/Cross-layer/Configurations/apis-staging.example.json`\n\nYou then encrypt that file using the `secconfig` tool:\n\n    $\u003e bin/secconfig encrypt Multisig/Cross-layer/Configurations/apis-staging.example.json Multisig/Cross-layer/Configuration/apis.bundle/apis-staging.enc.json\n    \u003cTOOL OUTPUT ENDING WITH '='\u003e\n\nThe tool outputs the encryption key with which the configuration was encrypted. Export that value as an environment variable\n    $\u003e export CONFIG_KEY_STAGING=\"...\"\n\nThen, repeat the same for the production environment (in that case the files would be named `apis-prod.example.json` and `apis-prod.enc.json`, and the environment variable is `CONFIG_KEY_PROD`).\n\n**NOTE: Do not commit unencrypted files with real API keys `apis-staging.exmaple.json` or `apis-prod.example.json` to git! Otherwise you will compromise them.**\n\nYou can find more details about the `secconfig` tool in the script `Pakcages/SecureConfig/Sources/secconfig/main.swift`\n\n*Optional*. If you use the encrypted `Firebase.dat` configuration, provide the encryption key as \nenvironment variable.\n\n    $\u003e export ENCRYPTION_KEY=\"...\"\n\nThe app will work without it, so that step can be skipped.\n\nThen, run the configure script to install the Config.xcconfig\n\n    $\u003e bin/configure.sh\n\nNow you are ready to build the project.\n\n# Documentation\n\nDocumentation is in the [docs](docs/doc.md) folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafe-global%2Fsafe-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafe-global%2Fsafe-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafe-global%2Fsafe-ios/lists"}