{"id":28345074,"url":"https://github.com/1998code/antifraudkit-for-swift","last_synced_at":"2025-07-04T08:04:24.894Z","repository":{"id":65108530,"uuid":"582037462","full_name":"1998code/AntiFraudKit-for-Swift","owner":"1998code","description":"A Powerful Light-Weight Swift Toolkit to prevent Fraud Purchase (Side-load) and Jailbreak. Designed with SwiftUI.","archived":false,"fork":false,"pushed_at":"2023-05-21T17:32:06.000Z","size":316,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-27T11:09:35.868Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/1998code.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"1998code"}},"created_at":"2022-12-25T12:07:54.000Z","updated_at":"2025-04-20T19:29:55.000Z","dependencies_parsed_at":"2023-02-14T16:01:51.836Z","dependency_job_id":null,"html_url":"https://github.com/1998code/AntiFraudKit-for-Swift","commit_stats":null,"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/1998code/AntiFraudKit-for-Swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FAntiFraudKit-for-Swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FAntiFraudKit-for-Swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FAntiFraudKit-for-Swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FAntiFraudKit-for-Swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/1998code","download_url":"https://codeload.github.com/1998code/AntiFraudKit-for-Swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/1998code%2FAntiFraudKit-for-Swift/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261129338,"owners_count":23113811,"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":"2025-05-27T11:09:12.517Z","updated_at":"2025-07-04T08:04:24.871Z","avatar_url":"https://github.com/1998code.png","language":"Swift","funding_links":["https://github.com/sponsors/1998code"],"categories":[],"sub_categories":[],"readme":"# AntiFraudKit\n[![Swift](https://github.com/1998code/AntiFraudKit-for-Swift/actions/workflows/swift.yml/badge.svg?branch=main)](https://github.com/1998code/AntiFraudKit-for-Swift/actions/workflows/swift.yml)\n### Accelerated by Apple SwiftUI \u0026 StoreKit\n\n\u003cimg width=\"720px\" src=\"https://user-images.githubusercontent.com/54872601/209469175-22a5fa36-caa7-4bd3-9c30-a16deb2d7a5b.png\" /\u003e\n\n## Aims\nProvide an easy integration and UI for Apple Developers to protect the copyright for their app.\n\n## Features\n- Check App Store Purchase Receipt\n- Temporary Skip Checking\n- Serverless Design\n- Anti-Jailbreak\n\n## Version\n![GitHub release (latest by date)](https://img.shields.io/github/v/release/1998code/AntiFraudKit-for-Swift?color=g\u0026label=STABLE\u0026style=for-the-badge)\n![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/1998code/AntiFraudKit-for-Swift?color=green\u0026include_prereleases\u0026label=BETA\u0026style=for-the-badge)\n\n\u003cimg width=\"200px\" src=\"https://user-images.githubusercontent.com/54872601/209471726-7440ae6d-05b7-44f6-a4a8-606ed96909b1.png\" /\u003e \u003cimg width=\"200px\" src=\"https://user-images.githubusercontent.com/54872601/173193069-2eb486b0-1347-4448-ac2b-235b8f2f1bb0.png\" /\u003e\n\n## Environment\n### Xcode Local\nTested on | Latest | Compatible\n--------- | ------ | ----------\niOS       | 16     | 16\niPadOS    | 16     | 16\nmacOS     | 13     | 13\n\n## Get Started\n### Guide\nComing Soon 🤗\n\n### Basic Setup\nAdd ```https://github.com/1998code/AntiFraudKit-for-Swift``` to package and switch to ```main``` branch to get the latest development update.\n\u003cimg width=\"1194\" alt=\"CleanShot 2022-12-26 at 11 21 07@2x\" src=\"https://user-images.githubusercontent.com/54872601/209495745-7b6a9267-9ac9-4bc0-a49e-7f200cd8a415.png\"\u003e\n\n### Major Usage\n1. Import the framework\n```swift\nimport AntiFraudKit\n```\n\n2. Add States before body or any some View.\n\nState | Type | Default | Remark\n----- | ---- | ------- | ------\nappStoreURL | String | \"https://apps.apple.com/app/betterappicons/id1532627187\" | Suggest user to download via App Store\npurchasedVersion | String | \"\" | Return Purchased Version\npurchasedDate | String | \"\" | Return Purchased Version\nmaxSkip | Int | 3 | Set Max Skip Times in case your user may not be able to verify at that moment\nallowJailbreak | Bool | false | Prevent user to tweak your app/game in a JB environment\n\nSamples:\n```swift\n@State var appStoreURL: String = \"https://apps.apple.com/app/betterappicons/id1532627187\"\n@State var purchasedVersion: String = \"\"\n@State var purchasedDate: String = \"\"\n@State var maxSkip: Int = 3\n@State var allowJailbreak: Bool = false\n```\n\n3. Then, paste this code inside body or any some View.\n```swift\nif #available(iOS 16, macOS 13, *) {\n  ATFraud(appStoreURL: $appStoreURL, purchasedVersion: $purchasedVersion, purchasedDate: $purchasedDate, maxSkip: $maxSkip, allowJailbreak: $allowJailbreak)\n}\n```\nInstead of using seperate states, inline binding works too.\n\n4. (Optional) If you wish to detect Jailbreak Status, be sure to add this key to ```Info.plist```\n\u003cimg width=\"569\" alt=\"CleanShot 2022-12-25 at 22 45 17@2x\" src=\"https://user-images.githubusercontent.com/54872601/209472464-0c100c59-a78d-4319-aae5-4440c6747ff6.png\"\u003e\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\"\u003e\n\u003cplist version=\"1.0\"\u003e\n\u003carray\u003e\n\t\u003cstring\u003ecydia\u003c/string\u003e\n\u003c/array\u003e\n\u003c/plist\u003e\n```\n\n## Possible Conflict\nIf you use other sheets, e.g., SwiftNewKit, be sure to hide it before AntiFraudKit runs.\n```swift\nif (purchasedDate || purchasedVersion) {\n  SwiftNEW(...\n}\n```\n* AntiFraudKit's show priority MUST always be higher than any other sheet!\n\n## Developer Note\n- Please report bugs in Issues section.\n- If you want to discuss future roadmap or contribution, please find on Discussions.\n\n## Preview\nLight | Dark\n------------- | ------------\n![IMG_6A0BAFDBBAB2-2](https://user-images.githubusercontent.com/54872601/209469243-618b2135-447f-422e-b676-db7b5c2e6276.jpeg) | ![IMG_6A0BAFDBBAB2-1](https://user-images.githubusercontent.com/54872601/209469241-45522b8e-5dc5-4903-8080-9261f00f56dc.jpeg)\n\nAsk for Signin | Login Error | Skip Alert on macOS\n------------- | ------------ | -------------------\n\u003cimg width=\"316\" alt=\"CleanShot 2022-12-25 at 21 46 46@2x\" src=\"https://user-images.githubusercontent.com/54872601/209470374-f9f51fe3-21ab-4041-80af-522e76d78283.png\"\u003e | \u003cimg width=\"304\" alt=\"CleanShot 2022-12-25 at 21 46 58@2x\" src=\"https://user-images.githubusercontent.com/54872601/209470384-16038742-d7f1-485d-bf31-891fcac51cc8.png\"\u003e | \u003cimg width=\"372\" alt=\"CleanShot 2022-12-25 at 22 11 39@2x\" src=\"https://user-images.githubusercontent.com/54872601/209471284-6be2b53a-b4fe-4fe8-9618-ac9222c514a4.png\"\u003e\n\n## Demo\nPath: `./Demo` (Xcode Project in SwiftUI)\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1998code%2Fantifraudkit-for-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F1998code%2Fantifraudkit-for-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F1998code%2Fantifraudkit-for-swift/lists"}