-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
27 changed files
with
126 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import org.cryptomator.integrations.autostart.AutoStartProvider; | ||
import org.cryptomator.integrations.keychain.KeychainAccessProvider; | ||
import org.cryptomator.integrations.tray.TrayIntegrationProvider; | ||
import org.cryptomator.integrations.uiappearance.UiAppearanceProvider; | ||
import org.cryptomator.macos.autostart.MacAutoStartProvider; | ||
import org.cryptomator.macos.keychain.MacSystemKeychainAccess; | ||
import org.cryptomator.macos.tray.MacTrayIntegrationProvider; | ||
import org.cryptomator.macos.uiappearance.MacUiAppearanceProvider; | ||
|
||
module org.cryptomator.integrations.mac { | ||
requires org.cryptomator.integrations.api; | ||
requires org.slf4j; | ||
|
||
provides AutoStartProvider with MacAutoStartProvider; | ||
provides KeychainAccessProvider with MacSystemKeychainAccess; | ||
provides TrayIntegrationProvider with MacTrayIntegrationProvider; | ||
provides UiAppearanceProvider with MacUiAppearanceProvider; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
src/main/java/org/cryptomator/macos/tray/MacTrayIntegrationProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.cryptomator.macos.keychain.displayName=macOS এর কী চেইন |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.cryptomator.macos.keychain.displayName=צרור מפתחות של macOS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.cryptomator.macos.keychain.displayName=macOS ланец со клучеви |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
org.cryptomator.macos.keychain.displayName=macOS Keychain | ||
org.cryptomator.macos.keychain.displayName=macOS-nøkkelring |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
org.cryptomator.macos.keychain.displayName=Зв'язка ключів macOS |
Empty file.
10 changes: 2 additions & 8 deletions
10
src/test/java/org/cryptomator/macos/keychain/KeychainAccessProviderTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
package org.cryptomator.macos.keychain; | ||
|
||
import org.cryptomator.integrations.keychain.KeychainAccessProvider; | ||
import org.cryptomator.macos.keychain.MacSystemKeychainAccess; | ||
import org.junit.jupiter.api.Assertions; | ||
import org.junit.jupiter.api.DisplayName; | ||
import org.junit.jupiter.api.Test; | ||
|
||
import java.util.ServiceLoader; | ||
|
||
public class KeychainAccessProviderTest { | ||
|
||
@Test | ||
@DisplayName("MacSystemKeychainAccess can be loaded") | ||
public void testLoadMacSystemKeychainAccess() { | ||
var loadedProviders = ServiceLoader.load(KeychainAccessProvider.class); | ||
var provider = loadedProviders.stream() | ||
.filter(p -> p.type().equals(MacSystemKeychainAccess.class)) | ||
.map(ServiceLoader.Provider::get) | ||
.findAny(); | ||
var provider = KeychainAccessProvider.get().findAny(); | ||
Assertions.assertTrue(provider.isPresent()); | ||
Assertions.assertInstanceOf(MacSystemKeychainAccess.class, provider.get()); | ||
} | ||
|
||
} |
Oops, something went wrong.