chore(opds): disable popular online opds catalogs in certain regions on App Store (#3031)

This commit is contained in:
Huang Xin 2026-01-22 11:42:16 +01:00 committed by GitHub
parent d1d0d2d59c
commit 48920a87bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 170 additions and 46 deletions

View file

@ -879,6 +879,16 @@ class NativeBridgePlugin: Plugin {
invoke.reject("Failed to copy file: \(error.localizedDescription)")
}
}
@objc public func get_storefront_region_code(_ invoke: Invoke) {
Task {
if let storefront = await Storefront.current {
invoke.resolve(["regionCode": storefront.countryCode])
} else {
invoke.reject("Failed to get region code")
}
}
}
}
@_cdecl("init_plugin_native_bridge")