Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This Flutter plugin is useful to find the origin of currently installed apk/ipa.
**iOS**: Detects whether app is installed from TestFlight Beta or App Store build

# Usage
You can use the StoreChecker to find the origin of apk/ipa. This works both on iOS and Android.
You can use the StoreChecker to find the origin of apk/ipa. This works both on iOS, macOS and Android.
Add this to your package's pubspec.yaml file:
dependencies:
store_checker: ^1.8.0
Expand Down Expand Up @@ -71,6 +71,10 @@ switch (installationSource) {
// Installed from app store
source = "App Store";
break;
case Source.IS_IN_REVIEW:
// Installed from a store reviewer
source = "In Review";
break;
case Source.IS_INSTALLED_FROM_TEST_FLIGHT:
// Installed from Test Flight
source = "Test Flight";
Expand All @@ -82,6 +86,8 @@ switch (installationSource) {
}
```

`IS_IN_REVIEW` currently only work on iOS and macOS. For macOS you need to add the `com.apple.security.network.client` capability in order to check if the app is in review.

## Issues and feedback

Please file [issues](https://github.com/ravitejaavv/store_checker/issues) to send feedback or report a bug. Thank you!
4 changes: 4 additions & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ class _MyAppState extends State<MyApp> {
// Installed from iOS app store
source = "App Store";
break;
case Source.IS_IN_REVIEW:
// Installed from a store reviewer
source = "In Review";
break;
case Source.IS_INSTALLED_FROM_TEST_FLIGHT:
// Installed from Test Flight
source = "Test Flight";
Expand Down
2 changes: 2 additions & 0 deletions example/macos/Flutter/GeneratedPluginRegistrant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
import FlutterMacOS
import Foundation

import package_info_plus
import store_checker

func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
FPPPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FPPPackageInfoPlusPlugin"))
StoreCheckerPlugin.register(with: registry.registrar(forPlugin: "StoreCheckerPlugin"))
}
8 changes: 7 additions & 1 deletion example/macos/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,22 +1,28 @@
PODS:
- FlutterMacOS (1.0.0)
- package_info_plus (0.0.1):
- FlutterMacOS
- store_checker (0.0.1):
- FlutterMacOS

DEPENDENCIES:
- FlutterMacOS (from `Flutter/ephemeral`)
- package_info_plus (from `Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos`)
- store_checker (from `Flutter/ephemeral/.symlinks/plugins/store_checker/macos`)

EXTERNAL SOURCES:
FlutterMacOS:
:path: Flutter/ephemeral
package_info_plus:
:path: Flutter/ephemeral/.symlinks/plugins/package_info_plus/macos
store_checker:
:path: Flutter/ephemeral/.symlinks/plugins/store_checker/macos

SPEC CHECKSUMS:
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24
package_info_plus: 12f1c5c2cfe8727ca46cbd0b26677728972d9a5b
store_checker: 387169de0dffe57b6370d54cc027e9f95051b57f

PODFILE CHECKSUM: 236401fc2c932af29a9fcf0e97baeeb2d750d367

COCOAPODS: 1.15.2
COCOAPODS: 1.16.2
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
enableGPUValidationMode = "1"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
Expand Down
6 changes: 5 additions & 1 deletion example/macos/Runner/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import Cocoa
import FlutterMacOS

@NSApplicationMain
@main
class AppDelegate: FlutterAppDelegate {
override func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}

override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
return true
}
}
Loading