mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Inject HandshakeKeyExchangeModule as an eager singleton
This commit is contained in:
@@ -4,6 +4,7 @@ import org.briarproject.briar.avatar.AvatarModule;
|
||||
import org.briarproject.briar.blog.BlogModule;
|
||||
import org.briarproject.briar.feed.FeedModule;
|
||||
import org.briarproject.briar.forum.ForumModule;
|
||||
import org.briarproject.briar.handshakekeyexchange.HandshakeKeyExchangeModule;
|
||||
import org.briarproject.briar.identity.IdentityModule;
|
||||
import org.briarproject.briar.introduction.IntroductionModule;
|
||||
import org.briarproject.briar.messaging.MessagingModule;
|
||||
@@ -37,6 +38,8 @@ public interface BriarCoreEagerSingletons {
|
||||
|
||||
void inject(SocialBackupModule.EagerSingletons init);
|
||||
|
||||
void inject(HandshakeKeyExchangeModule.EagerSingletons init);
|
||||
|
||||
class Helper {
|
||||
|
||||
public static void injectEagerSingletons(BriarCoreEagerSingletons c) {
|
||||
@@ -51,6 +54,7 @@ public interface BriarCoreEagerSingletons {
|
||||
c.inject(new IdentityModule.EagerSingletons());
|
||||
c.inject(new IntroductionModule.EagerSingletons());
|
||||
c.inject(new SocialBackupModule.EagerSingletons());
|
||||
c.inject(new HandshakeKeyExchangeModule.EagerSingletons());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import org.briarproject.briar.client.BriarClientModule;
|
||||
import org.briarproject.briar.feed.DnsModule;
|
||||
import org.briarproject.briar.feed.FeedModule;
|
||||
import org.briarproject.briar.forum.ForumModule;
|
||||
import org.briarproject.briar.handshakekeyexchange.HandshakeKeyExchangeModule;
|
||||
import org.briarproject.briar.identity.IdentityModule;
|
||||
import org.briarproject.briar.introduction.IntroductionModule;
|
||||
import org.briarproject.briar.messaging.MessagingModule;
|
||||
@@ -33,6 +34,7 @@ import dagger.Module;
|
||||
PrivateGroupModule.class,
|
||||
SharingModule.class,
|
||||
SocialBackupModule.class,
|
||||
HandshakeKeyExchangeModule.class,
|
||||
TestModule.class
|
||||
})
|
||||
public class BriarCoreModule {
|
||||
|
||||
Reference in New Issue
Block a user