General improvements (#316)

* Added support for right text alignment in epub reader

* Added tabs management to PDF navigation drawer

* Implemented unified selection menu placement logic

* Added reset functionality for toolbar customization

* Improved highlight filtering in epub pagination

* Migrated hardcoded UI strings to string resources

* Extracted desktop application logic from Main.kt into modular files

* Refactored Main.kt by extracting PDF and EPUB logic into specialized files

* Added Spanish language support

* Added system default option to app language selection
This commit is contained in:
Aryan 2026-05-16 16:19:31 +05:30 committed by GitHub
parent 759d4b73a0
commit 056485a140
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
77 changed files with 9184 additions and 5947 deletions

View file

@ -25,6 +25,7 @@ class BillingClientWrapper(
private val externalScope: CoroutineScope,
private val onPurchaseVerified: (PurchaseEntity) -> Unit
) {
private val appContext = context.applicationContext
private val _proUpgradeState = MutableStateFlow(ProUpgradeState())
val proUpgradeState = _proUpgradeState.asStateFlow()
@ -41,7 +42,7 @@ class BillingClientWrapper(
productId: String = PRO_LIFETIME_PRODUCT_ID,
obfuscatedAccountId: String? = null
) {
_proUpgradeState.value = _proUpgradeState.value.copy(error = "Not available in Open Source version")
_proUpgradeState.value = _proUpgradeState.value.copy(error = appContext.getString(R.string.billing_error_not_available_oss))
}
fun consumePurchase(purchaseToken: String) {}