Skip to content

Commit

Permalink
Merge pull request #361 from toquete/jolpica
Browse files Browse the repository at this point in the history
Migrating from ergast to jolpica API
  • Loading branch information
toquete authored Jan 6, 2025
2 parents 0b4759d + 6f54178 commit d52b5b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.serialization.ExperimentalSerializationApi
import kotlinx.serialization.json.Json
import okhttp3.HttpUrl
import okhttp3.HttpUrl.Companion.toHttpUrl
Expand All @@ -17,9 +16,8 @@ import retrofit2.Retrofit
import retrofit2.converter.kotlinx.serialization.asConverterFactory

private const val JSON_MEDIA_TYPE = "application/json"
private const val BASE_URL = "https://ergast.com/api/f1/"
private const val BASE_URL = "https://api.jolpi.ca/ergast/f1/"

@OptIn(ExperimentalSerializationApi::class)
@Module
@InstallIn(SingletonComponent::class)
internal object NetworkModule {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import androidx.compose.foundation.layout.wrapContentWidth
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.unit.dp
import com.toquete.boxbox.core.model.Constructor
Expand All @@ -24,7 +25,8 @@ internal fun RaceResultItem(
Row(
modifier = modifier
.wrapContentWidth(unbounded = true)
.padding(all = 8.dp)
.padding(all = 8.dp),
verticalAlignment = Alignment.CenterVertically
) {
Text(
modifier = Modifier
Expand Down

0 comments on commit d52b5b8

Please sign in to comment.