chore: temp disable vc 2.0 again
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
da62bba946
commit
a0df8f7b98
|
|
@ -297,9 +297,9 @@ dependencies {
|
||||||
implementation("dev.snipme:highlights:1.0.0")
|
implementation("dev.snipme:highlights:1.0.0")
|
||||||
|
|
||||||
// Livekit - Commented out for now to not inflate the app size.
|
// Livekit - Commented out for now to not inflate the app size.
|
||||||
implementation("io.livekit:livekit-android:${LivekitVersion.core}")
|
/*implementation("io.livekit:livekit-android:${LivekitVersion.core}")
|
||||||
implementation("io.livekit:livekit-android-camerax:${LivekitVersion.core}")
|
implementation("io.livekit:livekit-android-camerax:${LivekitVersion.core}")
|
||||||
implementation("io.livekit:livekit-android-compose-components:${LivekitVersion.componentsCompose}")
|
implementation("io.livekit:livekit-android-compose-components:${LivekitVersion.componentsCompose}")*/
|
||||||
|
|
||||||
// Firebase - Cloud Messaging
|
// Firebase - Cloud Messaging
|
||||||
implementation(platform("com.google.firebase:firebase-bom:33.15.0"))
|
implementation(platform("com.google.firebase:firebase-bom:33.15.0"))
|
||||||
|
|
|
||||||
|
|
@ -1,31 +1,18 @@
|
||||||
package chat.stoat.composables.voice
|
package chat.stoat.composables.voice
|
||||||
|
|
||||||
import androidx.compose.animation.animateContentSize
|
import android.widget.Toast
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
|
||||||
import androidx.compose.foundation.layout.Column
|
|
||||||
import androidx.compose.foundation.layout.Row
|
|
||||||
import androidx.compose.foundation.lazy.LazyColumn
|
|
||||||
import androidx.compose.material3.Button
|
|
||||||
import androidx.compose.material3.ButtonDefaults
|
|
||||||
import androidx.compose.material3.MaterialTheme
|
|
||||||
import androidx.compose.material3.Text
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.LaunchedEffect
|
import androidx.compose.runtime.LaunchedEffect
|
||||||
import androidx.compose.runtime.getValue
|
import androidx.compose.runtime.getValue
|
||||||
import androidx.compose.runtime.mutableStateOf
|
import androidx.compose.runtime.mutableStateOf
|
||||||
import androidx.compose.runtime.setValue
|
import androidx.compose.runtime.setValue
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.platform.LocalContext
|
||||||
import androidx.compose.ui.unit.dp
|
|
||||||
import androidx.lifecycle.SavedStateHandle
|
import androidx.lifecycle.SavedStateHandle
|
||||||
import androidx.lifecycle.ViewModel
|
import androidx.lifecycle.ViewModel
|
||||||
import androidx.lifecycle.viewmodel.compose.viewModel
|
import androidx.lifecycle.viewmodel.compose.viewModel
|
||||||
import chat.stoat.R
|
import chat.stoat.R
|
||||||
import chat.stoat.api.routes.misc.getRootRoute
|
import chat.stoat.api.routes.misc.getRootRoute
|
||||||
import chat.stoat.api.routes.voice.joinCall
|
import chat.stoat.api.routes.voice.joinCall
|
||||||
import io.livekit.android.compose.local.RoomLocal
|
|
||||||
import io.livekit.android.compose.local.RoomScope
|
|
||||||
import io.livekit.android.compose.state.rememberTracks
|
|
||||||
import io.livekit.android.compose.ui.VideoTrackView
|
|
||||||
import logcat.LogPriority
|
import logcat.LogPriority
|
||||||
import logcat.asLog
|
import logcat.asLog
|
||||||
import logcat.logcat
|
import logcat.logcat
|
||||||
|
|
@ -93,7 +80,16 @@ fun VoiceSheet(
|
||||||
viewModel.getVoiceToken()
|
viewModel.getVoiceToken()
|
||||||
}
|
}
|
||||||
|
|
||||||
RoomScope(
|
val context = LocalContext.current
|
||||||
|
LaunchedEffect(Unit) {
|
||||||
|
Toast.makeText(
|
||||||
|
context,
|
||||||
|
"Voice chat is not available.",
|
||||||
|
Toast.LENGTH_SHORT
|
||||||
|
).show()
|
||||||
|
onDisconnect()
|
||||||
|
}
|
||||||
|
/*RoomScope(
|
||||||
url = viewModel.voiceLkNode,
|
url = viewModel.voiceLkNode,
|
||||||
token = viewModel.voiceToken,
|
token = viewModel.voiceToken,
|
||||||
audio = true,
|
audio = true,
|
||||||
|
|
@ -146,5 +142,5 @@ fun VoiceSheet(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
@ -41,6 +41,7 @@ import chat.stoat.StoatApplication
|
||||||
import chat.stoat.api.settings.Experiments
|
import chat.stoat.api.settings.Experiments
|
||||||
import chat.stoat.api.settings.FeatureFlags
|
import chat.stoat.api.settings.FeatureFlags
|
||||||
import chat.stoat.api.settings.LoadedSettings
|
import chat.stoat.api.settings.LoadedSettings
|
||||||
|
import chat.stoat.composables.markdown.RichMarkdown
|
||||||
import chat.stoat.persistence.KVStorage
|
import chat.stoat.persistence.KVStorage
|
||||||
import chat.stoat.settings.dsl.SettingsPage
|
import chat.stoat.settings.dsl.SettingsPage
|
||||||
import chat.stoat.settings.dsl.SubcategoryContentInsets
|
import chat.stoat.settings.dsl.SubcategoryContentInsets
|
||||||
|
|
@ -306,7 +307,7 @@ fun ExperimentsSettingsScreen(
|
||||||
Text("Voice Chats 2.0")
|
Text("Voice Chats 2.0")
|
||||||
},
|
},
|
||||||
supportingContent = {
|
supportingContent = {
|
||||||
Text("Enable voice chats support.")
|
RichMarkdown("Enable voice chats support.\n‼️ **Not available in this build!** ‼️")
|
||||||
},
|
},
|
||||||
trailingContent = {
|
trailingContent = {
|
||||||
Switch(
|
Switch(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue