{"id":30143138,"url":"https://github.com/juspay/visa-ios","last_synced_at":"2025-08-11T06:50:10.272Z","repository":{"id":307098839,"uuid":"1028242053","full_name":"juspay/visa-ios","owner":"juspay","description":null,"archived":false,"fork":false,"pushed_at":"2025-07-29T11:59:18.000Z","size":160,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-29T13:36:11.602Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juspay.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,"zenodo":null}},"created_at":"2025-07-29T08:34:41.000Z","updated_at":"2025-07-29T11:59:10.000Z","dependencies_parsed_at":"2025-07-29T13:36:13.635Z","dependency_job_id":"be8bb4f5-340a-4c1c-9e59-d167d00b998c","html_url":"https://github.com/juspay/visa-ios","commit_stats":null,"previous_names":["juspay/visa-ios"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/juspay/visa-ios","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fvisa-ios","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fvisa-ios/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fvisa-ios/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fvisa-ios/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juspay","download_url":"https://codeload.github.com/juspay/visa-ios/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juspay%2Fvisa-ios/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269843701,"owners_count":24484116,"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","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-08-11T06:50:05.370Z","updated_at":"2025-08-11T06:50:10.248Z","avatar_url":"https://github.com/juspay.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VisaBenefitsSDK\n\n## **Integration Guide**\n\nTo install the VisaBenefitsSDK into your application via Swift Package Manager follow two steps:\n\n1. Installing Assets Plugin\n2. Installing VisaBenefitsSDK\n\nFollowing sections describe how to complete above steps\n\n## **1.1. Installing Assets Plugin**\n\nVisaBenefitsSDK depends on certain assets to function. These are available over the air and are supposed to be present while building the SDK. The Assets Plugin is a build time dependency that downloads all required assets and ensures the availability of the latest assets at build time.\n\nTo install Assets Plugin follow the below steps:\n\n### **Step 1.1a - Add Build Pre-actions Script**\n\nIn Xcode, go to the menu and select **Product** → **Scheme** → **Edit Scheme…**.\n\n![Xcode Menu Navigation](./images/scheme-menu.png)\n\nAlternatively, you can select your target from the scheme drop-down in Xcode's toolbar and choose **Edit Scheme...**.\n\n\u003cimg src=\"./images/scheme-dropdown.png\" alt=\"Scheme Dropdown\" width=\"300\"\u003e\n\nIn the Scheme Editor, expand **Build** and select **Pre-actions.**\n\n\u003cimg src=\"./images/build-preactions.png\" alt=\"Build Pre-actions\" width=\"250\"\u003e\n\nAdd a New Run Script Action.\n\n\u003cimg src=\"./images/new-run-script.png\" alt=\"New Run Script Action\" width=\"200\"\u003e\n\nSelect the app target for **Provide build settings from**\n\n\u003cimg src=\"./images/build-settings-target.png\" alt=\"Build Settings Target Selection\" width=\"450\"\u003e\n\nPaste the below shell script:\n\n```ruby\nif [[ \"${ACTION}\" == \"clean\" ]]; then\n  cd \"${PROJECT_DIR}\"\n  echo \"Running Fuse.rb script...\"\n  ruby \"${BUILD_DIR%Build/*}SourcePackages/checkouts/visa-ios/Sources/VisaBenefitsSDK/Fuse.rb\"\nfi\n```\n\nThis Script will be executed whenever you do **Clean Build Folder**.\n\n### **Step 1.1b - Add VisaBenefitsConfig.json**\n\nThe VisaBenefitsConfig.json contains the clientIds which helps the Assets plugin to download assets specific to your application. Create a .json file named VisaBenefitsConfig.json inside the app directory of your project. Add clientConfigs to this file. Please note to add this to the folder where the project file is present.\n\n_Sample:_\n\n```json\n{\n \"clientConfigs\": {\n\t\"your-client-id\": {}\n }\n}\n```\n\n## **1.2. Installing VisaBenefitsSDK**\n\n### Swift Package Manager\n\nAdd VisaBenefitsSDK to your project using Xcode:\n\n1. Open your project in Xcode\n2. Go to File → Add Package Dependencies\n\n3. Enter the package URL: `https://github.com/yourorg/visa-ios.git`\n\n\n4. Select the version you want to use\n\n\n5. Add the package to your target\n\n\nOr add it to your `Package.swift` file:\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/juspay/visa-ios.git\", from: \"1.0.0\")\n]\n```\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuspay%2Fvisa-ios","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuspay%2Fvisa-ios","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuspay%2Fvisa-ios/lists"}