This repository has been archived by the owner on May 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
a66cbaa
commit c6411e2
Showing
4 changed files
with
5 additions
and
38 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
15 changes: 3 additions & 12 deletions
15
MembraneRTC/src/main/java/org/membraneframework/rtc/dagger/MembraneRTCComponent.kt
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,30 +1,21 @@ | ||
package org.membraneframework.rtc.dagger | ||
|
||
import android.content.Context | ||
import dagger.BindsInstance | ||
import dagger.Component | ||
import org.membraneframework.rtc.InternalMembraneRTC | ||
import org.webrtc.EglBase | ||
import org.webrtc.audio.AudioDeviceModule | ||
import javax.inject.Singleton | ||
|
||
@Singleton | ||
@Component( | ||
modules = [ | ||
RTCModule::class | ||
] | ||
) | ||
|
||
internal interface MembraneRTCComponent { | ||
fun membraneRTCFactory(): InternalMembraneRTC.Factory | ||
fun membraneRTCFactory(): InternalMembraneRTC | ||
|
||
fun eglBase(): EglBase | ||
|
||
fun audioDeviceModule(): AudioDeviceModule | ||
|
||
@Component.Factory | ||
interface Factory { | ||
fun create( | ||
@BindsInstance appContext: Context | ||
appContext: Context | ||
): MembraneRTCComponent | ||
} | ||
} |
8 changes: 0 additions & 8 deletions
8
MembraneRTC/src/main/java/org/membraneframework/rtc/dagger/RTCModule.kt
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