Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
d51280e7
Commit
d51280e7
authored
Jan 16, 2018
by
Lucio Maciel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename provide methods to reflect the Interface type
parent
40c54095
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
AuthenticationModule.kt
.../rocket/android/authentication/di/AuthenticationModule.kt
+1
-1
AppModule.kt
.../main/java/chat/rocket/android/dagger/module/AppModule.kt
+2
-2
No files found.
app/src/main/java/chat/rocket/android/authentication/di/AuthenticationModule.kt
View file @
d51280e7
...
...
@@ -20,7 +20,7 @@ class AuthenticationModule {
@Provides
@PerActivity
fun
provide
SharedPreferences
MultiServerTokenRepository
(
repository
:
LocalRepository
,
moshi
:
Moshi
):
MultiServerTokenRepository
{
fun
provideMultiServerTokenRepository
(
repository
:
LocalRepository
,
moshi
:
Moshi
):
MultiServerTokenRepository
{
return
SharedPreferencesMultiServerTokenRepository
(
repository
,
moshi
)
}
}
\ No newline at end of file
app/src/main/java/chat/rocket/android/dagger/module/AppModule.kt
View file @
d51280e7
...
...
@@ -91,7 +91,7 @@ class AppModule {
@Provides
@Singleton
fun
provide
Auth
TokenRepository
():
TokenRepository
{
fun
provideTokenRepository
():
TokenRepository
{
return
MemoryTokenRepository
()
}
...
...
@@ -108,7 +108,7 @@ class AppModule {
@Provides
@Singleton
fun
provide
SharedPreferences
Repository
(
prefs
:
SharedPreferences
):
LocalRepository
{
fun
provide
Local
Repository
(
prefs
:
SharedPreferences
):
LocalRepository
{
return
SharedPrefsLocalRepository
(
prefs
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment