完全替换为Rave Now,只保留了Google Play的密钥还有一些图片映射还有旧字样。

This commit is contained in:
2024-11-17 20:31:18 +08:00
parent 074244c0f8
commit 4cdb7f28b3
11 changed files with 15 additions and 15 deletions

View File

@@ -92,7 +92,7 @@ class AuthInterceptor() : Interceptor {
.addConverterFactory(GsonConverterFactory.create())
.client(getUnsafeOkHttpClient())
.build()
.create(RiderProAPI::class.java)
.create(RaveNowAPI::class.java)
val resp = client.refreshToken(AppStore.token ?: "")
val newToken = resp.body()?.token
@@ -118,8 +118,8 @@ object ApiClient {
.addConverterFactory(GsonConverterFactory.create())
.build()
}
val api: RiderProAPI by lazy {
retrofit.create(RiderProAPI::class.java)
val api: RaveNowAPI by lazy {
retrofit.create(RaveNowAPI::class.java)
}
fun formatTime(date: Date): String {

View File

@@ -186,7 +186,7 @@ data class UpdateChatNotificationRequestBody(
val strategy: String,
)
interface RiderProAPI {
interface RaveNowAPI {
@POST("register")
suspend fun register(@Body body: RegisterRequestBody): Response<Unit>

View File

@@ -3,7 +3,7 @@ package com.aiosman.ravenow.ui.index.tabs.shorts
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
import com.aiosman.ravenow.ui.theme.RiderProTheme
import com.aiosman.ravenow.ui.theme.RaveNowTheme
val videoUrls = listOf(
"https://api.rider-pro.com/test/shorts/1.mp4",
@@ -57,7 +57,7 @@ val videoUrls = listOf(
@Composable
fun ShortVideo() {
RiderProTheme {
RaveNowTheme {
Surface(color = MaterialTheme.colorScheme.background) {
ShortViewCompose(
videoItemsUrl = videoUrls,

View File

@@ -183,7 +183,7 @@ fun LoginPage() {
Text(
"Your Night Starts Here",
fontSize = 20.sp,
fontWeight = FontWeight.W600,
fontWeight = FontWeight.W700,
color = AppColors.text
)
Spacer(modifier = Modifier.height(8.dp))

View File

@@ -139,7 +139,7 @@ fun SignupScreen() {
fontSize = 28.sp,
fontWeight = FontWeight.Bold
)
Text("Your Night Starts Here".uppercase(), fontSize = 20.sp, fontWeight = FontWeight.W600)
Text("Your Night Starts Here".uppercase(), fontSize = 20.sp, fontWeight = FontWeight.W700)
}
}

View File

@@ -49,7 +49,7 @@ fun SplashScreen() {
fontSize = 28.sp,
fontWeight = FontWeight.Bold
)
Text("Your Night Starts Here".uppercase(), fontSize = 20.sp, fontWeight = FontWeight.W600)
Text("Your Night Starts Here".uppercase(), fontSize = 20.sp, fontWeight = FontWeight.W700)
}
}

View File

@@ -33,7 +33,7 @@ private val LightColorScheme = lightColorScheme(
)
@Composable
fun RiderProTheme(
fun RaveNowTheme(
darkTheme: Boolean = isSystemInDarkTheme(),
// Dynamic color is available on Android 12+
dynamicColor: Boolean = true,