UNPKG

cordova-plugin-abbyy-rtr-sdk

Version:
266 lines (208 loc) 17.2 kB
<?xml version="1.0" encoding="UTF-8"?> <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-abbyy-rtr-sdk" version="1.0.17"> <name>AbbyyRtrSdk</name> <description>ABBYY Mobile Capture SDK Plugin for Cordova</description> <js-module src="www/AbbyyRtrSdk.js" name="AbbyyRtrSdk"> <clobbers target="AbbyyRtrSdk" /> </js-module> <hook type="after_prepare" src="scripts/android_gradle_properties_patch.js" /> <!-- Android --> <platform name="android"> <info>Thank you for choosing ABBYY Mobile Capture SDK. To get started: * Request ABBYY Mobile Capture trial version on the ABBYY website: https://www.abbyy.com/mobile-capture-sdk/#request-demo * Copy assets and the license file (`MobileCapture.License`) to `www/rtr_assets` in your project. * Copy `abbyy-rtr-sdk-1.0.aar` and `abbyy-ui-1.0.aar` to `libs/android` in your project. * Build and run: ** `cordova build android` ** `cordova run android` * Enjoy using ABBYY Mobile Capture SDK :) Thank you!</info> <asset src="www/AbbyyRtrSdk.js" target="js/AbbyyRtrSdk.js"/> <config-file target="config.xml" parent="/*"> <feature name="AbbyyRtrSdk"> <param name="android-package" value="com.abbyy.mobile.rtr.cordova.RtrPlugin"/> </feature> </config-file> <!-- add permissions in AndroidManifest.xml file--> <config-file target="AndroidManifest.xml" parent="/*"> <uses-permission android:name="android.permission.CAMERA"/> <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> </config-file> <config-file target="AndroidManifest.xml" parent="/manifest/application"> <activity android:theme="@style/Theme.AppCompat.NoActionBar" android:name="com.abbyy.mobile.rtr.cordova.activities.ImageCaptureActivity" android:configChanges="keyboardHidden|screenSize" /> <activity android:name="com.abbyy.mobile.rtr.cordova.activities.TextCaptureActivity" android:configChanges="keyboardHidden|screenSize" /> <activity android:name="com.abbyy.mobile.rtr.cordova.activities.DataCaptureActivity" android:configChanges="keyboardHidden|screenSize" /> <activity android:name="com.abbyy.mobile.rtr.cordova.settings.LanguagesSettingActivity" /> </config-file> <hook type="before_build" src="scripts/android_move_assets.js" /> <hook type="after_plugin_add" src="scripts/android_gradle_libs_patch.js" /> <!-- plugin source code --> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/SharedEngine.java" target-dir="src/com/abbyy/mobile/rtr/javascript"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/JSCallback.java" target-dir="src/com/abbyy/mobile/rtr/javascript"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/JSConstants.java" target-dir="src/com/abbyy/mobile/rtr/javascript"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/JsonResult.java" target-dir="src/com/abbyy/mobile/rtr/javascript"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/data/DataCapture.java" target-dir="src/com/abbyy/mobile/rtr/javascript/data"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/data/DataCaptureResult.java" target-dir="src/com/abbyy/mobile/rtr/javascript/data"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/data/Settings.java" target-dir="src/com/abbyy/mobile/rtr/javascript/data"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/data/SettingsParser.java" target-dir="src/com/abbyy/mobile/rtr/javascript/data"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/image/CropSettings.java" target-dir="src/com/abbyy/mobile/rtr/javascript/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/image/Destination.java" target-dir="src/com/abbyy/mobile/rtr/javascript/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/image/DetectDocumentBoundarySettings.java" target-dir="src/com/abbyy/mobile/rtr/javascript/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/image/ExportSettings.java" target-dir="src/com/abbyy/mobile/rtr/javascript/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/image/ExportType.java" target-dir="src/com/abbyy/mobile/rtr/javascript/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/image/ImagingCore.java" target-dir="src/com/abbyy/mobile/rtr/javascript/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/image/ImagingResult.java" target-dir="src/com/abbyy/mobile/rtr/javascript/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/image/PdfSettings.java" target-dir="src/com/abbyy/mobile/rtr/javascript/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/image/QualityAssessmentForOcrSettings.java" target-dir="src/com/abbyy/mobile/rtr/javascript/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/image/RotateSettings.java" target-dir="src/com/abbyy/mobile/rtr/javascript/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/image/SettingsParser.java" target-dir="src/com/abbyy/mobile/rtr/javascript/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/text/TextRecognition.java" target-dir="src/com/abbyy/mobile/rtr/javascript/text"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/text/TextRecognitionResult.java" target-dir="src/com/abbyy/mobile/rtr/javascript/text"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/text/Settings.java" target-dir="src/com/abbyy/mobile/rtr/javascript/text"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/text/SettingsParser.java" target-dir="src/com/abbyy/mobile/rtr/javascript/text"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/utils/BackgroundWorker.java" target-dir="src/com/abbyy/mobile/rtr/javascript/utils"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/utils/FileUtils.java" target-dir="src/com/abbyy/mobile/rtr/javascript/utils"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/utils/RectUtils.java" target-dir="src/com/abbyy/mobile/rtr/javascript/utils"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/utils/ImageUri.java" target-dir="src/com/abbyy/mobile/rtr/javascript/utils"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/utils/UriScheme.java" target-dir="src/com/abbyy/mobile/rtr/javascript/utils"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/javascript/utils/SettingsParserUtils.java" target-dir="src/com/abbyy/mobile/rtr/javascript/utils"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/RtrPlugin.java" target-dir="src/com/abbyy/mobile/rtr/cordova"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/RtrManager.java" target-dir="src/com/abbyy/mobile/rtr/cordova"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/ResourcesUtils.java" target-dir="src/com/abbyy/mobile/rtr/cordova"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/DataCaptureScenario.java" target-dir="src/com/abbyy/mobile/rtr/cordova"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/exceptions/InitializationException.java" target-dir="src/com/abbyy/mobile/rtr/cordova/exceptions"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/image/ExportType.java" target-dir="src/com/abbyy/mobile/rtr/cordova/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/image/Page.java" target-dir="src/com/abbyy/mobile/rtr/cordova/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/image/MultiPagesProcessor.java" target-dir="src/com/abbyy/mobile/rtr/cordova/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/image/MultiCaptureResult.java" target-dir="src/com/abbyy/mobile/rtr/cordova/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/image/ImageCaptureResult.java" target-dir="src/com/abbyy/mobile/rtr/cordova/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/image/ImageCaptureSettings.java" target-dir="src/com/abbyy/mobile/rtr/cordova/image"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/utils/ImageUtils.java" target-dir="src/com/abbyy/mobile/rtr/cordova/utils"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/utils/TextUtils.java" target-dir="src/com/abbyy/mobile/rtr/cordova/utils"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/utils/DataUtils.java" target-dir="src/com/abbyy/mobile/rtr/cordova/utils"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/activities/ImageCaptureActivity.java" target-dir="src/com/abbyy/mobile/rtr/cordova/activities"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/activities/DataCaptureActivity.java" target-dir="src/com/abbyy/mobile/rtr/cordova/activities"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/activities/TextCaptureActivity.java" target-dir="src/com/abbyy/mobile/rtr/cordova/activities"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/activities/BaseActivity.java" target-dir="src/com/abbyy/mobile/rtr/cordova/activities"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/settings/LanguagesSettingActivity.java" target-dir="src/com/abbyy/mobile/rtr/cordova/settings"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/surfaces/BaseSurfaceView.java" target-dir="src/com/abbyy/mobile/rtr/cordova/surfaces"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/surfaces/DataCaptureSurfaceView.java" target-dir="src/com/abbyy/mobile/rtr/cordova/surfaces"/> <source-file src="src/android/java/com/abbyy/mobile/rtr/cordova/surfaces/TextCaptureSurfaceView.java" target-dir="src/com/abbyy/mobile/rtr/cordova/surfaces"/> <resource-file src="src/android/res/layout/activity_capture.xml" target="res/layout/activity_capture.xml"/> <resource-file src="src/android/res/layout/activity_image_capture.xml" target="res/layout/activity_image_capture.xml"/> <resource-file src="src/android/res/layout/ic_dialog_progress.xml" target="res/layout/ic_dialog_progress.xml"/> <resource-file src="src/android/res/layout/scenarios_list_item.xml" target="res/layout/scenarios_list_item.xml"/> <resource-file src="src/android/res/layout/languages_setting_activity.xml" target="res/layout/languages_setting_activity.xml"/> <resource-file src="src/android/res/anim/from_left_to_right.xml" target="res/anim/from_left_to_right.xml"/> <resource-file src="src/android/res/anim/from_right_to_left.xml" target="res/anim/from_right_to_left.xml"/> <resource-file src="src/android/res/drawable/ic_close_24dp.xml" target="res/drawable/ic_close_24dp.xml"/> <resource-file src="src/android/res/drawable/ic_flash_on_24dp.xml" target="res/drawable/ic_flash_on_24dp.xml"/> <resource-file src="src/android/res/drawable/ic_flash_off_24dp.xml" target="res/drawable/ic_flash_off_24dp.xml"/> <resource-file src="src/android/res/values/attrs.xml" target="res/values/attrs.xml"/> <resource-file src="src/android/res/values/colors.xml" target="res/values/colors.xml"/> <resource-file src="src/android/res/values/dimens.xml" target="res/values/dimens.xml"/> <resource-file src="src/android/res/values/strings.xml" target="res/values/strings.xml"/> <resource-file src="src/android/res/values/styles.xml" target="res/values/styles.xml"/> <!-- Gradle extra settings: --> <framework src="src/android/build-extras.gradle" custom="true" type="gradleReference" /> </platform> <!-- ios --> <platform name="ios"> <info>Thank you for choosing ABBYY Mobile Capture SDK. To get started: * Request ABBYY Mobile Capture trial version on the ABBYY website: https://www.abbyy.com/mobile-capture-sdk/#request-demo. * Copy assets and the license file (`MobileCapture.License`) to `www/rtr_assets` in your project. * Copy iOS frameworks (`AbbyyRtrSDK.framework` and other modules) to `libs/ios`. * Add `libs/ios` to linker search paths: ** In `platforms/ios/cordova/build.xcconfig`, add `FRAMEWORK_SEARCH_PATHS = "../../libs/ios"`. * Build and run. Don't forget to specify your Development Team and Legacy Build System for Xcode 10+: ** `cordova build ios --buildFlag="-UseModernBuildSystem=0" --buildFlag="DEVELOPMENT_TEAM=YOUR_TEAM"` ** `cordova run ios --buildFlag="-UseModernBuildSystem=0" --buildFlag="DEVELOPMENT_TEAM=YOUR_TEAM"` * Enjoy using ABBYY Mobile Capture SDK :) Thank you!</info> <config-file target="config.xml" parent="/*"> <feature name="AbbyyRtrSdk"> <param name="ios-package" value="RTRPlugin"/> </feature> </config-file> <header-file src="src/ios/RTRPlugin.h" /> <source-file src="src/ios/RTRPlugin.m" /> <header-file src="src/ios/RTRPluginConstants.h" /> <source-file src="src/ios/RTRPluginConstants.m" /> <header-file src="src/ios/RTRManager.h" /> <source-file src="src/ios/RTRManager.m" /> <header-file src="src/ios/RTRDataCaptureScenario.h" /> <source-file src="src/ios/RTRDataCaptureScenario.m" /> <header-file src="src/ios/CDVPluginResult+RTRPluginResult.h" /> <source-file src="src/ios/CDVPluginResult+RTRPluginResult.m" /> <header-file src="src/ios/NSString+RTRPluginLocalization.h" /> <source-file src="src/ios/NSString+RTRPluginLocalization.m" /> <header-file src="src/ios/UIButton+RecognitionLanguages.h" /> <source-file src="src/ios/UIButton+RecognitionLanguages.m" /> <header-file src="src/ios/RTRSelectedAreaView.h" /> <source-file src="src/ios/RTRSelectedAreaView.m" /> <header-file src="src/ios/RTRProgressView.h" /> <source-file src="src/ios/RTRProgressView.m" /> <resource-file src="src/ios/RTRProgressView.xib" /> <header-file src="src/ios/RTRExportUtilities.h" /> <source-file src="src/ios/RTRExportUtilities.m" /> <header-file src="src/ios/RTRTextCaptureViewController.h" /> <source-file src="src/ios/RTRTextCaptureViewController.m" /> <header-file src="src/ios/RTRDataCaptureViewController.h" /> <source-file src="src/ios/RTRDataCaptureViewController.m" /> <header-file src="src/ios/RTRViewController.h" /> <source-file src="src/ios/RTRViewController.m" /> <header-file src="src/ios/RTRImageCaptureViewController.h" /> <source-file src="src/ios/RTRImageCaptureViewController.m" /> <header-file src="src/ios/NSDictionary+RTRSettings.h" /> <source-file src="src/ios/NSDictionary+RTRSettings.m" /> <header-file src="src/ios/RTRCoreApiPluginAdapter.h" /> <source-file src="src/ios/RTRCoreApiPluginAdapter.m" /> <header-file src="src/ios/RTRImageCapturePluginAdapter.h" /> <source-file src="src/ios/RTRImageCapturePluginAdapter.m" /> <resource-file src="src/ios/RTRViewController.xib" /> <!-- Localization --> <resource-file src="src/ios/strings/rtr_localizable_en.json" target="rtr_localizable_en.json"/> <!-- Icons --> <resource-file src="src/ios/Icons/ui_close_button/ui_close_button.png" target="Icons/ui_close_button.png" /> <resource-file src="src/ios/Icons/ui_close_button/ui_close_button@2x.png" target="Icons/ui_close_button@2x.png" /> <resource-file src="src/ios/Icons/ui_close_button/ui_close_button@3x.png" target="Icons/ui_close_button@3x.png" /> <resource-file src="src/ios/Icons/ui_flash_off_button/ui_flash_off_button.png" target="Icons/ui_flash_off_button.png" /> <resource-file src="src/ios/Icons/ui_flash_off_button/ui_flash_off_button@2x.png" target="Icons/ui_flash_off_button@2x.png" /> <resource-file src="src/ios/Icons/ui_flash_off_button/ui_flash_off_button@3x.png" target="Icons/ui_flash_off_button@3x.png" /> <resource-file src="src/ios/Icons/ui_flash_on_button/ui_flash_on_button.png" target="Icons/ui_flash_on_button.png" /> <resource-file src="src/ios/Icons/ui_flash_on_button/ui_flash_on_button@2x.png" target="Icons/ui_flash_on_button@2x.png" /> <resource-file src="src/ios/Icons/ui_flash_on_button/ui_flash_on_button@3x.png" target="Icons/ui_flash_on_button@3x.png" /> <hook type="after_platform_add" src="scripts/ios_copy_frameworks.js" /> <hook type="after_plugin_add" src="scripts/ios_copy_frameworks.js" /> <framework src="CoreGraphics.framework" /> <framework src="CoreMedia.framework" /> <framework src="CoreVideo.framework" /> <framework src="UIKit.framework" /> <framework src="QuartzCore.framework" /> <framework src="Security.framework" /> <framework src="AVFoundation.framework" /> <framework src="AbbyyRtrSDK.framework"/> <framework src="AbbyyUI.framework"/> <preference name="CAMERA_USAGE_DESCRIPTION" default="NSCameraUsageDescription" /> <config-file target="*-Info.plist" parent="NSCameraUsageDescription"> <string>$CAMERA_USAGE_DESCRIPTION</string> </config-file> <preference name="PHOTOLIBRARY_USAGE_DESCRIPTION" default="NSPhotoLibraryUsageDescription" /> <config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription"> <string>$PHOTOLIBRARY_USAGE_DESCRIPTION</string> </config-file> </platform> </plugin>