{"id":32281096,"url":"https://github.com/sethusenthil/is-pirated","last_synced_at":"2025-10-23T00:54:21.773Z","repository":{"id":39891887,"uuid":"359060076","full_name":"SethuSenthil/is-pirated","owner":"SethuSenthil","description":"Check if your app is installed from an unauthorized source","archived":false,"fork":false,"pushed_at":"2023-12-12T00:59:09.000Z","size":76,"stargazers_count":8,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T00:53:59.083Z","etag":null,"topics":["dart","flutter","piracy","pubdev"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/is_pirated","language":"Dart","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/SethuSenthil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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},"funding":{"github":"sethusenthil","custom":["https://donate.sethusenthil.com","https://buymeacoffee.com/sethusenthil","https://cash.app/$sethusenthil"],"ko_fi":"sethusenthil","liberapay":"sethusenthil","patreon":"sethusenthill","polar":"SethuSenthil"}},"created_at":"2021-04-18T06:09:56.000Z","updated_at":"2024-04-29T17:50:45.000Z","dependencies_parsed_at":"2024-08-22T23:25:35.559Z","dependency_job_id":null,"html_url":"https://github.com/SethuSenthil/is-pirated","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SethuSenthil/is-pirated","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SethuSenthil%2Fis-pirated","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SethuSenthil%2Fis-pirated/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SethuSenthil%2Fis-pirated/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SethuSenthil%2Fis-pirated/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SethuSenthil","download_url":"https://codeload.github.com/SethuSenthil/is-pirated/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SethuSenthil%2Fis-pirated/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280540651,"owners_count":26347724,"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-22T02:00:06.515Z","response_time":63,"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":["dart","flutter","piracy","pubdev"],"created_at":"2025-10-23T00:54:20.830Z","updated_at":"2025-10-23T00:54:21.766Z","avatar_url":"https://github.com/SethuSenthil.png","language":"Dart","funding_links":["https://github.com/sponsors/sethusenthil","https://donate.sethusenthil.com","https://buymeacoffee.com/sethusenthil","https://cash.app/$sethusenthil","https://ko-fi.com/sethusenthil","https://liberapay.com/sethusenthil","https://patreon.com/sethusenthill","https://polar.sh/SethuSenthil"],"categories":[],"sub_categories":[],"readme":"# is_pirated 🏴‍☠️\n[![Pub Version](https://img.shields.io/pub/v/is_pirated)](https://pub.dev/packages/is_pirated/)\n\nCheck if your app is installed from an unauthorized source\n\nOn Android API 29 and below, uses `Context.getInstallerPackageName()`\n\nOn Android API 30 and above, uses `PackageManager.getInstallSourceInfo()`\n\nOn iOS, parses `Bundle.main.appStoreReceiptURL`\n\n\nInstalling\n----------\n\nAdd to your pubspec.yaml\n\n```yaml\ndependencies:\n  is_pirated: \u003cversion\u003e\n```\n\n\nExample\n-------\n```dart\nIsPirated isPirated = await getIsPirated();\n\nprint(isPirated.status);\n// false - (iOS) if installed from AppStore or TestFlight, (Android) if installed from PlayStore\n// true - if installed without authorization or receipt (Via ABD, APK, IPA)\n\n//full example\nIsPirated isPirated = await getIsPirated(debugOverride: true, openStoreListing: true, appStoreId: '546532666', playStoreIdentifier: 'tikmoji.sethusenthil.com');\n//debugOverride will disable installer integrity checking on debug mode (recommended setting after you finish setting up this lib!)\n//openStoreListing will auto open your appstore or playstore listing depending on the platform\n\n```\n\n## Options for .getIsPirated()\n\n| Name                    | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                  |\n| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| **debugOverride** | **bool** \u003cbr\u003eDefault set to false. Override unauthorized installation checking when on debug mode. Set this to true after configuring this library.                                                                                                                                                                                                                                                                                                                           |\n| **openStoreListing** | **bool** \u003cbr\u003eDefault set to false. Open the AppStore or PlayStore listing if isPirated.status = true. Must set appStoreId \u0026 playStoreIdentifier for this to take any effect on its respective platform.                                                                                                                                                                                                                                                                                                                          |\n| **appStoreId** | **String** \u003cbr\u003eThe AppStore App Id for your app so openStoreListing can open your store listing. You can find it in the url of your app: 'https://apps.apple.com/us/app/tikmoji/id**1546532666**' Must set openStoreListing true.                                                                                                                                                                                                                                                                                                                           |\n| **playStoreIdentifier** | **String** \u003cbr\u003eThe PlayStore App Store Identifier for your app so it can open your listing on the PlayStore. You can find this in your manifest or your PlayStore URL: https://play.google.com/store/apps/details?id=**com.sethusenthil.tikmoji**                                                                                                                                                                                                                                                                                                                           |\n| **closeApp** | **bool** \u003cbr\u003eDefault set to false. Closes and quits out of your app if isPirated.status = true. If openStoreListing is set to true, it will open your store listing before quitting. Note that getIsPirated() may not return a value if set to true because the Dart VM will likely be terminated before.                                                                                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                                           |\n## Credits\nInspired and heavely based on https://github.com/caiopo/flutter-installer-info\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsethusenthil%2Fis-pirated","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsethusenthil%2Fis-pirated","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsethusenthil%2Fis-pirated/lists"}