Skip to content

Commit a3320ab

Browse files
Merge pull request #6862 from bithyve/dev
Release 2.5.5
2 parents 3ac2582 + 1ed41d0 commit a3320ab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2513
-1800
lines changed

Gemfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
source 'https://rubygems.org'
22
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
33
ruby '>= 2.6.10'
4-
# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper
5-
# bound in the template on Cocoapods with next React Native release.
6-
gem 'cocoapods', '>= 1.13', '< 1.15'
7-
gem 'activesupport', '>= 6.1.7.5', '< 7.1.0'
4+
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
5+
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
6+
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
87
gem "fastlane", "~> 2.225.0"
98
gem 'xcodeproj', '< 1.26.0'
10-
gem 'concurrent-ruby', '<= 1.3.4'
11-
9+
gem 'concurrent-ruby', '< 1.3.4'
1210

1311

1412

android/app/build.gradle

Lines changed: 28 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ apply plugin: 'kotlin-android'
1010
*/
1111
react {
1212
/* Folders */
13-
// The root of your project, i.e. where "package.json" lives. Default is '..'
14-
// root = file("../")
15-
// The folder where the react-native NPM package is. Default is ../node_modules/react-native
16-
// reactNativeDir = file("../node_modules/react-native")
17-
// The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
18-
// codegenDir = file("../node_modules/@react-native/codegen")
19-
// The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
20-
// cliFile = file("../node_modules/react-native/cli.js")
13+
// The root of your project, i.e. where "package.json" lives. Default is '../..'
14+
// root = file("../../")
15+
// The folder where the react-native NPM package is. Default is ../../node_modules/react-native
16+
// reactNativeDir = file("../../node_modules/react-native")
17+
// The folder where the react-native Codegen package is. Default is ../../node_modules/@react-native/codegen
18+
// codegenDir = file("../../node_modules/@react-native/codegen")
19+
// The cli.js file which is the React Native CLI entrypoint. Default is ../../node_modules/react-native/cli.js
20+
// cliFile = file("../../node_modules/react-native/cli.js")
2121
/* Variants */
2222
// The list of variants to that are debuggable. For those we're going to
2323
// skip the bundling of the JS bundle and the assets. By default is just 'debug'.
@@ -48,6 +48,8 @@ react {
4848
//
4949
// The list of flags to pass to the Hermes compiler. By default is "-O", "-output-source-map"
5050
// hermesFlags = ["-O", "-output-source-map"]
51+
/* Autolinking */
52+
autolinkLibrariesWithApp()
5153
}
5254

5355
/**
@@ -76,8 +78,17 @@ android {
7678
pickFirst 'lib/arm64-v8a/libc++_shared.so'
7779
pickFirst 'lib/x86_64/libjsc.so'
7880
pickFirst 'lib/arm64-v8a/libjsc.so'
79-
}
80-
81+
exclude 'META-INF/DEPENDENCIES'
82+
exclude 'META-INF/LICENSE'
83+
exclude 'META-INF/LICENSE.txt'
84+
exclude 'META-INF/license.txt'
85+
exclude 'META-INF/NOTICE'
86+
exclude 'META-INF/NOTICE.txt'
87+
exclude 'META-INF/notice.txt'
88+
exclude 'META-INF/ASL2.0'
89+
exclude "lib/x86_64/libjnidispatch.so"
90+
}
91+
8192
ndkVersion rootProject.ext.ndkVersion
8293
buildToolsVersion rootProject.ext.buildToolsVersion
8394
compileSdkVersion rootProject.ext.compileSdkVersion
@@ -87,8 +98,8 @@ android {
8798
applicationId "io.hexawallet.keeper"
8899
minSdkVersion rootProject.ext.minSdkVersion
89100
targetSdkVersion rootProject.ext.targetSdkVersion
90-
versionCode 564
91-
versionName "2.5.4"
101+
versionCode 571
102+
versionName "2.5.5"
92103
missingDimensionStrategy 'react-native-camera', 'general'
93104
missingDimensionStrategy 'store', 'play'
94105
multiDexEnabled true
@@ -144,17 +155,6 @@ android {
144155
resValue "string", "build_config_package", "io.hexawallet.keeper"
145156
}
146157
}
147-
148-
packagingOptions {
149-
exclude 'META-INF/DEPENDENCIES'
150-
exclude 'META-INF/LICENSE'
151-
exclude 'META-INF/LICENSE.txt'
152-
exclude 'META-INF/license.txt'
153-
exclude 'META-INF/NOTICE'
154-
exclude 'META-INF/NOTICE.txt'
155-
exclude 'META-INF/notice.txt'
156-
exclude 'META-INF/ASL2.0'
157-
}
158158
}
159159

160160

@@ -164,9 +164,11 @@ android {
164164

165165
dependencies {
166166
// The version of react-native is set by the React Native Gradle Plugin
167+
implementation 'com.google.mlkit:barcode-scanning:17.3.0'
167168
implementation("com.facebook.react:react-android")
168-
169-
implementation 'com.facebook.fresco:animated-gif:2.6.0'
169+
implementation 'com.facebook.fresco:fresco:3.6.0'
170+
implementation 'com.facebook.fresco:animated-gif:3.6.0'
171+
implementation 'com.facebook.fresco:imagepipeline-okhttp3:3.6.0'
170172
implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
171173
implementation 'com.google.guava:guava:29.0-android'
172174
implementation ("androidx.appcompat:appcompat:1.3.1") {
@@ -186,7 +188,6 @@ dependencies {
186188
} else {
187189
implementation jscFlavor
188190
}
189-
implementation files("../../node_modules/react-native-tor/android/libs/sifir_android.aar")
190191
implementation "androidx.work:work-runtime:2.7.0"
191192

192193
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
@@ -203,6 +204,4 @@ dependencies {
203204
implementation 'com.itextpdf:itextg:5.5.10'
204205

205206

206-
}
207-
208-
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
207+
}

android/app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
android:usesCleartextTraffic="true"
3636
android:networkSecurityConfig="@xml/network_security_config"
3737
android:requestLegacyExternalStorage="true"
38-
android:theme="@style/AppTheme">
38+
android:theme="@style/AppTheme"
39+
android:supportsRtl="true">
3940
<activity
4041
android:name=".MainActivity"
4142
android:label="@string/app_name"

android/app/src/main/java/com/hexa_keeper/MainApplication.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import com.facebook.react.ReactPackage
99
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
1010
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
1111
import com.facebook.react.defaults.DefaultReactNativeHost
12+
import com.facebook.react.soloader.OpenSourceMergedSoMapping
1213
import com.facebook.soloader.SoLoader
1314
import android.content.Context
1415
import com.facebook.react.ReactInstanceManager
@@ -52,7 +53,7 @@ class MainApplication : Application(), ReactApplication {
5253

5354
override fun onCreate() {
5455
super.onCreate()
55-
SoLoader.init(this, false)
56+
SoLoader.init(this, OpenSourceMergedSoMapping)
5657
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
5758
// If you opted-in for the New Architecture, we load the native entry point for this app.
5859
load()

android/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ buildscript {
66
minSdkVersion = 26
77
compileSdkVersion = 35
88
targetSdkVersion = 35
9-
kotlin_version = '1.9.22'
10-
kotlinVersion = '1.9.22'
11-
ndkVersion = "25.1.8937393"
9+
kotlin_version = '2.0.21'
10+
kotlinVersion = '2.0.21'
11+
ndkVersion = "27.1.12297006"
1212
}
1313
repositories {
1414
google()

android/gradle.properties

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
# Android operating system, and which are packaged with your app's APK
2121
# https://developer.android.com/topic/libraries/support-library/androidx-rn
2222
android.useAndroidX=true
23-
# Automatically convert third-party libraries to use AndroidX
24-
android.enableJetifier=true
2523

2624
# Version of flipper SDK to use with React Native
2725
# FLIPPER_VERSION=0.182.0
@@ -46,4 +44,10 @@ org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=2048m -XX:MaxMetaspaceSize=512m -
4644

4745
# Use this property to enable or disable the Hermes JS engine.
4846
# If set to false, you will be using JSC instead.
49-
hermesEnabled=true
47+
hermesEnabled=true
48+
49+
# 16KB page size alignment for Android 15+
50+
# Enable 16KB page size support
51+
android.native.16kbPageSizeSupport=true
52+
VisionCamera_enableCodeScanner=true
53+

android/gradlew

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/gradlew.bat

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

android/settings.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1+
pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
2+
plugins { id("com.facebook.react.settings") }
3+
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
14
rootProject.name = 'hexa_keeper'
2-
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
35
include ':app'
46
includeBuild('../node_modules/@react-native/gradle-plugin')

ios/Podfile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1+
# Disable New Architecture
2+
ENV['RCT_NEW_ARCH_ENABLED'] = '0'
3+
14
# Resolve react_native_pods.rb with node to allow for hoisting
25
require Pod::Executable.execute_command('node', ['-p',
36
'require.resolve(
47
"react-native/scripts/react_native_pods.rb",
58
{paths: [process.argv[1]]},
69
)', __dir__]).strip
710

8-
platform :ios, 13.4
11+
platform :ios, 15.1
912
prepare_react_native_project!
1013
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
1114
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
@@ -31,6 +34,8 @@ def common_pods
3134

3235
use_react_native!(
3336
:path => config[:reactNativePath],
37+
:fabric_enabled => false, # 👈 disable Fabric (part of new arch)
38+
:new_arch_enabled => false, # 👈 disable New Architecture
3439
# Enables Flipper.
3540
#
3641
# Note that if you have use_frameworks! enabled, Flipper will not work and
@@ -54,7 +59,7 @@ post_install do |installer|
5459
# Set deployment target to 13.4 for all targets
5560
installer.pods_project.targets.each do |target|
5661
target.build_configurations.each do |config|
57-
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.4'
62+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '15.1'
5863
end
5964
end
6065

0 commit comments

Comments
 (0)