{"id":32312437,"url":"https://github.com/suvov/vsstorekit","last_synced_at":"2025-10-23T09:55:54.906Z","repository":{"id":56925757,"uuid":"96094927","full_name":"suvov/VSStoreKit","owner":"suvov","description":"Simple iOS StoreKit library","archived":false,"fork":false,"pushed_at":"2022-08-19T04:02:10.000Z","size":479,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-23T09:55:42.310Z","etag":null,"topics":["in-app","in-app-purchase","ios","storekit","swift"],"latest_commit_sha":null,"homepage":"http://suvov.github.io/VSStoreKit","language":"Swift","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/suvov.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":"2017-07-03T09:36:12.000Z","updated_at":"2022-08-19T04:05:20.000Z","dependencies_parsed_at":"2022-08-21T05:20:53.622Z","dependency_job_id":null,"html_url":"https://github.com/suvov/VSStoreKit","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/suvov/VSStoreKit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suvov%2FVSStoreKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suvov%2FVSStoreKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suvov%2FVSStoreKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suvov%2FVSStoreKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suvov","download_url":"https://codeload.github.com/suvov/VSStoreKit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suvov%2FVSStoreKit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280598939,"owners_count":26357977,"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-10-23T02:00:06.710Z","response_time":142,"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":["in-app","in-app-purchase","ios","storekit","swift"],"created_at":"2025-10-23T09:55:53.397Z","updated_at":"2025-10-23T09:55:54.901Z","avatar_url":"https://github.com/suvov.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VSStoreKit\n\n[![Build Status](https://travis-ci.org/suvov/VSStoreKit.svg?branch=master)](https://travis-ci.org/suvov/VSStoreKit) [![codecov.io](https://codecov.io/gh/suvov/VSStoreKit/branch/master/graphs/badge.svg)](https://codecov.io/gh/suvov/VSStoreKit/branch/master) [![Version](https://img.shields.io/cocoapods/v/VSStoreKit.svg?style=flat)](http://cocoapods.org/pods/VSStoreKit) [![License](https://img.shields.io/cocoapods/l/VSStoreKit.svg?style=flat)](http://cocoapods.org/pods/VSStoreKit) [![Platform](https://img.shields.io/cocoapods/p/VSStoreKit.svg?style=flat)](http://cocoapods.org/pods/VSStoreKit)\n\n![Icon][img0]\n\nVSStoreKit is an easy to use library that you can use to make in-app purchases in your iOS app. \n\n## Requirements\n\n* Swift 5.0\n* Xcode 10\n* iOS 8.0+\n\n## Installation\n\n#### [CocoaPods](http://cocoapods.org) (recommended)\n\n````ruby\nuse_frameworks!\n\npod 'VSStoreKit'\n\n````\n\n## Documentation\n\nRead the [docs][docsLink]. Generated with [jazzy](https://github.com/realm/jazzy). Hosted by [GitHub Pages](https://pages.github.com).\n\n#### Generate\n\n````bash\n$ ./build_docs.sh\n````\n\n#### Preview\n\n````bash\n$ open index.html -a Safari\n````\n\n## Getting Started\n\n````swift\nimport VSStoreKit\n````\n## Design \n\nThis library has five primary components with the following responsibilities:\n1. `StoreAccess` — requesting products from the Store, providing product details such as price and purchasing products\n2.  `PurchasedProductsProtocol` — instance conforming to this protocol stores completed purchases\n3.  `LocalProductsDataSource` — instance conforming to this protocol provides information about products for sale in the app\n4.  `ProductsDataSource` — also provides information about products for sale, but combines local and received from the Store information about products\n5.  `StoreAccessObserver` — observing StoreAccess state change and notifying client via callback methods\n\n## Example\n\n````swift\n// 1. Create an instance conforming to PurchasedProductsProtocol \nlet puchasedProducts: PurchasedProductsProtocol = PurchasedProducts()\n\n// 2. Provide StoreAccess purchaseCompletionHandler so it can mark products as purchased\nlet storeAccess = StoreAccess.shared\nstoreAccess.purchaseCompletionHandler = { purchasedProductIdentifier in\n    puchasedProducts.markProductAsPurchased(purchasedProductIdentifier)\n}\n\n// 3. Create an instance conforming to LocalProductsDataSource with your products (in-app purchases)\nlet localProducts: LocalProductsDataSource = LocalProducts()\n\n// 4. Request products from the store\nstoreAccess.requestProductsWithIdentifiers(localProducts.productIdentifiers)\n\n// 5. Instantiate ProductsDataSource object that you will use to populate your UITableView, UICollectionView or whatever with products (in-app purchases)\nlet productsDataSource = ProductsDataSource(localProducts: localProducts, storeProducts: storeAccess)\n\n// 6. Buy product\nlet productIdentifier = productsDataSource.identifierForProductAtIndex(index)\nstoreAccess.purchaseProductWithIdentifier(productIdentifier)\n\n// 7. Observe StoreAccess state change with help of StoreAccessObserver by providing it optional handlers for the states you are interested in\nlet storeAccessObserver = StoreAccessObserver()\nstoreAccessObserver.receivedProductsStateHandler = {\n    // reload your products presentation\n}\nstoreAccessObserver.purchasedStateHandler = {\n    // reload your products presentation\n}\n\n````\n\n## Author\n\nVladimir Shutyuk, vladimir.shutyuk@gmail.com\n\n## License\n\nVSStoreKit is available under the MIT license. See the LICENSE file for more info.\n\n[img0]:https://raw.githubusercontent.com/suvov/VSStoreKit/master/Icon0.png\n[docsLink]:https://suvov.github.io/VSStoreKit\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuvov%2Fvsstorekit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuvov%2Fvsstorekit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuvov%2Fvsstorekit/lists"}