use of io.divide.client.auth.MockKeyManager in project divide by HiddenStage.
the class MockAndroidModule method additionalConfig.
@Override
protected void additionalConfig(AndroidConfig config) {
super.additionalConfig(config);
// ORDER MATTER
try {
bind(KeyManager.class).toInstance(new MockKeyManager("someKey"));
} catch (NoSuchAlgorithmException e) {
throw new RuntimeException(e);
}
bind(new TypeLiteral<DAO<TransientObject, TransientObject>>() {
}).to(new TypeLiteral<MockLocalStorage<TransientObject, TransientObject>>() {
}).in(Singleton.class);
}
Aggregations