Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Oct 19, 2021
2 parents 59da5b6 + 11b6c9f commit 46e8c9f
Show file tree
Hide file tree
Showing 43 changed files with 88 additions and 35 deletions.
6 changes: 6 additions & 0 deletions .crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
commit_message: '[ci skip]'
files:
- source: /src/main/resources/WinIntegrationsBundle.properties
translation: /src/main/resources/WinIntegrationsBundle_%two_letters_code%.properties
escape_quotes: 0
escape_special_characters: 0
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ jobs:
- name: Ensure to use tagged version
if: startsWith(github.ref, 'refs/tags/')
shell: bash
run: |
mvn versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
run: mvn versions:set --file ./pom.xml -DnewVersion=${GITHUB_REF##*/}
- name: Build and Test
id: buildAndTest
run: mvn -B clean install -Pdependency-check
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-central.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: Enforce project version ${{ github.event.inputs.tag }}
run: mvn versions:set -B -DnewVersion=${{ github.event.inputs.tag }}
run: mvn versions:set -B -DnewVersion="${{ github.event.inputs.tag }}"
- name: Deploy
run: mvn deploy -B -DskipTests -Psign,deploy-central --no-transfer-progress
run: mvn deploy -B -DskipTests -Psign -Pdeploy-central --no-transfer-progress
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand Down
18 changes: 3 additions & 15 deletions .github/workflows/publish-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,9 @@ jobs:
restore-keys: |
${{ runner.os }}-maven-
- name: Enforce project version ${{ github.event.release.tag_name }}
run: mvn versions:set -B -DnewVersion=${{ github.event.release.tag_name }}
run: mvn versions:set -B -DnewVersion="${{ github.event.release.tag_name }}"
- name: Deploy
run: mvn deploy -B -DskipTests -Psign,deploy-github --no-transfer-progress
run: mvn deploy -B -DskipTests -Psign -Pdeploy-github --no-transfer-progress
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
- name: Slack Notification
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_USERNAME: 'Cryptobot'
SLACK_ICON:
SLACK_ICON_EMOJI: ':bot:'
SLACK_CHANNEL: 'cryptomator-desktop'
SLACK_TITLE: "Published ${{ github.event.repository.name }} ${{ github.event.release.tag_name }}"
SLACK_MESSAGE: "Ready to <https://github.com/${{ github.repository }}/actions?query=workflow%3A%22Publish+to+Maven+Central%22|deploy to Maven Central>."
SLACK_FOOTER:
MSG_MINIMAL: true
MAVEN_GPG_PASSPHRASE: ${{ secrets.RELEASES_GPG_PASSPHRASE }}
28 changes: 14 additions & 14 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.cryptomator</groupId>
<artifactId>integrations-win</artifactId>
<version>1.0.1-beta1</version>
<version>1.0.0</version>

<name>Cryptomator Integrations for Windows</name>
<description>Provides optional Windows services used by Cryptomator</description>
Expand Down Expand Up @@ -36,14 +36,14 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<!-- runtime dependencies -->
<api.version>1.0.0-beta2</api.version>
<slf4j.version>1.7.30</slf4j.version>
<guava.version>30.0-jre</guava.version>
<gson.version>2.8.6</gson.version>
<api.version>1.0.0</api.version>
<slf4j.version>1.7.32</slf4j.version>
<guava.version>31.0-jre</guava.version>
<gson.version>2.8.8</gson.version>

<!-- test dependencies -->
<junit.jupiter.version>5.6.2</junit.jupiter.version>
<mockito.version>3.3.3</mockito.version>
<junit.jupiter.version>5.8.1</junit.jupiter.version>
<mockito.version>3.12.4</mockito.version>
</properties>

<licenses>
Expand Down Expand Up @@ -130,7 +130,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
<version>3.0.0</version>
<executions>
<execution>
<id>check-preconditions</id>
Expand All @@ -151,7 +151,7 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.6.0</version>
<version>3.0.0</version>
<executions>
<execution>
<goals>
Expand Down Expand Up @@ -199,11 +199,11 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<version>3.0.0-M5</version>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>3.2.0</version>
<version>3.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
Expand All @@ -215,7 +215,7 @@
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
Expand Down Expand Up @@ -265,7 +265,7 @@
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>6.1.0</version>
<version>6.3.1</version>
<configuration>
<cveValidForHours>24</cveValidForHours>
<failBuildOnCVSS>0</failBuildOnCVSS>
Expand All @@ -290,7 +290,7 @@
<plugins>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
Expand Down
14 changes: 14 additions & 0 deletions src/main/java/org/cryptomator/windows/common/Localization.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package org.cryptomator.windows.common;

import java.util.ResourceBundle;

public enum Localization {
INSTANCE;

private final ResourceBundle resourceBundle = ResourceBundle.getBundle("WinIntegrationsBundle");

public static ResourceBundle get() {
return INSTANCE.resourceBundle;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.google.gson.reflect.TypeToken;
import org.cryptomator.integrations.keychain.KeychainAccessException;
import org.cryptomator.integrations.keychain.KeychainAccessProvider;
import org.cryptomator.windows.common.Localization;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -84,6 +85,11 @@ private static Path resolveHomeDir(Path path) {
}
}

@Override
public String displayName() {
return Localization.get().getString("org.cryptomator.windows.keychain.displayName");
}

@Override
public void storePassphrase(String key, CharSequence passphrase) throws KeychainAccessException {
loadKeychainEntriesIfNeeded();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.cryptomator.windows.uiappearance;

import org.cryptomator.integrations.uiappearance.Theme;
import org.cryptomator.integrations.uiappearance.UiAppearanceException;
import org.cryptomator.integrations.uiappearance.UiAppearanceListener;
import org.cryptomator.integrations.uiappearance.UiAppearanceProvider;

Expand Down Expand Up @@ -42,7 +41,7 @@ public synchronized void addListener(UiAppearanceListener listener) {
@Override
public synchronized void removeListener(UiAppearanceListener listener) {
registeredListeners.remove(listener);
if (registeredListeners.isEmpty()) {
if (appearanceObserver != null && registeredListeners.isEmpty()) {
this.appearanceObserver.interrupt();
this.appearanceObserver = null;
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_ar.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=حماية بيانات ويندوز
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_bs.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_ca.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_cs.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection klíčenka
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_de.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows-Datenschutz
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_el.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Προστασία δεδομένων Windows
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_es.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Protección de Datos de Windows
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_fr.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Protection des données Windows
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_hi.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_hr.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_hu.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_id.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Perlindungan Data Windows
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_it.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Protezione Dati Di Windows
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_ja.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows のデータ保護
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_ko.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=윈도우 데이터 보호
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_lv.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_nb.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_nl.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows-gegevensbescherming
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_nn.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_pa.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=ਵਿੰਡੋ ਡਾਟਾ ਪਰੋਟੈਕਸ਼ਨ
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_pl.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Ochrona danych w systemie Windows
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_pt.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_pt_BR.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Proteção de Dados do Windows
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_ro.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Protecție de date Windows
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_ru.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Защита данных Windows
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_sk.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows ochrana dát
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_sr.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_sv.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_th.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Data Protection
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_tr.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows Veri Koruması
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_zh.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows 数据保护
1 change: 1 addition & 0 deletions src/main/resources/WinIntegrationsBundle_zh_TW.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.cryptomator.windows.keychain.displayName=Windows 數據保護
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,11 @@ public void testAddAndRemoveListener() {
appearanceProvider.removeListener(listener);
}

@Test
@DisplayName("test removing a non-registered listener is a no-op")
public void testRemoveListenerIfNoneIsRegistered() {
UiAppearanceListener listener = theme -> System.out.println(theme.toString());
appearanceProvider.removeListener(listener);
}

}

0 comments on commit 46e8c9f

Please sign in to comment.