Skip to content

Commit

Permalink
Add update check code
Browse files Browse the repository at this point in the history
  • Loading branch information
folbert committed Feb 18, 2020
1 parent 656a121 commit 637721c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
},
"require": {
"php": ">=7.1",
"folbert/acf-fewbricks-hidden": "1.2"
"folbert/acf-fewbricks-hidden": "1.2",
"yahnis-elsts/plugin-update-checker": "4.9"
},
"require-dev": {
"phpunit/phpunit": "7.5.18"
Expand Down
14 changes: 13 additions & 1 deletion fewbricks.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Plugin URI: https://github.com/folbert/fewbricks
Description: A module extension to Advanced Custom Fields
Author: Björn Folbert
Version: 2.0-alpha1
Version: 2.0-beta1
Author URI: https://folbert.com
License: GPLv3
*/
Expand Down Expand Up @@ -40,6 +40,18 @@

}

if(class_exists('Puc_v4_Factory')) {

$update_checker = Puc_v4_Factory::buildUpdateChecker(
'https://github.com/folbert/fewbricks',
__FILE__,
'fewbricks'
);

//dump($update_checker);

}

add_action('acf/init', function () {
\Fewbricks\Fewbricks::run();
});
9 changes: 9 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
=== Fewbricks ===
Contributors: folbert
Tags: acf
Requires at least: 4.7.0
Tested up to: 5.8.7
Stable tag: 2.0-alpha1
Requires PHP: 7.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

0 comments on commit 637721c

Please sign in to comment.