Skip to content

Commit

Permalink
Merge branch 'release/1.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
bdmehedi committed Dec 26, 2023
2 parents fd06ae6 + c9bd3cb commit 0943a45
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 299 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/wpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
name: Run PHPCS inspection
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -17,10 +17,10 @@ jobs:

- name: Get Composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Setup cache
uses: pat-s/always-upload-cache@v1.1.4
uses: pat-s/always-upload-cache@v3.0.11
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
Expand All @@ -32,7 +32,8 @@ jobs:
- id: changes
run: |
URL="https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files"
FILES=$(curl -s -X GET -G $URL | jq -r '.[] | .filename' | xargs)
echo "::set-output name=files::$FILES"
FILES=$(curl -s -X GET -G $URL | jq -r '.[] | select (.status!="removed") | .filename | select ( endswith(".php") )' | xargs)
echo "files=$FILES" >> $GITHUB_OUTPUT
- name: Detect coding standard violations
run: vendor/bin/phpcs ${{ steps.changes.outputs.files }} -q --report=checkstyle | cs2pr --graceful-warnings
9 changes: 5 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# AppSero Client
### Version 1.2.5
### Version 1.3.0

- [Installation](#installation)
- [Insights](#insights)
Expand Down Expand Up @@ -78,9 +78,6 @@ function appsero_init_tracker_appsero_test() {
// Active insights
$client->insights()->init();

// Active automatic updater
$client->updater();

// Active license page and checker
$args = array(
'type' => 'options',
Expand All @@ -99,6 +96,10 @@ Make sure you call this function directly, never use any action hook to call thi
> For plugins example code that needs to be used on your main plugin file.
> For themes example code that needs to be used on your themes `functions.php` file.
## Using the Updater (to manage Pro plugin updates)
> By default the Appsero client doesn't include Updater functionalities in this client. If you want to manage updates for your premium plugins, please include [the Updater](https://github.com/Appsero/updater) separately inside your product

## More Usage

```php
Expand Down
29 changes: 1 addition & 28 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Client {
*
* @var string
*/
public $version = '1.2.5';
public $version = '1.3.0';

/**
* Hash identifier of the plugin
Expand Down Expand Up @@ -85,13 +85,6 @@ class Client {
*/
private $insights;

/**
* The Object of Updater Class
*
* @var object
*/
private $updater;

/**
* The Object of License Class
*
Expand Down Expand Up @@ -134,26 +127,6 @@ public function insights() {
return $this->insights;
}

/**
* Initialize plugin/theme updater
*
* @return Appsero\Updater
*/
public function updater() {
if ( ! class_exists( __NAMESPACE__ . '\Updater' ) ) {
require_once __DIR__ . '/Updater.php';
}

// if already instantiated, return the cached one
if ( $this->updater ) {
return $this->updater;
}

$this->updater = new Updater( $this );

return $this->updater;
}

/**
* Initialize license checker
*
Expand Down
262 changes: 0 additions & 262 deletions src/Updater.php

This file was deleted.

0 comments on commit 0943a45

Please sign in to comment.