Skip to content

Commit 7a15e92

Browse files
committed
Merge branch 'release/1.3.0'
2 parents 483ab20 + 8a07458 commit 7a15e92

File tree

14 files changed

+219
-42
lines changed

14 files changed

+219
-42
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
- uses: actions/checkout@v3
1111
- uses: actions/setup-java@v3
1212
with:
13-
distribution: 'temurin'
14-
java-version: 19
13+
distribution: 'zulu'
14+
java-version: 20
1515
cache: 'maven'
1616
- name: Ensure to use tagged version
1717
if: startsWith(github.ref, 'refs/tags/')

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ jobs:
2020
fetch-depth: 2
2121
- uses: actions/setup-java@v3
2222
with:
23-
distribution: 'temurin'
24-
java-version: 19
23+
distribution: 'zulu'
24+
java-version: 20
2525
cache: 'maven'
2626
- name: Initialize CodeQL
2727
uses: github/codeql-action/init@v2

.github/workflows/publish-central.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
ref: "refs/tags/${{ github.event.inputs.tag }}"
1616
- uses: actions/setup-java@v3
1717
with:
18-
distribution: 'temurin'
19-
java-version: 19
18+
distribution: 'zulu'
19+
java-version: 20
2020
cache: 'maven'
2121
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
2222
server-username: MAVEN_USERNAME # env variable for username in deploy

.github/workflows/publish-github.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
- uses: actions/checkout@v3
1111
- uses: actions/setup-java@v3
1212
with:
13-
distribution: 'temurin'
14-
java-version: 19
13+
distribution: 'zulu'
14+
java-version: 20
1515
cache: 'maven'
1616
gpg-private-key: ${{ secrets.RELEASES_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
1717
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
# integrations-linux
2-
Linux-specific implemenations of the integrations-api
2+
Linux-specific implemenations of the [integrations-api](https://github.com/cryptomator/integrations-api).
3+
4+
# Config
5+
6+
This project uses the following JVM properties:
7+
* `cryptomator.integrationsLinux.trayIconsDir` - specifies the directory from which svg images for the tray icon are loaded
8+

pom.xml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>org.cryptomator</groupId>
77
<artifactId>integrations-linux</artifactId>
8-
<version>1.2.1</version>
8+
<version>1.3.0</version>
99

1010
<name>integrations-linux</name>
1111
<description>Provides optional Linux services used by Cryptomator</description>
@@ -36,21 +36,23 @@
3636

3737
<properties>
3838
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
39-
<project.jdk.version>19</project.jdk.version>
39+
<project.jdk.version>20</project.jdk.version>
4040

4141
<!-- runtime dependencies -->
4242

43-
<api.version>1.2.0</api.version>
43+
<api.version>1.3.0</api.version>
4444
<secret-service.version>1.8.1-jdk17</secret-service.version>
45-
<kdewallet.version>1.2.8</kdewallet.version>
46-
<guava.version>31.1-jre</guava.version>
45+
<kdewallet.version>1.3.2</kdewallet.version>
46+
<appindicator.version>1.3.4</appindicator.version>
47+
<guava.version>32.0.0-jre</guava.version>
4748
<slf4j.version>1.7.36</slf4j.version>
49+
<commons-lang3.version>3.12.0</commons-lang3.version>
4850

4951
<!-- test dependencies -->
5052
<junit.version>5.8.2</junit.version>
5153

5254
<!-- build plugin dependencies -->
53-
<dependency-check.version>8.1.0</dependency-check.version>
55+
<dependency-check.version>8.2.1</dependency-check.version>
5456
<nexus-staging.version>1.6.8</nexus-staging.version>
5557
</properties>
5658

@@ -80,6 +82,18 @@
8082
<artifactId>kdewallet</artifactId>
8183
<version>${kdewallet.version}</version>
8284
</dependency>
85+
<!-- Apache Commons -->
86+
<dependency>
87+
<groupId>org.apache.commons</groupId>
88+
<artifactId>commons-lang3</artifactId>
89+
<version>${commons-lang3.version}</version>
90+
</dependency>
91+
<!-- Java bindings for appindicator -->
92+
<dependency>
93+
<groupId>org.purejava</groupId>
94+
<artifactId>libappindicator-gtk3-java-minimal</artifactId>
95+
<version>${appindicator.version}</version>
96+
</dependency>
8397
<dependency>
8498
<groupId>org.junit.jupiter</groupId>
8599
<artifactId>junit-jupiter</artifactId>
@@ -96,6 +110,9 @@
96110
<version>3.9.0</version>
97111
<configuration>
98112
<release>${project.jdk.version}</release>
113+
<compilerArgs>
114+
<arg>--enable-preview</arg>
115+
</compilerArgs>
99116
</configuration>
100117
</plugin>
101118
<plugin>
@@ -190,6 +207,7 @@
190207
<name>see</name>
191208
</tag>
192209
</tags>
210+
<additionalOptions>--enable-preview</additionalOptions>
193211
</configuration>
194212
</plugin>
195213
</plugins>

src/main/java/module-info.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import org.cryptomator.integrations.keychain.KeychainAccessProvider;
2+
import org.cryptomator.integrations.revealpath.RevealPathService;
3+
import org.cryptomator.integrations.tray.TrayMenuController;
4+
import org.cryptomator.linux.keychain.KDEWalletKeychainAccess;
5+
import org.cryptomator.linux.keychain.SecretServiceKeychainAccess;
6+
import org.cryptomator.linux.revealpath.DBusSendRevealPathService;
7+
import org.cryptomator.linux.tray.AppindicatorTrayMenuController;
8+
9+
module org.cryptomator.integrations.linux {
10+
requires org.cryptomator.integrations.api;
11+
requires org.slf4j;
12+
requires com.google.common;
13+
requires org.apache.commons.lang3;
14+
requires org.freedesktop.dbus;
15+
requires org.purejava.appindicator;
16+
requires org.purejava.kwallet;
17+
requires secret.service;
18+
19+
provides KeychainAccessProvider with SecretServiceKeychainAccess, KDEWalletKeychainAccess;
20+
provides RevealPathService with DBusSendRevealPathService;
21+
provides TrayMenuController with AppindicatorTrayMenuController;
22+
23+
opens org.cryptomator.linux.tray to org.cryptomator.integrations.api;
24+
}

src/main/java/org/cryptomator/linux/keychain/KDEWalletKeychainAccess.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
import org.freedesktop.dbus.exceptions.DBusConnectionException;
1111
import org.freedesktop.dbus.exceptions.DBusException;
1212
import org.freedesktop.dbus.exceptions.DBusExecutionException;
13-
import org.kde.KWallet;
14-
import org.kde.Static;
15-
import org.purejava.KDEWallet;
13+
import org.purejava.kwallet.KWallet;
14+
import org.purejava.kwallet.KDEWallet;
15+
import org.purejava.kwallet.Static;
1616
import org.slf4j.Logger;
1717
import org.slf4j.LoggerFactory;
1818

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package org.cryptomator.linux.tray;
2+
3+
import org.cryptomator.integrations.tray.ActionItem;
4+
import org.purejava.appindicator.GCallback;
5+
import org.slf4j.Logger;
6+
import org.slf4j.LoggerFactory;
7+
8+
record ActionItemCallback (ActionItem actionItem) implements GCallback {
9+
private static final Logger LOG = LoggerFactory.getLogger(ActionItemCallback.class);
10+
11+
@Override
12+
public void apply() {
13+
LOG.trace("Hit tray menu action '{}'", actionItem.title());
14+
actionItem.action().run();
15+
}
16+
}

0 commit comments

Comments
 (0)