package space.charliecat.cap.plugins.tfdetect;

import com.getcapacitor.JSObject;
import com.getcapacitor.Plugin;
import com.getcapacitor.PluginCall;
import com.getcapacitor.PluginMethod;
import com.getcapacitor.annotation.CapacitorPlugin;

@CapacitorPlugin(name = "TestFlightDetect")
public class TestFlightDetectPlugin extends Plugin {

    private TestFlightDetect implementation = new TestFlightDetect();

    @PluginMethod
    public void checkTF(PluginCall call) {
        JSObject ret = new JSObject();
        ret.put("isFromTestFlight", false);
        ret.put("isFromAppsStore", false);
        ret.put("isInSimulator", false); // "isFromTestFlight": boolean, "isInSimulator": boolean, "isFromAppStore": boolean
        call.resolve(ret);
    }
}
