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
874ae7e4
Commit
874ae7e4
authored
Apr 12, 2018
by
Aniket Singh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes in dagger
parent
571f80bf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
14 deletions
+10
-14
AddMembersProvider.kt
...android/createChannel/addMembers/di/AddMembersProvider.kt
+0
-11
CreateNewChannelModule.kt
...rocket/android/createChannel/di/CreateNewChannelModule.kt
+8
-0
ActivityBuilder.kt
...java/chat/rocket/android/dagger/module/ActivityBuilder.kt
+2
-1
MainActivity.kt
...src/main/java/chat/rocket/android/main/ui/MainActivity.kt
+0
-2
No files found.
app/src/main/java/chat/rocket/android/createChannel/addMembers/di/AddMembersProvider.kt
deleted
100644 → 0
View file @
571f80bf
package
chat.rocket.android.createChannel.addMembers.di
import
chat.rocket.android.createChannel.addMembers.ui.AddMembersActivity
import
dagger.Module
import
dagger.android.ContributesAndroidInjector
@Module
abstract
class
AddMembersProvider
{
@ContributesAndroidInjector
(
modules
=
[
AddMembersModule
::
class
])
abstract
fun
provideNewChannelActivity
():
AddMembersActivity
}
\ No newline at end of file
app/src/main/java/chat/rocket/android/createChannel/di/CreateNewChannelModule.kt
View file @
874ae7e4
...
...
@@ -2,7 +2,9 @@ package chat.rocket.android.createChannel.di
import
android.arch.lifecycle.LifecycleOwner
import
chat.rocket.android.core.lifecycle.CancelStrategy
import
chat.rocket.android.createChannel.presentation.CreateNewChannelView
import
chat.rocket.android.createChannel.ui.CreateNewChannelActivity
import
chat.rocket.android.dagger.scope.PerActivity
import
dagger.Module
import
dagger.Provides
import
kotlinx.coroutines.experimental.Job
...
...
@@ -14,6 +16,12 @@ class CreateNewChannelModule {
return
activity
}
@Provides
@PerActivity
fun
createChannelView
(
activity
:
CreateNewChannelActivity
):
CreateNewChannelView
{
return
activity
}
@Provides
fun
provideCancelStrategy
(
owner
:
LifecycleOwner
,
jobs
:
Job
):
CancelStrategy
{
return
CancelStrategy
(
owner
,
jobs
)
...
...
app/src/main/java/chat/rocket/android/dagger/module/ActivityBuilder.kt
View file @
874ae7e4
...
...
@@ -12,6 +12,7 @@ import chat.rocket.android.chatroom.di.PinnedMessagesFragmentProvider
import
chat.rocket.android.chatroom.ui.ChatRoomActivity
import
chat.rocket.android.chatroom.ui.PinnedMessagesActivity
import
chat.rocket.android.chatrooms.di.ChatRoomsFragmentProvider
import
chat.rocket.android.createChannel.di.CreateNewChannelModule
import
chat.rocket.android.createChannel.di.CreateNewChannelProvider
import
chat.rocket.android.createChannel.ui.CreateNewChannelActivity
import
chat.rocket.android.dagger.scope.PerActivity
...
...
@@ -63,7 +64,7 @@ abstract class ActivityBuilder {
abstract
fun
bindChangeServerActivity
():
ChangeServerActivity
@PerActivity
@ContributesAndroidInjector
(
modules
=
[
CreateNewChannel
Provider
::
class
])
@ContributesAndroidInjector
(
modules
=
[
CreateNewChannel
Module
::
class
])
abstract
fun
bindCreateNewChannelActivity
():
CreateNewChannelActivity
}
\ No newline at end of file
app/src/main/java/chat/rocket/android/main/ui/MainActivity.kt
View file @
874ae7e4
...
...
@@ -11,8 +11,6 @@ import android.view.MenuItem
import
android.view.View
import
chat.rocket.android.BuildConfig
import
chat.rocket.android.R
import
chat.rocket.android.authentication.ui.AuthenticationActivity
import
chat.rocket.android.main.adapter.AccountSelector
import
chat.rocket.android.main.adapter.Selector
import
chat.rocket.android.main.adapter.AccountsAdapter
import
chat.rocket.android.main.presentation.MainPresenter
...
...
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