Skip to content

Commit f01354a

Browse files
authored
feat: maintenance update, basic object storage support, minor cleanup (#262)
1 parent aa2c58b commit f01354a

File tree

69 files changed

+7597
-6874
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+7597
-6874
lines changed

.github/workflows/lint.yml

+27-23
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
name: php-lint
4242
strategy:
4343
matrix:
44-
php-versions: ["8.0", "8.1"]
44+
php-versions: ["8.1", "8.2"]
4545

4646
steps:
4747
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
@@ -60,7 +60,7 @@ jobs:
6060
name: php-cs
6161
strategy:
6262
matrix:
63-
php-versions: ["8.0", "8.1"]
63+
php-versions: ["8.1", "8.2"]
6464

6565
steps:
6666
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
@@ -81,8 +81,8 @@ jobs:
8181
runs-on: ubuntu-22.04
8282
strategy:
8383
matrix:
84-
php-versions: ["7.4", "8.0", "8.1"]
85-
server-versions: ['25']
84+
php-versions: ["8.1", "8.2"]
85+
server-versions: [ '30.0.0' ]
8686
name: php-psalm-analysis
8787

8888
steps:
@@ -128,25 +128,29 @@ jobs:
128128
working-directory: apps/${{ env.APP_NAME }}
129129
run: composer run psalm
130130

131-
# php-security-analysis:
132-
# runs-on: ubuntu-latest
133-
# name: security analysis
134-
# steps:
135-
# - uses: actions/checkout@v3
136-
# with:
137-
# submodules: recursive
138-
139-
# - name: Psalm
140-
# uses: docker://vimeo/psalm-github-actions:4.9.3
141-
# with:
142-
# security_analysis: true
143-
# composer_ignore_platform_reqs: false
144-
# report_file: results.sarif
145-
146-
# - name: Upload Security Analysis results to GitHub
147-
# uses: github/codeql-action/upload-sarif@v2
148-
# with:
149-
# sarif_file: results.sarif
131+
php-security-analysis:
132+
runs-on: ubuntu-22.04
133+
permissions:
134+
contents: read
135+
actions: read
136+
security-events: write
137+
name: security analysis
138+
steps:
139+
- uses: actions/checkout@v3
140+
with:
141+
submodules: recursive
142+
143+
- name: Psalm
144+
uses: docker://vimeo/psalm-github-actions:4.30.0
145+
with:
146+
security_analysis: true
147+
composer_ignore_platform_reqs: false
148+
report_file: results.sarif
149+
150+
- name: Upload Security Analysis results to GitHub
151+
uses: github/codeql-action/upload-sarif@v2
152+
with:
153+
sarif_file: results.sarif
150154

151155
js-eslint:
152156
runs-on: ubuntu-22.04

CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [0.4.0 - 2024-10-21]
6+
7+
Maintenance update. Update NC versions to support NC30+ only.
8+
9+
### Added
10+
11+
- Added basic ObjectStorage support (/tmp folder used to execute binary scripts)
12+
- Added automatic scroll to the next duplicate group opened
13+
14+
### Changed
15+
16+
- Update UI packages to be compatible with NC30+
17+
518
## [0.3.9 - 2024-06-23]
619

720
Maintenance update.

appinfo/info.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ This app allows to find duplicate or similar 📸📹 photos and videos
2020
Quick start guide and further information in our [Wiki](https://github.com/cloud-py-api/mediadc/wiki).
2121
]]>
2222
</description>
23-
<version>0.3.9</version>
23+
<version>0.4.0</version>
2424
<licence>agpl</licence>
2525
<author mail="[email protected]" homepage="https://github.com/andrey18106">Andrey Borysenko</author>
2626
<author mail="[email protected]" homepage="https://github.com/bigcat88">Alexander Piskun</author>
@@ -44,7 +44,7 @@ Quick start guide and further information in our [Wiki](https://github.com/cloud
4444
<screenshot>https://raw.githubusercontent.com/cloud-py-api/mediadc/main/screenshots/mediadc_filesplugin.png</screenshot>
4545
<dependencies>
4646
<php min-version="7.4" min-int-size="64" />
47-
<nextcloud min-version="28" max-version="29" />
47+
<nextcloud min-version="30" max-version="31" />
4848
</dependencies>
4949
<background-jobs>
5050
<job>OCA\MediaDC\BackgroundJob\CollectorCleanupJob</job>

composer.json

+14-4
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
"require-dev": {
1919
"nextcloud/ocp": "dev-master",
2020
"roave/security-advisories": "dev-master",
21-
"psalm/phar": "^4.30.0",
21+
"psalm/phar": "^5.15",
2222
"phpunit/phpunit": "^9.5",
23-
"nextcloud/coding-standard": "^1.0",
24-
"friendsofphp/php-cs-fixer": "^3.13"
23+
"nextcloud/coding-standard": "^1.1",
24+
"friendsofphp/php-cs-fixer": "^3.16"
2525
},
2626
"scripts": {
2727
"lint": "find . -name \\*.php -not -path './vendor/*' -print0 | xargs -0 -n1 php -l",
@@ -41,7 +41,17 @@
4141
"optimize-autoloader": true,
4242
"classmap-authoritative": true,
4343
"platform": {
44-
"php": "7.4"
44+
"php": "8.1"
45+
}
46+
},
47+
"autoload": {
48+
"psr-4": {
49+
"OCA\\MediaDC\\": "lib/"
50+
}
51+
},
52+
"autoload-dev": {
53+
"psr-4": {
54+
"OCP\\": "vendor/nextcloud/ocp/OCP"
4555
}
4656
}
4757
}

0 commit comments

Comments
 (0)