Skip to content

Commit 24d1dd5

Browse files
committed
feat: Bring latest changes
1 parent 62b20b5 commit 24d1dd5

Some content is hidden

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

43 files changed

+1440
-4663
lines changed

.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,7 @@ index a7a912fa46128bbc36eeefe67e6ba16855992917..7716bccc380e5d0e8eccbd7e4a2294b7
4545
*/
4646
function getPublicKey(secretKey, isCompressed = true) {
4747
- return Point.BASE.multiply(_normFnElement(Fn, secretKey)).toBytes(isCompressed);
48-
+ // const con = console;
49-
+ // con.log(" aaaaa Getting public key for secret key!");
50-
+ // con.log("aaaaa Getting public key for secret key:", secretKey.toString('hex'));
51-
+ //const res = Point.BASE.multiply(_normFnElement(Fn, secretKey)).toBytes(isCompressed);
5248
+ const nativeRes = getPublicKeyFromNativeLib(secretKey, isCompressed);
53-
+
54-
+
55-
+ // con.log("aaaaa native res", nativeRes.toString('hex'));
56-
+ // con.log("aaaaa JS res", res.toString('hex'));
57-
+
5849
+ return nativeRes;
5950
}
6051
function keygen(seed) {

bitrise.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,9 @@ workflows:
215215
- pipeline_intermediate_files: "$BITRISE_DEPLOY_DIR/app-external-e2e-bitrise-signed.apk:BITRISE_APK_PATH\n$BITRISE_DEPLOY_DIR/app-external-e2e-androidTest-bitrise-signed.apk:BITRISE_TEST_APK_PATH\t"
216216
_build-ios:
217217
steps:
218+
- brew-install@1:
219+
inputs:
220+
- packages: autoconf automake libtool
218221
- restore-cocoapods-cache@1: {}
219222
- script@1:
220223
title: Copy Gemfile to iOS folder

package.json

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"tsc": "yarn workspaces foreach -p run tsc",
1414
"test": "yarn workspaces foreach -p run test",
1515
"core": "yarn workspace @avalabs/core-mobile",
16+
"crypto": "yarn workspace react-native-nitro-avalabs-crypto",
1617
"k2": "yarn workspace @avalabs/k2-alpine"
1718
},
1819
"devDependencies": {
@@ -57,27 +58,16 @@
5758
"@walletconnect/[email protected]": "patch:@walletconnect/sign-client@npm%3A2.16.1#./.yarn/patches/@walletconnect-sign-client-npm-2.16.1-b9bdaa2d98.patch",
5859
"@walletconnect/[email protected]": "patch:@walletconnect/utils@npm%3A2.17.2#./.yarn/patches/@walletconnect-utils-npm-2.17.2-43f96abc05.patch",
5960
"@walletconnect/[email protected]": "patch:@walletconnect/utils@npm%3A2.17.2#./.yarn/patches/@walletconnect-utils-npm-2.17.2-43f96abc05.patch",
60-
"@noble/[email protected]": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
61-
"@noble/curves@^1.7.0": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
62-
"@noble/[email protected]": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
63-
"@noble/curves@^1.6.0": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
64-
"@noble/[email protected]": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
65-
"@noble/[email protected]": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
66-
"@noble/[email protected]": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
67-
"@noble/curves@~1.3.0": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
68-
"@noble/curves@^1.4.0": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
69-
"@noble/curves@~1.4.0": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
70-
"@noble/curves@~1.6.0": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
71-
"@noble/[email protected]": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
72-
"@noble/curves@~1.2.0": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
73-
"@noble/curves@~1.1.0": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
74-
"@noble/curves@^1.8.0": "patch:@noble/curves@npm%3A1.9.7#./.yarn/patches/@noble-curves-npm-1.9.7-2b9efc8ab4.patch",
7561
"@bitcoinerlab/[email protected]": "patch:@bitcoinerlab/secp256k1@npm%3A1.2.0#./.yarn/patches/@bitcoinerlab-secp256k1-npm-1.2.0-1098d4b329.patch",
7662
"@bitcoinerlab/secp256k1@^1.0.5": "patch:@bitcoinerlab/secp256k1@npm%3A1.2.0#./.yarn/patches/@bitcoinerlab-secp256k1-npm-1.2.0-1098d4b329.patch"
7763
},
7864
"engines": {
7965
"node": ">=20.18.0",
8066
"yarn": ">=3.6.4"
8167
},
82-
"packageManager": "[email protected]"
68+
"packageManager": "[email protected]",
69+
"dependencies": {
70+
"nitrogen": "0.31.6",
71+
"react-native-nitro-modules": "0.31.6"
72+
}
8373
}

packages/core-mobile/android/app/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ android {
128128
}
129129

130130
release {
131-
signingConfig signingConfigs.debug
132131
minifyEnabled enableProguardInReleaseBuilds
133132
proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
134133
}

packages/core-mobile/android/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
android:name="com.google.firebase.messaging.default_notification_icon"
3636
android:resource="@drawable/notification_icon" />
3737
<!-- Branch init -->
38-
<meta-data android:name="io.branch.sdk.BranchKey" android:value="${BRANCH_KEY}" />
38+
<meta-data android:name="io.branch.sdk.BranchKey" android:value="${BRANCH_KEY}" />
3939
<meta-data android:name="io.branch.sdk.BranchKey.test" android:value="${BRANCH_KEY}" />
4040
<!-- Set to `true` to use `BranchKey.test` -->
4141
<meta-data android:name="io.branch.sdk.TestMode" android:value="${BRANCH_TEST_MODE}" />

packages/core-mobile/android/app/src/main/java/com/avaxwallet/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package com.avaxwallet
22

3+
import android.content.Intent
34
import android.os.Bundle
45
import android.view.WindowManager
56
import androidx.appcompat.app.AppCompatDelegate
@@ -10,7 +11,6 @@ import com.facebook.react.defaults.DefaultReactActivityDelegate
1011
import com.zoontek.rnbootsplash.RNBootSplash
1112
import expo.modules.ReactActivityDelegateWrapper
1213
import io.branch.rnbranch.*
13-
import android.content.Intent
1414

1515
class MainActivity : ReactActivity() {
1616

packages/core-mobile/android/app/src/main/java/com/avaxwallet/MainApplication.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ class MainApplication : Application(), ReactApplication {
4646
override fun onCreate() {
4747
super.onCreate()
4848

49-
RootedCheck.precompute(this);
49+
RootedCheck.precompute(this)
5050

5151
increaseWindowCursorSize()
52+
5253
RNBranchModule.getAutoInstance(this);
5354

5455
// Manually set user agent to our format. This helps avoid getting identified as a bot and rate limited by cloudflare

packages/core-mobile/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# The setting is particularly useful for tweaking memory settings.
1212
# Default value: -Xmx512m -XX:MaxMetaspaceSize=256m
1313
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
14-
org.gradle.jvmargs=-Xmx8096m -XX:MaxMetaspaceSize=4096m
14+
org.gradle.jvmargs=-Xmx4096m -XX:MaxMetaspaceSize=512m
1515

1616
# When configured, Gradle will run in incubating parallel mode.
1717
# This option should only be used with decoupled projects. More details, visit

packages/core-mobile/ios/Podfile.lock

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ PODS:
533533
- nanopb/encode (= 3.30910.0)
534534
- nanopb/decode (3.30910.0)
535535
- nanopb/encode (3.30910.0)
536-
- NitroAvalabsCrypto (0.1.0):
536+
- NitroAvalabsCrypto (0.0.1):
537537
- DoubleConversion
538538
- glog
539539
- hermes-engine
@@ -559,7 +559,7 @@ PODS:
559559
- ReactCommon/turbomodule/bridging
560560
- ReactCommon/turbomodule/core
561561
- Yoga
562-
- NitroModules (0.30.2):
562+
- NitroModules (0.31.6):
563563
- DoubleConversion
564564
- glog
565565
- hermes-engine
@@ -2209,6 +2209,30 @@ PODS:
22092209
- React-Codegen
22102210
- React-Core
22112211
- ReactCommon/turbomodule/core
2212+
- react-native-performance (5.1.2):
2213+
- DoubleConversion
2214+
- glog
2215+
- hermes-engine
2216+
- RCT-Folly (= 2024.11.18.00)
2217+
- RCTRequired
2218+
- RCTTypeSafety
2219+
- React-Core
2220+
- React-debug
2221+
- React-Fabric
2222+
- React-featureflags
2223+
- React-graphics
2224+
- React-hermes
2225+
- React-ImageManager
2226+
- React-jsi
2227+
- React-NativeModulesApple
2228+
- React-RCTFabric
2229+
- React-renderercss
2230+
- React-rendererdebug
2231+
- React-utils
2232+
- ReactCodegen
2233+
- ReactCommon/turbomodule/bridging
2234+
- ReactCommon/turbomodule/core
2235+
- Yoga
22122236
- react-native-quick-base64 (2.1.2):
22132237
- DoubleConversion
22142238
- glog
@@ -3513,6 +3537,7 @@ DEPENDENCIES:
35133537
- "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
35143538
- react-native-pager-view (from `../node_modules/react-native-pager-view`)
35153539
- react-native-passkey (from `../node_modules/react-native-passkey`)
3540+
- react-native-performance (from `../node_modules/react-native-performance`)
35163541
- react-native-quick-base64 (from `../node_modules/react-native-quick-base64`)
35173542
- react-native-quick-crypto (from `../node_modules/react-native-quick-crypto`)
35183543
- react-native-restart (from `../node_modules/react-native-restart`)
@@ -3806,6 +3831,8 @@ EXTERNAL SOURCES:
38063831
:path: "../node_modules/react-native-pager-view"
38073832
react-native-passkey:
38083833
:path: "../node_modules/react-native-passkey"
3834+
react-native-performance:
3835+
:path: "../node_modules/react-native-performance"
38093836
react-native-quick-base64:
38103837
:path: "../node_modules/react-native-quick-base64"
38113838
react-native-quick-crypto:
@@ -4019,8 +4046,8 @@ SPEC CHECKSUMS:
40194046
lottie-react-native: 8bc11e10576d1a3f77f4e0ae5b70503c5c890a09
40204047
MultiplatformBleAdapter: b1fddd0d499b96b607e00f0faa8e60648343dc1d
40214048
nanopb: fad817b59e0457d11a5dfbde799381cd727c1275
4022-
NitroAvalabsCrypto: 04b9f004efee45b190f5f55edb4695e20bcdb1ea
4023-
NitroModules: a0e083750af37516a6b356ccf3373716eb1d01a1
4049+
NitroAvalabsCrypto: 1e5e1dbdc072022443c355b70d6d598841bf8557
4050+
NitroModules: 9d7909d32350449193e913985cbd69160bff8ead
40244051
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
40254052
OpenTelemetrySwiftApi: aaee576ed961e0c348af78df58b61300e95bd104
40264053
PLCrashReporter: db59ef96fa3d25f3650040d02ec2798cffee75f2
@@ -4073,6 +4100,7 @@ SPEC CHECKSUMS:
40734100
react-native-netinfo: cec9c4e86083cb5b6aba0e0711f563e2fbbff187
40744101
react-native-pager-view: f238ed7fb53458bd03366944a33686f067c83e9a
40754102
react-native-passkey: 3aac247c18127443ef4a002b59d8e12dc7e99f2e
4103+
react-native-performance: 4194ce7222056671d8f0ce10e96a8fead7278550
40764104
react-native-quick-base64: 651d972291fd5d9902869636a1b3c46820324490
40774105
react-native-quick-crypto: 71b622aa0a231ac068759f5eef37982ad5eae58c
40784106
react-native-restart: 0bc732f4461709022a742bb29bcccf6bbc5b4863

packages/core-mobile/metro.config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1+
const path = require('path')
12
const { mergeConfig } = require('@react-native/metro-config')
23
const { getSentryExpoConfig } = require('@sentry/react-native/metro')
34
const merge = require('lodash.merge')
4-
const path = require('path')
55

66
// Workspace paths (adjust if your monorepo depth is different)
77
const projectRoot = __dirname
88
const workspaceRoot = path.resolve(projectRoot, '..', '..')
9-
const nitroCryptoPath = path.resolve(workspaceRoot, 'packages/react-native-nitro-avalabs-crypto')
9+
const nitroCryptoPath = path.resolve(
10+
workspaceRoot,
11+
'packages/react-native-nitro-avalabs-crypto'
12+
)
1013

1114
const monorepoConfig = require('./metro.monorepo.config')
1215
const defaultConfig = getSentryExpoConfig(__dirname)
@@ -31,21 +34,18 @@ const baseConfig = {
3134
}),
3235
babelTransformerPath: require.resolve('react-native-svg-transformer')
3336
},
34-
watchFolders: [
35-
workspaceRoot,
36-
nitroCryptoPath,
37-
],
37+
watchFolders: [workspaceRoot, nitroCryptoPath],
3838
resolver: {
3939
// mute warnings about circular dependencies
4040
requireCycleIgnorePatterns: [/^app\/.*/, /^node_modules\/.*/],
4141
extraNodeModules: {
4242
stream: require.resolve('./node_modules/stream-browserify'),
4343
'@noble/hashes': require.resolve('./node_modules/@noble/hashes'),
44-
"react-native-nitro-avalabs-crypto": nitroCryptoPath
44+
'react-native-nitro-avalabs-crypto': nitroCryptoPath
4545
},
4646
nodeModulesPaths: [
4747
path.resolve(workspaceRoot, 'node_modules'),
48-
path.resolve(projectRoot, 'node_modules'),
48+
path.resolve(projectRoot, 'node_modules')
4949
],
5050
// TODO: should this be a temporary fix?
5151
unstable_enablePackageExports: false,

0 commit comments

Comments
 (0)