Skip to content

Commit

Permalink
Ad AdView to drive screen (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
TSampley authored Sep 8, 2024
1 parent a738a0a commit 09e0f47
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions feature/drive/src/commonMain/kotlin/ui/DriveScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import androidx.compose.runtime.getValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import org.pointyware.xyz.core.navigation.XyzNavController
import org.pointyware.xyz.core.ui.AdView
import org.pointyware.xyz.core.ui.AdViewState
import org.pointyware.xyz.core.ui.MapView
import org.pointyware.xyz.core.viewmodels.MapUiState
import org.pointyware.xyz.drive.viewmodels.DriveViewModel
Expand Down Expand Up @@ -55,6 +57,11 @@ fun DriveScreen(
modifier = Modifier.fillMaxSize()
)

AdView(
state = AdViewState(unit = "ca-app-pub-7815756395963999/7475476086"),
modifier = Modifier.align(Alignment.TopCenter)
)

AnimatedContent(
targetState = state,
modifier = Modifier
Expand Down

0 comments on commit 09e0f47

Please sign in to comment.