Skip to content

Commit 8a9d6ef

Browse files
release 54.5.1 (#186)
1 parent d2c9dea commit 8a9d6ef

File tree

8 files changed

+37
-17
lines changed

8 files changed

+37
-17
lines changed

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 "54.4.0"
90+
versionName "54.5.1"
9191
multiDexEnabled true
9292

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

example/RNExampleApp/ios/Podfile

+20
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,25 @@ target 'RNExampleApp' do
2020
config.build_settings["DEVELOPMENT_TEAM"] = "35RHL53WRE"
2121
end
2222
end
23+
bitcode_strip_path = `xcrun --find bitcode_strip`.chop!
24+
def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
25+
framework_path = File.join(Dir.pwd, framework_relative_path)
26+
command = "#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}"
27+
puts "Stripping bitcode: #{command}"
28+
system(command)
29+
end
30+
31+
framework_paths = [
32+
"Pods/LogRocket/LogRocket.xcframework/ios-arm64/LogRocket.framework/LogRocket",
33+
"Pods/hermes-engine/destroot/Library/Frameworks/macosx/hermes.framework/hermes",
34+
"Pods/hermes-engine/destroot/Library/Frameworks/macosx/hermes.framework/Versions/Current/hermes",
35+
"Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64/hermes.framework/hermes",
36+
"Pods/hermes-engine/destroot/Library/Frameworks/universal/hermes.xcframework/ios-arm64_x86_64-maccatalyst/hermes.framework/hermes"
37+
]
38+
39+
framework_paths.each do |framework_relative_path|
40+
strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
41+
end
2342
end
2443
end
44+

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

+3-3
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.4.0/Framework/AnylineResources.bundle",
275+
"${PODS_ROOT}/Anyline/AnylineSDK_iOS_54.5.0/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.4.0;
350+
MARKETING_VERSION = 54.5.1;
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.4.0;
383+
MARKETING_VERSION = 54.5.1;
384384
OTHER_LDFLAGS = (
385385
"$(inherited)",
386386
"-ObjC",

example/RNExampleApp/package.json

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

plugin/android/build.gradle

+1-1
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.4.0'
64+
implementation 'io.anyline:anylinesdk:54.5.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

+2-2
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ public void setupAnylineSDKWithCacheConfig(String license, boolean enableOffline
165165

166166
@ReactMethod
167167
public void initSdk(String license) {
168-
initSdk(license, false);
168+
initSdkWithCacheConfig(license, false);
169169
}
170170

171171
@ReactMethod
172-
public void initSdk(String license, boolean enableOfflineCache) {
172+
public void initSdkWithCacheConfig(String license, boolean enableOfflineCache) {
173173
CacheConfig.Preset cacheConfig = CacheConfig.Preset.Default.INSTANCE;
174174
if (enableOfflineCache) {
175175
cacheConfig = CacheConfig.Preset.OfflineLicenseEventCachingEnabled.INSTANCE;

plugin/ios/AnylineReact.podspec

+1-1
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.4.0"
21+
s.dependency "Anyline", "54.5.0"
2222
s.dependency "React"
2323

2424
end

plugin/package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
{
2-
"_from": "anyline-ocr-react-native-module@^54.4.0",
3-
"_id": "anyline-ocr-react-native-module@^54.4.0",
2+
"_from": "anyline-ocr-react-native-module@^54.5.1",
3+
"_id": "anyline-ocr-react-native-module@^54.5.1",
44
"_inBundle": false,
55
"_integrity": "sha512-BGi9zNkSsoxXywDBIqzgBRvKUBniQOJHDKBrozZubKthZNRBAj8Ry5tW0Me0yLXt/fauME//hbC0wsenfPJZqw==",
66
"_location": "/anyline-ocr-react-native-module",
77
"_phantomChildren": {},
88
"_requested": {
99
"type": "range",
1010
"registry": true,
11-
"raw": "anyline-ocr-react-native-module@^54.4.0",
11+
"raw": "anyline-ocr-react-native-module@^54.5.1",
1212
"name": "anyline-ocr-react-native-module",
1313
"escapedName": "anyline-ocr-react-native-module",
14-
"rawSpec": "^54.4.0",
14+
"rawSpec": "^54.5.1",
1515
"saveSpec": null,
16-
"fetchSpec": "^54.4.0"
16+
"fetchSpec": "^54.5.1"
1717
},
1818
"_requiredBy": [
1919
"/"
2020
],
21-
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-54.4.0.tgz",
21+
"_resolved": "https://registry.npmjs.org/anyline-ocr-react-native-module/-/anyline-ocr-react-native-module-54.5.1.tgz",
2222
"_shasum": "bacbcd260cc662244f59393ed81a6edba009b52c",
23-
"_spec": "anyline-ocr-react-native-module@^54.4.0",
23+
"_spec": "anyline-ocr-react-native-module@^54.5.1",
2424
"_where": "/Users/amiransari/Projects/anyline-ocr-react-native-module1/example/RNExampleApp",
2525
"bugs": {
2626
"url": "https://github.com/Anyline/anyline-ocr-react-native-module/issues"
@@ -47,5 +47,5 @@
4747
"type": "git",
4848
"url": "git+https://github.com/Anyline/anyline-ocr-react-native-module.git"
4949
},
50-
"version": "54.4.0"
50+
"version": "54.5.1"
5151
}

0 commit comments

Comments
 (0)