Monorepo: Gitea CI, docs, auth/sync, backend APIs, gitignore
- Add Gitea Actions workflow; point README to gitea.d-bis.org/Sankofa_Phoenix/SMOA - Expand .gitignore for Spring H2 data, secrets, Kotlin .kotlin/, tooling - Track docs/api/generated ReDoc bundle; refresh api docs README - Android: network/auth/sync, UI shell, tests; backend credentials/integrity APIs - Docs, scripts (generate-api-docs), modules and core updates Made-with: Cursor
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
plugins {
|
||||
id("com.android.library")
|
||||
id("org.jetbrains.kotlin.android")
|
||||
id("com.google.dagger.hilt.android")
|
||||
id("kotlin-kapt")
|
||||
id("dagger.hilt.android.plugin")
|
||||
}
|
||||
|
||||
android {
|
||||
@@ -29,6 +29,14 @@ android {
|
||||
composeOptions {
|
||||
kotlinCompilerExtensionVersion = "1.5.4"
|
||||
}
|
||||
|
||||
hilt {
|
||||
enableAggregatingTask = true
|
||||
}
|
||||
}
|
||||
|
||||
kapt {
|
||||
correctErrorTypes = true
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -56,4 +64,3 @@ dependencies {
|
||||
// Testing
|
||||
testImplementation(Dependencies.junit)
|
||||
}
|
||||
|
||||
|
||||
@@ -29,8 +29,8 @@ data class AAMVACredential(
|
||||
val sex: String? = null // M, F, or X
|
||||
) {
|
||||
/**
|
||||
* Encode to AAMVA format string for PDF417 barcode.
|
||||
* Format: @\nANSI [version]\n[data elements]\n
|
||||
* Encode to AAMVA-style key/value lines for PDF417 prototyping.
|
||||
* Element IDs and ordering must match the target jurisdiction’s AAMVA / ANSI 636 revision for production readers.
|
||||
*/
|
||||
fun encodeToAAMVAFormat(): String {
|
||||
val builder = StringBuilder()
|
||||
@@ -103,13 +103,14 @@ data class AAMVACredential(
|
||||
builder.append("\n")
|
||||
|
||||
if (restrictions != null) {
|
||||
builder.append("DBA") // Restrictions
|
||||
// Jurisdiction-specific; DCK used for federal commercial restriction codes in some AAMVA revisions — pin to your card version.
|
||||
builder.append("DCK\n")
|
||||
builder.append(restrictions)
|
||||
builder.append("\n")
|
||||
}
|
||||
|
||||
|
||||
if (endorsements != null) {
|
||||
builder.append("DBC") // Endorsements
|
||||
builder.append("DCJ\n")
|
||||
builder.append(endorsements)
|
||||
builder.append("\n")
|
||||
}
|
||||
|
||||
@@ -2,8 +2,11 @@ package com.smoa.core.barcode.formats
|
||||
|
||||
/**
|
||||
* ICAO 9303 Machine Readable Travel Document (MRTD) data structure.
|
||||
*
|
||||
* Format specification: ICAO Document 9303 - Machine Readable Travel Documents
|
||||
*
|
||||
* Format specification: ICAO Document 9303 - Machine Readable Travel Documents.
|
||||
*
|
||||
* **Compliance:** [encodeToICAO9303Format] is a simplified MRZ-style builder for demos;
|
||||
* production use requires full TD1/TD2/TD3 layout, check digits, and official test vectors.
|
||||
*/
|
||||
data class ICAO9303Credential(
|
||||
val documentType: String, // P = Passport, I = ID card, A = Alien, etc.
|
||||
|
||||
Reference in New Issue
Block a user