Skip to content

Commit 3d36d24

Browse files
authored
Release 51.3.1 (#172)
1 parent c6e0e85 commit 3d36d24

File tree

17 files changed

+115
-62
lines changed

17 files changed

+115
-62
lines changed

README.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@ The plugin enables the connection to the SDK via React-Native.
1717
* `README.md` - This readme.
1818
* `LICENSE.md` - The license file.
1919

20-
## Getting Started
20+
## Documentation Resources
2121

22-
Check out our getting-started section here: https://documentation.anyline.com/react-native-plugin-component/latest/getting-started.html
22+
- [Getting Started](https://documentation.anyline.com/react-native-plugin-component/latest/getting-started.html)
23+
- [Release Notes](https://documentation.anyline.com/react-native-plugin-component/latest/release-notes.html)
2324

24-
## Documentation
25+
## Get Help (Support)
2526

26-
Check out our developer guide here: https://documentation.anyline.com/react-native-plugin-component/latest/index.html
27+
We don't actively monitor issues raised on Github, instead please open a support request
28+
using the [Anyline Helpdesk](https://support.anyline.com).
2729

2830
## License
2931

30-
See LICENSE file.
32+
See LICENSE file.

example/RNExampleApp/ReadMe.md

+42-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,48 @@ IMPORTANT: Before running the example app, replace the string defined in `demoAp
2121

2222
### Android
2323

24-
Either run with `react-native run-android` or open the Android folder with Android Studio, sync gradle and deploy to device
24+
To run the Anyline React Native Developer Examples App on Android:
25+
26+
* `cd example/RNExampleApp`
27+
* `npx react-native run-android` or `npx react-native@latest run-android`
28+
29+
Alternatively, open the folder `example/RNExampleApp` with Android Studio, sync gradle, and deploy to device. Make sure you're either running Metro (run `npx react-native start`) or that your bundle is packaged correctly for release.
30+
31+
To testing the release build of the app:
32+
33+
* `cd example/RNExampleApp`
34+
* `npm run android --mode="release"` or `yarn android --mode release`
35+
36+
To generate a release AAB:
37+
38+
* `npx react-native build-android --mode=release`
39+
40+
In case you run any issues, run the following commands to uninstall and reinstall the necessary dependencies:
41+
42+
* `cd example/RNExampleApp`
43+
* `yarn install` or `npm install`
44+
* `yarn run reinstall` or `npm run reinstall`
45+
46+
How to generate a debug apk (in `example/RNExampleApp/android/app/build/outputs/apk/debug/app-debug.apk`):
47+
48+
```shell
49+
npx react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
50+
cd android && ./gradlew assembleDebug
51+
```
52+
53+
54+
#### Troubleshooting
55+
56+
* Make sure you have the latest/correct version of node installed
57+
* If you get stuck completely on Android, go into the "android" directory and do a gradle clean: `cd example/RNExampleApp/android/`, then `./gradlew clean`.
58+
* Examples app won't build or run correctly on iOS? Execute these commands from `example/RNExampleApp`:
59+
* `rm -rf node_modules package-lock.json ios/Pods ios/Podfile.lock ios/RNExampleApp.xcworkspace`
60+
* `yarn cache clean`
61+
* `yarn reinstall`
62+
* `yarn ios` (this does `expo run:ios --device`)
63+
64+
TIP: when debugging issues, try and build and run the examples app with the xcworkspace on Xcode. If there are issues, they will have more actionable steps.
2565

2666
### iOS
2767

28-
Open with XCode and build/deploy to device.
68+
Open `example/RNExampleApp/iOS/RNExampleApp.xcworkspace` with XCode and build/deploy to device.

example/RNExampleApp/android/app/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ android {
8787
minSdkVersion rootProject.ext.minSdkVersion
8888
targetSdkVersion rootProject.ext.targetSdkVersion
8989
versionCode 5
90-
versionName "51.1.0"
90+
versionName "51.3.1"
9191
multiDexEnabled true
9292

9393
buildConfigField("boolean", "REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS", (findProperty("reactNative.unstable_useRuntimeSchedulerAlways") ?: true).toString())
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<resources>
2-
<string name="app_name">RNExampleApp</string>
2+
<string name="app_name">Anyline React Native Developer Examples</string>
33
</resources>

example/RNExampleApp/android/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ allprojects {
2323
google()
2424
mavenCentral()
2525
maven { url 'https://www.jitpack.io' }
26-
maven { url 'https://anylinesdk.blob.core.windows.net/maven/' }
26+
maven { url 'https://mobile-sdk-android.anyline.io/release/' }
2727
maven {
2828
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
2929
url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android'))

example/RNExampleApp/ios/Podfile

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ platform :ios, '12.4'
44
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
55
require_relative '../node_modules/react-native/scripts/react_native_pods'
66

7-
use_react_native!(
8-
:flipper_configuration => FlipperConfiguration.enabled(["Debug"], { 'Flipper' => '0.203.0' }),
9-
)
7+
use_react_native!
108
target 'RNExampleApp' do
119

1210
# originally '../node_modules/anyline-ocr-react-native-module/ios'

example/RNExampleApp/ios/RNExampleApp.xcodeproj/project.pbxproj

+22-13
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB11A68108700A75B9A /* LaunchScreen.xib */; };
1212
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 13B07FB51A68108700A75B9A /* Images.xcassets */; };
1313
13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; };
14+
C2CD7DFC2B0C9835008D7B5E /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = C2CD7DFB2B0C9835008D7B5E /* main.jsbundle */; };
1415
CB5AFDA97FFD6EE6C9855F3B /* libPods-RNExampleApp.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 8BFA47AADA9F8ACCB61B613B /* libPods-RNExampleApp.a */; };
15-
DF3316B024BDEBD90018AC5E /* main.jsbundle in Resources */ = {isa = PBXBuildFile; fileRef = DF3316AF24BDEBD90018AC5E /* main.jsbundle */; };
1616
FA890E4F132C426FA299B3EE /* noop-file.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE894095EAC5430EA740D7E6 /* noop-file.swift */; };
1717
/* End PBXBuildFile section */
1818

@@ -38,10 +38,10 @@
3838
A7ED9B19236344F400960E39 /* RNExampleApp-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "RNExampleApp-Bridging-Header.h"; sourceTree = "<group>"; };
3939
AC8870222FD454D589A2AACF /* Pods-RNExampleAppTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNExampleAppTests.release.xcconfig"; path = "Target Support Files/Pods-RNExampleAppTests/Pods-RNExampleAppTests.release.xcconfig"; sourceTree = "<group>"; };
4040
AE894095EAC5430EA740D7E6 /* noop-file.swift */ = {isa = PBXFileReference; explicitFileType = undefined; fileEncoding = 4; includeInIndex = 0; lastKnownFileType = sourcecode.swift; name = "noop-file.swift"; path = "RNExampleApp/noop-file.swift"; sourceTree = "<group>"; };
41+
C2CD7DFB2B0C9835008D7B5E /* main.jsbundle */ = {isa = PBXFileReference; lastKnownFileType = text; name = main.jsbundle; path = "../node_modules/expo-dev-launcher/ios/main.jsbundle"; sourceTree = "<group>"; };
4142
C7BE463B35863C4FF159AF64 /* Pods-RNExampleApp.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNExampleApp.debug.xcconfig"; path = "Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp.debug.xcconfig"; sourceTree = "<group>"; };
4243
D6503512B0087E9293DF3899 /* Pods-RNExampleApp-tvOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNExampleApp-tvOS.debug.xcconfig"; path = "Target Support Files/Pods-RNExampleApp-tvOS/Pods-RNExampleApp-tvOS.debug.xcconfig"; sourceTree = "<group>"; };
4344
D94EA982436299AD85AD92A8 /* libPods-RNExampleAppTests.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-RNExampleAppTests.a"; sourceTree = BUILT_PRODUCTS_DIR; };
44-
DF3316AF24BDEBD90018AC5E /* main.jsbundle */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = main.jsbundle; sourceTree = "<group>"; };
4545
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
4646
ED2971642150620600B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS12.0.sdk/System/Library/Frameworks/JavaScriptCore.framework; sourceTree = DEVELOPER_DIR; };
4747
F00A42543CEE07ABA44A7F94 /* Pods-RNExampleApp-tvOSTests.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-RNExampleApp-tvOSTests.release.xcconfig"; path = "Target Support Files/Pods-RNExampleApp-tvOSTests/Pods-RNExampleApp-tvOSTests.release.xcconfig"; sourceTree = "<group>"; };
@@ -80,7 +80,7 @@
8080
isa = PBXGroup;
8181
children = (
8282
1797ADC7241CFCF900B339CB /* RNExampleApp.entitlements */,
83-
DF3316AF24BDEBD90018AC5E /* main.jsbundle */,
83+
C2CD7DFB2B0C9835008D7B5E /* main.jsbundle */,
8484
13B07FAF1A68108700A75B9A /* AppDelegate.h */,
8585
13B07FB01A68108700A75B9A /* AppDelegate.m */,
8686
13B07FB51A68108700A75B9A /* Images.xcassets */,
@@ -217,9 +217,9 @@
217217
isa = PBXResourcesBuildPhase;
218218
buildActionMask = 2147483647;
219219
files = (
220+
C2CD7DFC2B0C9835008D7B5E /* main.jsbundle in Resources */,
220221
13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */,
221222
13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */,
222-
DF3316B024BDEBD90018AC5E /* main.jsbundle in Resources */,
223223
);
224224
runOnlyForDeploymentPostprocessing = 0;
225225
};
@@ -234,7 +234,7 @@
234234
inputPaths = (
235235
"${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-resources.sh",
236236
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
237-
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_51.1.0/Framework/AnylineResources.bundle",
237+
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_51.3.1/Framework/AnylineResources.bundle",
238238
);
239239
name = "[CP] Copy Pods Resources";
240240
outputPaths = (
@@ -267,17 +267,11 @@
267267
);
268268
inputPaths = (
269269
"${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-frameworks.sh",
270-
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-DoubleConversion/double-conversion.framework/double-conversion",
271-
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Flipper-Glog/glog.framework/glog",
272-
"${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL-Universal/OpenSSL.framework/OpenSSL",
273270
"${PODS_XCFRAMEWORKS_BUILD_DIR}/hermes-engine/Pre-built/hermes.framework/hermes",
274271
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Anyline/Anyline.framework/Anyline",
275272
);
276273
name = "[CP] Embed Pods Frameworks";
277274
outputPaths = (
278-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/double-conversion.framework",
279-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/glog.framework",
280-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework",
281275
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/hermes.framework",
282276
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Anyline.framework",
283277
);
@@ -371,7 +365,7 @@
371365
INFOPLIST_FILE = RNExampleApp/Info.plist;
372366
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
373367
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
374-
MARKETING_VERSION = 50.0.0;
368+
MARKETING_VERSION = 51.3.1;
375369
OTHER_LDFLAGS = (
376370
"$(inherited)",
377371
"-ObjC",
@@ -404,7 +398,7 @@
404398
INFOPLIST_FILE = RNExampleApp/Info.plist;
405399
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
406400
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
407-
MARKETING_VERSION = 50.0.0;
401+
MARKETING_VERSION = 51.3.1;
408402
OTHER_LDFLAGS = (
409403
"$(inherited)",
410404
"-ObjC",
@@ -460,6 +454,7 @@
460454
GCC_PREPROCESSOR_DEFINITIONS = (
461455
"DEBUG=1",
462456
"$(inherited)",
457+
_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION,
463458
);
464459
GCC_SYMBOLS_PRIVATE_EXTERN = NO;
465460
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
@@ -473,6 +468,11 @@
473468
ONLY_ACTIVE_ARCH = YES;
474469
OTHER_CFLAGS = "$(inherited)";
475470
OTHER_CPLUSPLUSFLAGS = "$(inherited)";
471+
OTHER_LDFLAGS = (
472+
"$(inherited)",
473+
"-Wl",
474+
"-ld_classic",
475+
);
476476
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
477477
SDKROOT = iphoneos;
478478
};
@@ -512,6 +512,10 @@
512512
"EXCLUDED_ARCHS[sdk=iphonesimulator*]" = i386;
513513
GCC_C_LANGUAGE_STANDARD = gnu99;
514514
GCC_NO_COMMON_BLOCKS = YES;
515+
GCC_PREPROCESSOR_DEFINITIONS = (
516+
"$(inherited)",
517+
_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION,
518+
);
515519
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
516520
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
517521
GCC_WARN_UNDECLARED_SELECTOR = YES;
@@ -522,6 +526,11 @@
522526
MTL_ENABLE_DEBUG_INFO = NO;
523527
OTHER_CFLAGS = "$(inherited)";
524528
OTHER_CPLUSPLUSFLAGS = "$(inherited)";
529+
OTHER_LDFLAGS = (
530+
"$(inherited)",
531+
"-Wl",
532+
"-ld_classic",
533+
);
525534
REACT_NATIVE_PATH = "${PODS_ROOT}/../../node_modules/react-native";
526535
SDKROOT = iphoneos;
527536
VALIDATE_PRODUCT = YES;
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="7702" systemVersion="14D136" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES">
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22155" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES">
3+
<device id="retina6_12" orientation="portrait" appearance="light"/>
34
<dependencies>
45
<deployment identifier="iOS"/>
5-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="7701"/>
6-
<capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22131"/>
7+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
78
</dependencies>
89
<objects>
910
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
@@ -12,20 +13,20 @@
1213
<rect key="frame" x="0.0" y="0.0" width="480" height="480"/>
1314
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
1415
<subviews>
15-
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
16+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Powered by React Native" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="8ie-xW-0ye">
1617
<rect key="frame" x="20" y="439" width="441" height="21"/>
1718
<fontDescription key="fontDescription" type="system" pointSize="17"/>
18-
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
19+
<color key="textColor" systemColor="darkTextColor"/>
1920
<nil key="highlightedColor"/>
2021
</label>
21-
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="RNExampleApp" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
22-
<rect key="frame" x="20" y="140" width="441" height="43"/>
22+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="Anyline RN Dev Examples" textAlignment="center" lineBreakMode="middleTruncation" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="kId-c2-rCX">
23+
<rect key="frame" x="29" y="140" width="424" height="43"/>
2324
<fontDescription key="fontDescription" type="boldSystem" pointSize="36"/>
24-
<color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
25+
<color key="textColor" systemColor="darkTextColor"/>
2526
<nil key="highlightedColor"/>
2627
</label>
2728
</subviews>
28-
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
29+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
2930
<constraints>
3031
<constraint firstItem="kId-c2-rCX" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="bottom" multiplier="1/3" constant="1" id="5cJ-9S-tgC"/>
3132
<constraint firstAttribute="centerX" secondItem="kId-c2-rCX" secondAttribute="centerX" id="Koa-jz-hwk"/>
@@ -39,4 +40,9 @@
3940
<point key="canvasLocation" x="548" y="455"/>
4041
</view>
4142
</objects>
43+
<resources>
44+
<systemColor name="darkTextColor">
45+
<color white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
46+
</systemColor>
47+
</resources>
4248
</document>

example/RNExampleApp/ios/RNExampleApp/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<key>CFBundleDevelopmentRegion</key>
66
<string>en</string>
77
<key>CFBundleDisplayName</key>
8-
<string>RNExampleApp</string>
8+
<string>Anyline RN Dev Examples</string>
99
<key>CFBundleExecutable</key>
1010
<string>$(EXECUTABLE_NAME)</string>
1111
<key>CFBundleIdentifier</key>

example/RNExampleApp/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-example-app",
3-
"version": "51.1.0",
3+
"version": "51.3.1",
44
"private": true,
55
"scripts": {
66
"initProject": "yarn add expo && yarn add ../../plugin",
@@ -22,7 +22,7 @@
2222
"hermes-engine": "^0.11.0",
2323
"jsc-android": "^241213.1.0",
2424
"react": "18.2.0",
25-
"react-native": "0.72.3"
25+
"react-native": "0.72.7"
2626
},
2727
"description": "React Native example app",
2828
"main": "index.js",

plugin/android/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ android {
5555

5656
repositories {
5757
maven {
58-
url 'https://anylinesdk.blob.core.windows.net/maven/'
58+
url 'https://mobile-sdk-android.anyline.io/release/'
5959
}
6060
}
6161

6262
dependencies {
6363
implementation fileTree(dir: "libs", include: ["*.jar"])
64-
implementation 'io.anyline:anylinesdk:51.1.0'
64+
implementation 'io.anyline:anylinesdk:51.3.1'
6565
implementation "com.facebook.react:react-native:+"
6666
implementation("com.google.android.material:material:1.9.0")
6767
implementation 'androidx.multidex:multidex:2.0.1'

plugin/android/src/main/java/com/anyline/reactnative/AnylineSDKPlugin.java

+7-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
import java.io.IOException;
2121
import java.util.HashMap;
2222

23-
import io.anyline.products.AnylineUpdater;
24-
import io.anyline.trainer.AssetContext;
23+
import io.anyline2.core.ScanController;
24+
import io.anyline2.legacy.products.AnylineUpdater;
25+
import io.anyline2.legacy.trainer.AssetContext;
2526
import io.anyline2.AnylineSdk;
2627
import io.anyline2.CacheConfig;
2728
import io.anyline2.CorrectedResultReporting;
@@ -100,9 +101,10 @@ public void update(
100101

101102
if (assetContext != null) {
102103
AnylineUpdater.update(
103-
reactContext,
104-
assetContext,
105-
new AnylineUpdateDelegateImpl(reactContext, onUpdateError, onUpdateFinished)
104+
reactContext,
105+
assetContext,
106+
new AnylineUpdateDelegateImpl(reactContext, onUpdateError, onUpdateFinished),
107+
ScanController.PluginType.OCR
106108
);
107109
}
108110
} catch (JSONException e) {

plugin/android/src/main/java/com/anyline/reactnative/FeedbackConfig.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import java.io.IOException;
88

9-
import io.anyline.util.SoundUtil;
9+
import io.anyline2.util.SoundUtil;
1010

1111
public class FeedbackConfig {
1212
private SoundUtil soundUtil;

0 commit comments

Comments
 (0)