Provide an easy integration and UI for Apple Developers to protect the copyright for their app.
Tested on | Latest | Compatible |
---|---|---|
iOS | 16 | 16 |
iPadOS | 16 | 16 |
macOS | 13 | 13 |
Coming Soon 🤗
Add https://github.com/1998code/AntiFraudKit-for-Swift
to package and switch to main
branch to get the latest development update.
import AntiFraudKit
State | Type | Default | Remark |
---|---|---|---|
appStoreURL | String | "https://apps.apple.com/app/betterappicons/id1532627187" | Suggest user to download via App Store |
purchasedVersion | String | "" | Return Purchased Version |
purchasedDate | String | "" | Return Purchased Version |
maxSkip | Int | 3 | Set Max Skip Times in case your user may not be able to verify at that moment |
allowJailbreak | Bool | false | Prevent user to tweak your app/game in a JB environment |
Samples:
@State var appStoreURL: String = "https://apps.apple.com/app/betterappicons/id1532627187"
@State var purchasedVersion: String = ""
@State var purchasedDate: String = ""
@State var maxSkip: Int = 3
@State var allowJailbreak: Bool = false
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.
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>
If you use other sheets, e.g., SwiftNewKit, be sure to hide it before AntiFraudKit runs.
if (purchasedDate || purchasedVersion) {
SwiftNEW(...
}
Light | Dark |
---|---|
![]() |
![]() |
Ask for Signin | Login Error | Skip Alert on macOS |
---|---|---|
![]() |
![]() |
![]() |
Path: ./Demo
(Xcode Project in SwiftUI)
MIT
link |
Stars: 3 |
Last commit: 2 weeks ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics