<?php
/**
 * Plugin Name: WooCommerce InPost
 * Plugin URI: https://www.wpdesk.pl/sklep/paczkomaty-inpost-woocommerce/
 * Description: Integracja WooCommerce z InPost. Umożliwia wysyłkę za pomocą usług InPost: Paczkomaty i Kurier.
 * Version: 3.20.9
 * Author: WP Desk
 * Author URI: https://www.wpdesk.pl/
 * Text Domain: woocommerce-paczkomaty-inpost
 * Domain Path: /lang/
 * Requires at least: 5.2
 * Tested up to: 6.0
 * WC requires at least: 6.3
 * WC tested up to: 6.7
 * Requires PHP: 7.0
 *
 * Copyright 2017 WP Desk Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * @package PaczkomatyInpost
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/* THIS VARIABLE CAN BE CHANGED AUTOMATICALLY */
$plugin_version = '3.20.9';

$plugin_name        = 'WooCommerce InPost';
$product_id         = 'WooCommerce Paczkomaty InPost';
$plugin_class_name  = 'WPDesk_Paczkomaty_Plugin';
$plugin_text_domain = 'woocommerce-paczkomaty-inpost';
$plugin_file        = __FILE__;
$plugin_dir         = dirname( __FILE__ );
$plugin_shops       = [
	'default' => 'https://www.wpdesk.pl/',
];

define( $plugin_class_name, $plugin_version );
define( 'WOOCOMMERCE_PACZKOMATY_INPOST_VERSION', $plugin_version );

$requirements = [
	'php'     => '5.6',
	'wp'      => '5.0',
	'plugins' => [
		[
			'name'      => 'woocommerce/woocommerce.php',
			'nice_name' => 'WooCommerce',
		],
		[
			'name'      => 'flexible-shipping/flexible-shipping.php',
			'nice_name' => 'Flexible Shipping',
		],
	],
];

require_once 'inc/wpdesk-woo27-functions.php';
register_activation_hook( __FILE__, 'paczkomaty_shipping_method_plugin_activate' );

require __DIR__ . '/vendor_prefixed/wpdesk/wp-plugin-flow/src/plugin-init-php52.php';
