Skip to content

Commit 6d0ced2

Browse files
Release 55.0.3 (#191)
1 parent a4e2ee0 commit 6d0ced2

File tree

11 files changed

+42
-47
lines changed

11 files changed

+42
-47
lines changed

example/RNExampleApp/add_license_key.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,13 @@
22
const fs = require('fs');
33
const path = require('path');
44

5+
// Step 1: Read the environment variable
6+
const envValue = process.env.MOBILE_SDK_DEVEX_LICENSE_KEY;
7+
8+
// Step 2: Define the file path
59
const filePath = path.join(__dirname, 'src/license.js');
610

11+
// Step 3: Check if the file exists
712
if (!fs.existsSync(filePath)) {
813
// If the file doesn't exist, create it with an initial placeholder content
914
fs.writeFileSync(filePath, `
@@ -12,3 +17,14 @@ const license = '{REPLACE_YOUR_LICENSE_KEY}';
1217
module.exports = { license };
1318
`);
1419
}
20+
21+
// Step 4: Read the file content
22+
let fileContent = fs.readFileSync(filePath, 'utf8');
23+
24+
// Step 5: Replace the placeholder with the environment variable value
25+
const updatedContent = fileContent.replace(/{REPLACE_YOUR_LICENSE_KEY}/g, envValue);
26+
27+
// Step 6: Write the updated content back to the file
28+
fs.writeFileSync(filePath, updatedContent);
29+
30+
console.log('File content updated successfully!');

example/RNExampleApp/android/app/build.gradle

Lines changed: 1 addition & 1 deletion
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 "54.8.0"
90+
versionName "55.0.3"
9191
multiDexEnabled true
9292

9393
buildConfigField("boolean", "REACT_NATIVE_UNSTABLE_USE_RUNTIME_SCHEDULER_ALWAYS", (findProperty("reactNative.unstable_useRuntimeSchedulerAlways") ?: true).toString())

example/RNExampleApp/config/BarcodeConfig.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export default {
33
"pluginConfig": {
44
"id": "barcode",
55
"barcodeConfig": {
6+
"fastProcessMode": true,
67
"parseAAMVA": false,
78
"barcodeFormats": [
89
"ALL"

example/RNExampleApp/config/Barcode_PDF417Config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export default {
33
"pluginConfig": {
44
"id": "barcode-pdf417-aamva",
55
"barcodeConfig": {
6+
"fastProcessMode": true,
67
"barcodeFormats": [
78
"PDF_417"
89
],

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
inputPaths = (
273273
"${PODS_ROOT}/Target Support Files/Pods-RNExampleApp/Pods-RNExampleApp-resources.sh",
274274
"${PODS_CONFIGURATION_BUILD_DIR}/React-Core/AccessibilityResources.bundle",
275-
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_54.8.0/Framework/AnylineResources.bundle",
275+
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_55.0.3/Framework/AnylineResources.bundle",
276276
);
277277
name = "[CP] Copy Pods Resources";
278278
outputPaths = (
@@ -347,7 +347,7 @@
347347
INFOPLIST_FILE = RNExampleApp/Info.plist;
348348
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
349349
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
350-
MARKETING_VERSION = 54.8.0;
350+
MARKETING_VERSION = 55.0.3;
351351
OTHER_LDFLAGS = (
352352
"$(inherited)",
353353
"-ObjC",
@@ -380,7 +380,7 @@
380380
INFOPLIST_FILE = RNExampleApp/Info.plist;
381381
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
382382
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
383-
MARKETING_VERSION = 54.8.0;
383+
MARKETING_VERSION = 55.0.3;
384384
OTHER_LDFLAGS = (
385385
"$(inherited)",
386386
"-ObjC",

example/RNExampleApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-example-app",
3-
"version": "54.8.0",
3+
"version": "55.0.3",
44
"private": true,
55
"scripts": {
66
"initProject": "yarn add expo && yarn add ../../plugin",

example/RNExampleApp/src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ LogBox.ignoreAllLogs(true);
5151

5252
const scrollRef = React.createRef();
5353

54-
const demoAppLicenseKey = license; //replace license key in license.js
54+
const demoAppLicenseKey = license;
5555

5656
class Anyline extends Component {
5757
overTheAirUpdateIsEnabled = false;

plugin/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ repositories {
6161

6262
dependencies {
6363
implementation fileTree(dir: "libs", include: ["*.jar"])
64-
implementation 'io.anyline:anylinesdk:54.8.0'
64+
implementation 'io.anyline:anylinesdk:55.0.3'
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/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
66
<uses-permission android:name="android.permission.CAMERA" />
77

8-
<application android:allowBackup="true">
8+
<application>
99
<activity
1010
android:name=".ScanActivity"
1111
android:screenOrientation="portrait" />

plugin/ios/AnylineReact.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Pod::Spec.new do |s|
1818
s.source = { :git => "https://github.com/Anyline/anyline-ocr-react-native-module.git", :tag => "#{s.version}" }
1919

2020
s.source_files = "*.{h,m}"
21-
s.dependency "Anyline", "54.8.0"
21+
s.dependency "Anyline", "55.0.3"
2222
s.dependency "React"
2323

2424
end

0 commit comments

Comments
 (0)