Initial commit

This commit is contained in:
Aryan 2026-02-24 17:37:40 +05:30
commit 6072b2ba29
844 changed files with 220532 additions and 0 deletions

View file

@ -0,0 +1,40 @@
package com.aryan.reader.epubreader
import android.os.Build
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.annotation.RequiresApi
import com.aryan.reader.RenderMode
import com.aryan.reader.epub.EpubBook
import kotlinx.serialization.json.Json
class EpubTestActivity : ComponentActivity() {
@RequiresApi(Build.VERSION_CODES.VANILLA_ICE_CREAM)
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val bookJson = intent.getStringExtra("epubBookJson")
val book = Json.decodeFromString<EpubBook>(bookJson!!)
setContent {
EpubReaderScreen(
epubBook = book,
renderMode = RenderMode.VERTICAL_SCROLL,
initialLocator = null,
initialCfi = null,
initialBookmarksJson = null,
isProUser = false,
pendingSyncUpdate = null,
onClearPendingSyncUpdate = {},
onNavigateBack = {},
onSavePosition = { _, _, _ -> },
onBookmarksChanged = {},
onNavigateToPro = {},
coverImagePath = null,
onRenderModeChange = {},
customFonts = TODO(),
onImportFont = TODO()
)
}
}
}