Compare commits

..
Author SHA1 Message Date
Daniel Sogl 17226781b8 feat(onesignal): add OneSignal v5 user-centric API, deprecate removed v2 flat API
onesignal-cordova-plugin v5.0.0 replaced the flat OneSignal.* bridge (startInit,
sendTag, getIds, ...) with a namespaced, user-centric API exposed under
window.OneSignal (User, Notifications, Session, Location, InAppMessages, Debug,
LiveActivities). None of the old flat methods exist in the v5.5.2 bundle.
2026-07-27 22:21:34 +02:00
2 changed files with 1338 additions and 31 deletions
@@ -9,10 +9,6 @@ export interface AnylineConfig {
* @name Anyline
* @description
* Anyline provides an easy-to-use SDK for applications to enable Optical Character Recognition (OCR) on mobile devices.
*
* @deprecated since v56.0.0. This legacy `AnylineSDK` API remains functional but upstream recommends migrating to the
* new `AnylineInfinityPlugin` API (exposed natively as `window.AnylineInfinity`), which is not covered by this wrapper.
* See https://documentation.anyline.com/cordova-plugin-component/latest/infinity-plugins/upgrade-guide.html
* @usage
* ```typescript
* import { Anyline } from '@awesome-cordova-plugins/anyline/ngx';
@@ -63,17 +59,4 @@ export class Anyline extends AwesomeCordovaNativePlugin {
scan(config: AnylineConfig): Promise<any> {
return;
}
/**
* Sets platform-specific scanning options, such as selecting the camera API on Android
* (CameraX vs Camera1) or managing camera permission handling. Must be called before `scan`.
*
* @param scanStartPlatformOptionsString {string} A JSON-stringified object of platform-specific attributes,
* e.g. `JSON.stringify({ androidScanViewAttributes: { useCameraX: false } })`
* @returns {Promise<any>} Returns a promise that resolves when the options have been set
*/
@Cordova()
setDefaultScanStartPlatformOptions(scanStartPlatformOptionsString: string): Promise<any> {
return;
}
}
File diff suppressed because it is too large Load Diff