AntiFraudKit
Accelerated by Apple SwiftUI
Aims
Provide an easy integration and UI for Apple Developers to protect the copyright for their app.
Features
- Check App Store Purchase Receipt
- Temporary Skip Checking
- Serverless Design
- Anti-Jailbreak
Version
Environment
Xcode Local
Tested on | Latest | Compatible |
---|---|---|
iOS | 16 | 16 |
macOS | 13 | 13 |
Get Started
Guide
Coming Soon ?
Basic Setup
Coming Soon ?
Major Usage
- Import the framework
import AntiFraudKit
- Add States before body or any some View.
Samples:
@State var appStoreURL: String = "https://apps.apple.com/app/betterappicons/id1532627187" // Suggest user to download via App Store
@State var purchasedVersion: String = "" // Return Purchased Version
@State var purchasedDate: String = "" // Return Purchased Date
@State var maxSkip: Int = 3 // Set Max Skip Times in case your user may not be able to verify at that moment
@State var allowJailbreak: Bool = false // Prevent user to tweak your app/game in a JB environment
- Then, paste this code inside body or any some View.
if #available(iOS 16, macOS 13, *) {
ATFraud(appStoreURL: $appStoreURL, purchasedVersion: $purchasedVersion, purchasedDate: $purchasedDate, maxSkip: $maxSkip, allowJailbreak: $allowJailbreak)
}
Instead of using seperate states, inline binding works too.
- (Optional) If you wish to detect Jailbreak Status, be sure to add this key to
Info.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<string>cydia</string>
</array>
</plist>
Developer Note
- Please report bugs in Issues section.
- If you want to discuss future roadmap or contribution, please find on Discussions.
Preview
Light | Dark |
---|---|
Ask for Signin | Login Error | Skip Alert on macOS |
---|---|---|
Demo
Path: ./Demo
(Xcode Project in SwiftUI)
License
MIT