Skip to content

Commit

Permalink
feat: add support for shopware 6.6
Browse files Browse the repository at this point in the history
  • Loading branch information
tinect committed Apr 10, 2024
1 parent bb85956 commit aaf0fca
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pack-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ jobs:
uses: FriendsOfShopware/actions/.github/workflows/github.yml@main
with:
extensionName: TinectMatomo
shopwareVersion: 6.5.0
shopwareVersion: 6.6.0
secrets:
ghToken: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tinect-matomo.js
storefront/dist/*
10 changes: 2 additions & 8 deletions .shopware-extension.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
build:
zip:
composer:
enabled: false
assets:
enabled: true
enable_es_build_for_admin: true
enable_es_build_for_storefront: true
pack:
excludes:
paths:
- .gitignore
enable_es_build_for_admin: false
enable_es_build_for_storefront: false
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tinect/matomo",
"version": "3.0.0",
"version": "4.0.0",
"description": "Matomo plugin for shopware 6",
"type": "shopware-platform-plugin",
"license": "MIT",
Expand All @@ -10,7 +10,7 @@
}
},
"require": {
"shopware/core": "~6.5.0"
"shopware/core": "~6.6.0"
},
"conflict": {
"jinya/matomo-shopware-plugin": "*"
Expand Down
10 changes: 1 addition & 9 deletions src/Resources/app/storefront/src/main.js
Original file line number Diff line number Diff line change
@@ -1,9 +1 @@
import MatomoAnalyticsPlugin from "./plugin/MatomoAnalyticsPlugin";

// Necessary for the webpack hot module reloading server
if (module.hot) {
module.hot.accept();
}

window.PluginManager.register('MatomoAnalytics', MatomoAnalyticsPlugin);

window.PluginManager.register('MatomoAnalytics', () => import('./plugin/MatomoAnalyticsPlugin'));
2 changes: 1 addition & 1 deletion src/Resources/config/routes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
xsi:schemaLocation="http://symfony.com/schema/routing
https://symfony.com/schema/routing/routing-1.0.xsd">

<import resource="../../Storefront/Controller/**/*Controller.php" type="annotation" />
<import resource="../../Storefront/Controller/**/*Controller.php" type="attribute" />
</routes>

0 comments on commit aaf0fca

Please sign in to comment.