更名为 FAIRSCAN_SURPORT_BY_CYY (FSBC)
Some checks failed
Android CI / build (push) Has been cancelled

- app_name → FSBC
- PC 服务器标题/页面名称 → FSBC
- 日志标签:FairScan → FSBC
- PDF 创建者/邮件标题/诊断报告 → FSBC
- README 重写:新增图传/上传/MinerU/OCRmyPDF/任务面板完整说明

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
MobKBK
2026-06-04 17:13:34 +08:00
parent 1848a88fcf
commit 2cc6fd34eb
9 changed files with 143 additions and 141 deletions

View File

@@ -328,7 +328,7 @@ class MainActivity : ComponentActivity() {
when (event) {
is AboutEvent.CopyLogs -> {
clipboard.setClipEntry(
ClipData.newPlainText("FairScan logs", event.logs).toClipEntry()
ClipData.newPlainText("FSBC logs", event.logs).toClipEntry()
)
showToast(msgCopiedLogs)
}

View File

@@ -32,7 +32,7 @@ class AndroidPdfWriter : PdfWriter {
override suspend fun writePdfFromJpegs(pages: List<PageToExport>, outputStream: OutputStream): Int {
val doc = PDDocument()
doc.documentInformation.creationDate = Calendar.getInstance()
doc.documentInformation.creator = "FairScan ${BuildConfig.VERSION_NAME}"
doc.documentInformation.creator = "FSBC ${BuildConfig.VERSION_NAME}"
doc.use { document ->
for (page in pages) {
val image = JPEGFactory.createFromByteArray(document, page.jpeg.get().bytes)

View File

@@ -52,7 +52,7 @@ class AboutViewModel(container: AppContainer, val imageRepository: ImageReposito
private fun buildFullLogs(): String {
val header = buildString {
appendLine("FairScan diagnostics report")
appendLine("FSBC diagnostics report")
appendLine("App version: ${BuildConfig.VERSION_NAME}")
appendLine("Android version: ${Build.VERSION.RELEASE} (API ${Build.VERSION.SDK_INT})")
appendLine("Generated: ${LocalDateTime.now()}")

View File

@@ -34,7 +34,7 @@ fun createEmailWithImageIntent(context: Context, imageFile: File?): Intent {
putExtra(Intent.EXTRA_EMAIL, arrayOf(EMAIL_ADDRESS))
putExtra(
Intent.EXTRA_SUBJECT,
"FairScan ${BuildConfig.VERSION_NAME}"
"FSBC ${BuildConfig.VERSION_NAME}"
)
if (imageFile != null) {
val uri = uriForFile(context, imageFile)

View File

@@ -232,7 +232,7 @@ fun CameraScreen(
isTorchEnabled),
onCapture = {
previewView?.bitmap?.let {
Log.i("FairScan", "Pressed <Capture>")
Log.i("FSBC", "Pressed <Capture>")
cameraViewModel.onCapturePressed(it)
captureController.takePicture(
onImageCaptured = { imageProxy, opticalMeasures ->

View File

@@ -184,7 +184,7 @@ class ExportViewModel(container: AppContainer, val imageRepository: ImageReposit
throw e
} catch (e: Exception) {
val message = "Failed to prepare $exportFormat export"
logger.e("FairScan", message, e)
logger.e("FSBC", message, e)
_uiState.update {
it.copy(error = ExportError.OnPrepareOrShare(message, e))
}
@@ -256,7 +256,7 @@ class ExportViewModel(container: AppContainer, val imageRepository: ImageReposit
_uiState.update { it.copy(hasShared = true) }
} catch (e: Exception) {
val message = "Failed to prepare share"
logger.e("FairScan", message, e)
logger.e("FSBC", message, e)
_uiState.update { it.copy(error = ExportError.OnPrepareOrShare(message, e)) }
}
}
@@ -280,13 +280,13 @@ class ExportViewModel(container: AppContainer, val imageRepository: ImageReposit
save(context, saveDir, exportFormat)
}
} catch (e: MissingExportDirPermissionException) {
logger.e("FairScan", "Missing export dir permission", e)
logger.e("FSBC", "Missing export dir permission", e)
_uiState.update {
it.copy(error =
ExportError.OnSave(R.string.error_export_dir_permission_lost, saveDir))
}
} catch (e: Exception) {
logger.e("FairScan", "Failed to save PDF", e)
logger.e("FSBC", "Failed to save PDF", e)
_uiState.update {
it.copy(error = ExportError.OnSave(R.string.error_save, saveDir, e))
}

View File

@@ -1,7 +1,7 @@
<resources>
<string name="about">About</string>
<string name="add_page">Add page</string>
<string name="app_name" translatable="false">FairScan</string>
<string name="app_name" translatable="false">FSBC</string>
<string name="app_tagline">A simple and respectful application to scan your documents.</string>
<string name="apply">Apply</string>
<string name="back">Back</string>