Skip to content

Instantly share code, notes, and snippets.

View OliverVicente's full-sized avatar

Oliver Vicente OliverVicente

View GitHub Profile
@OliverVicente
OliverVicente / MainActivity.kt
Created October 1, 2025 22:00
Activity with a PdfRenderer using Jetpack PDF Library
package com.example.pdfapp
import android.content.Intent
import android.net.Uri
import android.os.Build
import android.os.Bundle
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.result.contract.ActivityResultContracts
name: Test UI
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
package com.example.obook.ui.component.scaffold
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.PreviewScreenSizes
class OBookScaffoldScreenshots {
@PreviewScreenSizes
@Composable
private fun OBookScaffoldPreview() {
package com.example.obook.ui.component.scaffold
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.material3.adaptive.currentWindowAdaptiveInfo
import androidx.compose.material3.adaptive.navigationsuite.NavigationSuiteScaffold
import androidx.compose.material3.adaptive.navigationsuite.NavigationSuiteScaffoldDefaults