import Foundation
import Capacitor

/**
 * Please read the Capacitor iOS Plugin Development Guide
 * here: https://capacitorjs.com/docs/plugins/ios
 */
@objc(TestFlightDetectPlugin)
public class TestFlightDetectPlugin: CAPPlugin {
    private let implementation = TestFlightDetect()

    @objc func checkTF(_ call: CAPPluginCall) {
        call.resolve([
            "isFromTestFlight":    implementation.isFromTestFlight(),
            "isInSimulator":       implementation.isInSimulator(),
            "isFromAppStore":      implementation.isFromAppStore(),
            //"bundleConfigType":    implementation.bundleConfigType(),
        ])
    }
}
