<?php
/**
 * Plugin Name: CaptureRelay
 * Plugin URI: https://www.capturerelay.app/
 * Description: Securely delivers images from approved mobile devices. Configure CaptureRelay under Tools > CaptureRelay > Settings.
 * Version: 1.5.6
 * Requires at least: 6.6
 * Requires PHP: 8.1
 * Author: Skyrocket Radio
 * Author URI: https://www.capturerelay.app/
 * Update URI: https://www.capturerelay.app/wordpress-plugin/
 * Text Domain: capture-relay
 * License: Proprietary
 */

// Yahnis Elsts Plugin Update Checker v5.7 (MIT) is vendored under vendor/.

defined('ABSPATH') || exit;

define('CAPTURE_RELAY_VERSION', '1.5.6');
define('CAPTURE_RELAY_FILE', __FILE__);
define('CAPTURE_RELAY_DIR', plugin_dir_path(__FILE__));
define('CAPTURE_RELAY_URL', plugin_dir_url(__FILE__));

require_once CAPTURE_RELAY_DIR . 'src/Autoloader.php';
\CaptureRelay\Autoloader::register();

register_activation_hook(__FILE__, [\CaptureRelay\Activator::class, 'activate']);
register_deactivation_hook(__FILE__, [\CaptureRelay\Activator::class, 'deactivate']);

add_action('plugins_loaded', static function (): void {
    \CaptureRelay\Plugin::instance()->boot();
});
