Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(devDeps): bump metro and react-native #9280

Merged
merged 202 commits into from
Jul 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
cd7e649
chore(devDeps): bump metro from 0.73 to 0.76
legobeat Apr 17, 2024
e1f436c
devDeps: bump react-native from 0.71.15 to 0.72.14
legobeat Apr 17, 2024
df35d7a
port react-native patch
legobeat Apr 17, 2024
40a238d
remove react-native hermes patch
legobeat Apr 19, 2024
f98a884
chore: bump @react-native-community packages
legobeat Apr 19, 2024
0510127
deps: @react-native-community/[email protected]>^9.5.0
legobeat Apr 19, 2024
88ed53c
deps: @react-native-masked-view/masked-view@^0.2.6->^0.3.1
legobeat Apr 19, 2024
a18ceb4
deps: [email protected]>^3.7.2
legobeat Apr 19, 2024
79abc88
update fixes
legobeat Apr 19, 2024
1187ecb
update react-native patch
leotm Apr 22, 2024
6266824
initial commit
Daniel-Cross Apr 24, 2024
0bb2648
small fix for android
Daniel-Cross Apr 24, 2024
aca0150
chore(devDeps): metro-config@~0.76.9 -> @react-native/metro-config@^0…
legobeat Apr 27, 2024
692fdce
chore(devDeps): eslint-plugin-react@^7.16.0->^7.34.1
legobeat Apr 27, 2024
7bd0a29
Refresh Podfile.lock
legobeat May 8, 2024
3d97633
chore: update eslintrc
legobeat May 8, 2024
82adc6b
chore: fix double-escaped sourceJson string
legobeat May 8, 2024
7602f6f
test: remove AnimatedComponentWrapper as ForwardedRef param
legobeat May 8, 2024
2f69769
test: some things are not collapsable anymore; update snapshots.
legobeat May 8, 2024
fceb9fc
fix(devDeps): replace @babel/plugin-proposal-numeric-separator with @…
legobeat May 8, 2024
942fcdc
test: remove forwardedRef from snapshots
legobeat May 8, 2024
79b1caf
fixme: ignore lint
legobeat May 8, 2024
f7a5217
test: undefined is not same as empty string anymore
legobeat May 8, 2024
c12b884
Merge branch 'main' into devdeps-metro
legobeat May 13, 2024
e50b79f
working and compliing versions on both os
May 15, 2024
1eb85be
updated lock screen snap file
May 15, 2024
01ab8bd
merged in snapshots
Daniel-Cross May 15, 2024
e54b01f
merged in last couple of commits to the main branch
Daniel-Cross May 15, 2024
6a076c8
Merge branch 'main' into update/react-native-upgrade-version-73x
Daniel-Cross May 15, 2024
e9e7357
updated podfile
Daniel-Cross May 15, 2024
017c03a
snap update
Daniel-Cross May 16, 2024
012a5b9
merging in RN changes that allow the app to build and complie
Daniel-Cross May 16, 2024
00a2a88
fixed conflicts from main
Daniel-Cross May 16, 2024
3da1338
Merge branch 'main' into devdeps-metro
Daniel-Cross May 16, 2024
5d153d5
fixed build error
Daniel-Cross May 16, 2024
e0d84f3
yarn deduplicate
Daniel-Cross May 17, 2024
e6184a9
put back e2e exmaple env
Daniel-Cross May 17, 2024
ec89214
merged main into branch
Daniel-Cross May 17, 2024
ced0330
Merge branch 'main' into devdeps-metro
legobeat May 20, 2024
e0cdf2e
Merge branch 'main' into devdeps-metro
Daniel-Cross May 22, 2024
cea9700
merged main
Daniel-Cross May 27, 2024
b18b41c
Disable segment in E2E mode
Cal-L May 30, 2024
2356028
merged in e2e fix
Daniel-Cross May 31, 2024
5124dd6
Merge branch 'main' into devdeps-metro
Daniel-Cross May 31, 2024
c4ba454
merged latest main changes
Daniel-Cross Jun 3, 2024
e801cc5
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 4, 2024
737a719
made some changes to android build files
Daniel-Cross Jun 4, 2024
08c1102
Merge branch 'main' into devdeps-metro
legobeat Jun 5, 2024
94ced33
removed an exclusion on the build command for Detox on Android
Daniel-Cross Jun 5, 2024
74651a2
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 5, 2024
9ff945e
ran yarn deduplicate
Daniel-Cross Jun 5, 2024
66e2cf7
fixed conflicts
Daniel-Cross Jun 5, 2024
6eb5efc
merged main and fixed conflicts
Daniel-Cross Jun 7, 2024
e06a435
updated package.json and removed two resolutions no longer needed
Daniel-Cross Jun 7, 2024
138ffce
ran yarn deduplicate
Daniel-Cross Jun 7, 2024
5b236ca
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 7, 2024
a53a475
Merge branch 'main' into devdeps-metro
legobeat Jun 8, 2024
2098467
merged main
Daniel-Cross Jun 11, 2024
ada9067
ran yarn deduplicate
Daniel-Cross Jun 11, 2024
52b98f3
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 13, 2024
9143145
working and compliing versions on both os
Daniel-Cross Jun 13, 2024
a7221fe
updated lock screen snap file
Daniel-Cross Jun 13, 2024
8a50e7e
merged in snapshots
Daniel-Cross May 15, 2024
4f6da19
merged in last couple of commits to the main branch
Daniel-Cross May 15, 2024
fe8a15d
Merge branch 'main' into update/react-native-upgrade-version-73x
Daniel-Cross May 15, 2024
0d94af0
updated podfile
Daniel-Cross May 15, 2024
7a03fc0
snap update
Daniel-Cross May 16, 2024
2c8fe92
merging in RN changes that allow the app to build and complie
Daniel-Cross May 16, 2024
bf1bb7e
fixed conflicts from main
Daniel-Cross May 16, 2024
fea0e6c
Merge branch 'main' into devdeps-metro
Daniel-Cross May 16, 2024
292bea3
fixed build error
Daniel-Cross May 16, 2024
0e399f4
yarn deduplicate
Daniel-Cross May 17, 2024
870fe2a
put back e2e exmaple env
Daniel-Cross May 17, 2024
34745a4
merged main into branch
Daniel-Cross May 17, 2024
514e163
Merge branch 'main' into devdeps-metro
legobeat May 20, 2024
4e76807
Merge branch 'main' into devdeps-metro
Daniel-Cross May 22, 2024
6d8fc12
merged main
Daniel-Cross May 27, 2024
8c6bc34
merged in e2e fix
Daniel-Cross May 31, 2024
17ae88c
Merge branch 'main' into devdeps-metro
Daniel-Cross May 31, 2024
04caeef
merged latest main changes
Daniel-Cross Jun 3, 2024
54d4f0e
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 4, 2024
c64078d
made some changes to android build files
Daniel-Cross Jun 4, 2024
a544b0f
Merge branch 'main' into devdeps-metro
legobeat Jun 5, 2024
7c56b44
removed an exclusion on the build command for Detox on Android
Daniel-Cross Jun 5, 2024
8880547
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 5, 2024
71a57ba
ran yarn deduplicate
Daniel-Cross Jun 5, 2024
2d0cf84
fixed conflicts
Daniel-Cross Jun 5, 2024
110111a
merged main and fixed conflicts
Daniel-Cross Jun 7, 2024
24b1188
updated package.json and removed two resolutions no longer needed
Daniel-Cross Jun 7, 2024
64748c4
ran yarn deduplicate
Daniel-Cross Jun 7, 2024
bfec93d
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 7, 2024
c419b88
Merge branch 'main' into devdeps-metro
legobeat Jun 8, 2024
9a78339
merged main
Daniel-Cross Jun 11, 2024
bf7c957
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 13, 2024
70ac72b
Merge remote-tracking branch 'origin/devdeps-metro' into devdeps-metro
leotm Jun 13, 2024
fee0ba7
yarn deduplicate
leotm Jun 13, 2024
2eb7f05
Update yarn.lock with @walletconnect
leotm Jun 13, 2024
18a8390
Fix yarn audit and cleanup
leotm Jun 13, 2024
ea8258d
Update yarn lockfile
leotm Jun 13, 2024
33ea1f8
snapshots updated
Daniel-Cross Jun 15, 2024
746fa12
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 15, 2024
da719e8
Revert "Update yarn lockfile"
Daniel-Cross Jun 15, 2024
b1e7c2d
undo revert
Daniel-Cross Jun 15, 2024
0d3a58f
Revert "snapshots updated"
Daniel-Cross Jun 15, 2024
2c5f85b
changed android emulator for e2e tests back to the one used on main
Daniel-Cross Jun 15, 2024
ac9d776
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 18, 2024
6de2b02
bumped to 0.72.15 to include a privacy manifest fix
Daniel-Cross Jun 18, 2024
7c08cc6
resolved conflicts
Daniel-Cross Jun 18, 2024
a0aa54d
removed 2 dependencies to be inline with main
Daniel-Cross Jun 18, 2024
b3c5dda
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 18, 2024
962dfb3
ran yarn deduplicate
Daniel-Cross Jun 18, 2024
83c6eae
Update min. iOS ver supported from '12.4' to min_ios_version_supported
leotm Jun 18, 2024
9dfcee8
updated snapshots
Daniel-Cross Jun 18, 2024
2f38bc7
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 18, 2024
c0516b3
changed terms modal to be less expensive
Daniel-Cross Jun 19, 2024
c7129d6
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 19, 2024
bcbb76a
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 20, 2024
0a00d17
changed ocnditional render
Daniel-Cross Jun 20, 2024
1fbf67f
updated snapshot
Daniel-Cross Jun 20, 2024
5e2f28f
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 20, 2024
bf451ce
chore: Chore/9924 - Enable `@typescript-eslint/no-explicit-any` as er…
Cal-L Jun 20, 2024
230d4fb
feat: enable transaction simulations (#10039)
OGPoyraz Jun 20, 2024
fc0282b
fix: hide amount in simulations for testnets if its opt out (#9918)
OGPoyraz Jun 20, 2024
1cab3c6
fix: Auto capitalize letter to none to have the same behaviour as the…
tommasini Jun 20, 2024
29a82ec
fix: deeplink is not opening the site in the inapp-browser when the w…
omridan159 Jun 21, 2024
47edeb8
chore: add typescript fitness function (#9960)
sethkfman Jun 21, 2024
9c6286a
chore: New Crowdin translations by Github Action (#9777)
metamaskbot Jun 21, 2024
4832105
fix: improve message display for typed sign messages (#9795)
jpuri Jun 21, 2024
4c54a18
chore: add smokeAssets e2e tag (#10067)
sahar-fehri Jun 21, 2024
58db9f8
test: Fix detox test run inconsistencies (#10055)
SamuelSalas Jun 21, 2024
8612379
fixed conflicts
Daniel-Cross Jun 24, 2024
f1b2935
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 24, 2024
6d972fa
downgraded reanimated to 3.4.1
Daniel-Cross Jun 24, 2024
58e60cc
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 24, 2024
c364421
removed temp modal fix
Daniel-Cross Jun 24, 2024
098615d
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 25, 2024
f2917dd
changed detox version
Daniel-Cross Jun 25, 2024
f81948b
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 25, 2024
48bfc6e
made some changes to android files
Daniel-Cross Jun 25, 2024
985afcd
merged main and fixed conflicts
Daniel-Cross Jun 25, 2024
3ebb8df
updated yarn.lock
Daniel-Cross Jun 26, 2024
9417f58
fixed duplicate issue in podfile
Daniel-Cross Jun 26, 2024
b305dfc
removed dattimepicker as it's not used anywhere in the codebase
Daniel-Cross Jun 26, 2024
53896e0
patched @metamask/controller-utils with a catch block to stop Android…
Daniel-Cross Jun 26, 2024
99db5a4
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 26, 2024
a859a1f
updated patch for controller
Daniel-Cross Jun 26, 2024
a65f458
merged main and removed datetimepicker
Daniel-Cross Jun 26, 2024
94b61bc
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 26, 2024
ba9a2d5
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 27, 2024
7d2f111
updated snapshots and RN patch
Daniel-Cross Jun 27, 2024
e028add
added packagingOptions to build gradle
Daniel-Cross Jun 27, 2024
18f4364
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 27, 2024
f467e84
added patch for controller-utils
Daniel-Cross Jun 27, 2024
2bb529a
fix merge conflicts
Daniel-Cross Jun 27, 2024
d9ad481
yarn lock fix
Daniel-Cross Jun 27, 2024
bac0198
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 27, 2024
59aa93f
merge and fix conflicts
Daniel-Cross Jun 27, 2024
96e44f1
yarn lock update
Daniel-Cross Jun 27, 2024
bf73212
fixed merge conflicts
Daniel-Cross Jun 27, 2024
5e9de9c
Merge branch 'main' into devdeps-metro
tommasini Jun 27, 2024
8eb24c3
removed patch
Daniel-Cross Jun 28, 2024
4912b65
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 28, 2024
05dd79f
Merge branch 'main' into devdeps-metro
Daniel-Cross Jun 28, 2024
658681b
Merge branch 'main' into devdeps-metro
Daniel-Cross Jul 1, 2024
78b095b
upgrade reanimated
Daniel-Cross Jul 1, 2024
149ed61
changed gradle files
Daniel-Cross Jul 1, 2024
75e2439
feat: Revamp Snap connection screen (#10189)
FrederikBolding Jul 1, 2024
6a3d7ff
Merge branch 'main' into devdeps-metro
Daniel-Cross Jul 2, 2024
9d91a1e
merged main
Daniel-Cross Jul 2, 2024
72f2581
updated yarn lock and podfile
Daniel-Cross Jul 2, 2024
d26432f
removed unused package
Daniel-Cross Jul 3, 2024
4dec8f4
Merge branch 'main' into devdeps-metro
Daniel-Cross Jul 3, 2024
fe90d82
Merge branch 'main' into devdeps-metro
Daniel-Cross Jul 3, 2024
9cf1f5d
copied over yarn lock from main
Daniel-Cross Jul 4, 2024
93575c3
Merge branch 'main' into devdeps-metro
Daniel-Cross Jul 4, 2024
139546e
Merge branch 'main' into devdeps-metro
Daniel-Cross Jul 4, 2024
1ab77a7
fix: add support for svg uris without viewbox (#10247)
Prithpal-Sooriya Jul 4, 2024
e737635
fix: copy changes in blockaid settings (#10233)
jpuri Jul 5, 2024
90b928d
chore: Convert initial background state to typed background state (#9…
tommasini Jul 5, 2024
18cb9c6
chore(ramp): upgrade sdk to 1.28.1 (#9652)
wachunei Jul 5, 2024
9aa6671
chore: New Crowdin translations by Github Action (#10071)
metamaskbot Jul 5, 2024
ecea1c1
chore: Migrate AsyncStorage to mmkv (#10153)
kylanhurt Jul 5, 2024
2fd6a59
7.26.0 (#10052)
github-actions[bot] Jul 5, 2024
5bbd5d6
merged main and fixed conflicts
Daniel-Cross Jul 8, 2024
dccf8bf
added patch for gas fee estimate
Daniel-Cross Jul 9, 2024
c9450c6
added extra case to if statement if gasfees is set to an empty object
Daniel-Cross Jul 9, 2024
cce46d6
added patch to permission controller for when user rejects request an…
Daniel-Cross Jul 9, 2024
da0262a
Merge branch 'main' into devdeps-metro
Daniel-Cross Jul 9, 2024
9a84afe
Merge branch 'main' into devdeps-metro
Daniel-Cross Jul 11, 2024
c15f5f8
Merge branch 'main' into devdeps-metro
Daniel-Cross Jul 11, 2024
aa54877
added patch for reject function on approval controller
Daniel-Cross Jul 11, 2024
23824d7
revert last patches to fix crashes, permission controller and swaps c…
tommasini Jul 18, 2024
dbefb10
hermes ios enabled
tommasini Jul 18, 2024
e241b53
revert hermes on ios
tommasini Jul 18, 2024
99cc56d
merge main and solve conflicts
tommasini Jul 18, 2024
e405628
Merge branch 'main' into devdeps-metro
tommasini Jul 18, 2024
dcb9538
chore: rename to .e2e.env.example
legobeat Jul 19, 2024
0c08c4b
Merge branch 'main' into devdeps-metro
legobeat Jul 19, 2024
efc780f
podfile lock conflict solved
tommasini Jul 22, 2024
7b0a5cd
revert metametrics changes
tommasini Jul 22, 2024
1fef10a
Merge branch 'main' into devdeps-metro
legobeat Jul 22, 2024
067ba31
Merge branch 'main' into devdeps-metro
legobeat Jul 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .e2e.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
export MM_TEST_ACCOUNT_SRP='word1 word... word12'
export MM_TEST_ACCOUNT_ADDRESS='0x...'
export MM_TEST_ACCOUNT_PRIVATE_KEY=''
export IS_TEST="true"
export IS_TEST="true"
4 changes: 4 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ module.exports = {
rules: {
// TODO: re-enable
'jsdoc/no-types': 'off',
'react/display-name': 'off',
'react/no-unused-prop-types': 'off',
'react/prop-types': 'off',
'react/self-closing-comp': 'off',
// This change is included in `@metamask/[email protected]
'@typescript-eslint/no-unused-vars': [
'error',
Expand Down
4 changes: 0 additions & 4 deletions .iyarc
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# ReDoS vulnerability, no impact to this application, and fix not backported yet to the versions we use

GHSA-c2qf-rxjj-qqgw

# ip SSRF improper categorization in isPublic, since it only affect dev tools on, and the server is actually a local server, this advisory shouldn't apply to this use cases

GHSA-2p57-rm9w-gvfp
48 changes: 11 additions & 37 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ apply plugin: "com.facebook.react"
apply plugin: "io.sentry.android.gradle"
apply plugin: 'com.google.gms.google-services'

import com.android.build.OutputFile

/**
* This is the configuration block to customize your React Native Android app.
* By default you don't need to apply any configuration, just uncomment the lines you need.
Expand All @@ -15,8 +13,8 @@ react {
// root = file("../")
// The folder where the react-native NPM package is. Default is ../node_modules/react-native
// reactNativeDir = file("../node_modules/react-native")
// The folder where the react-native Codegen package is. Default is ../node_modules/react-native-codegen
// codegenDir = file("../node_modules/react-native-codegen")
// The folder where the react-native Codegen package is. Default is ../node_modules/@react-native/codegen
// codegenDir = file("../node_modules/@react-native/codegen")
// The cli.js file which is the React Native CLI entrypoint. Default is ../node_modules/react-native/cli.js
// cliFile = file("../node_modules/react-native/cli.js")
/* Variants */
Expand Down Expand Up @@ -127,14 +125,6 @@ def getPassword(String currentUser, String keyChain) {
stdout.toString().trim()
}

/**
* Set this to true to create four separate APKs instead of one,
* one for each native architecture. This is useful if you don't
* use App Bundles (https://developer.android.com/guide/app-bundle/)
* and want to have separate APKs to upload to the Play Store.
*/
def enableSeparateBuildPerCPUArchitecture = false

/**
* Set this to true to Run Proguard on Release builds to minify the Java bytecode.
*/
Expand Down Expand Up @@ -163,6 +153,7 @@ def reactNativeArchitectures() {
return value ? value.split(",") : ["armeabi-v7a", "x86", "x86_64", "arm64-v8a"]
}


/**
* Adding function that will retuen the Bitrise ndkPath if it is a QA or Production Build
*/
Expand Down Expand Up @@ -193,6 +184,14 @@ android {

packagingOptions {
exclude 'META-INF/DEPENDENCIES'
pickFirst 'lib/x86/libc++_shared.so'
pickFirst 'lib/x86_64/libc++_shared.so'
pickFirst 'lib/armeabi-v7a/libc++_shared.so'
pickFirst 'lib/arm64-v8a/libc++_shared.so'
pickFirst 'lib/arm64-v8a/libcrypto.so'
pickFirst 'lib/armeabi-v7a/libcrypto.so'
pickFirst 'lib/x86/libcrypto.so'
pickFirst 'lib/x86_64/libcrypto.so'
tommasini marked this conversation as resolved.
Show resolved Hide resolved
}

signingConfigs {
Expand Down Expand Up @@ -222,15 +221,6 @@ android {
}
}

splits {
abi {
reset()
enable enableSeparateBuildPerCPUArchitecture
universalApk false // If true, also generate a universal APK
include (*reactNativeArchitectures())
}
}

buildTypes {
debug {
manifestPlaceholders.isDebug = true
Expand Down Expand Up @@ -270,21 +260,6 @@ android {
it.buildConfigField 'String', 'IS_RAMP_UAT', "\"$System.env.RAMP_INTERNAL_BUILD\""
// Used to point to dev environment API for ramp
it.buildConfigField 'String', 'IS_RAMP_DEV', "\"$System.env.RAMP_DEV_BUILD\""
}
// applicationVariants are e.g. debug, release
applicationVariants.all { variant ->
variant.outputs.each { output ->
// For each separate APK per architecture, set a unique version code as described here:
// https://developer.android.com/studio/build/configure-apk-splits.html
// Example: versionCode will generate 1001 for armeabi-v7a, 1002 for x86, etc.
def versionCodes = ["armeabi-v7a": 1, "x86": 2, "arm64-v8a": 3, "x86_64": 4]
def abi = output.getFilter(OutputFile.ABI)
if (abi != null) { // null for the universal-debug, universal-release variants
output.versionCodeOverride =
defaultConfig.versionCode * 1000 + versionCodes.get(abi)
}

}
}
}

Expand All @@ -293,7 +268,6 @@ dependencies {
implementation(files("../libs/ecies.aar"))
implementation(files("../libs/nativesdk.aar"))
implementation("com.facebook.react:react-android")
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")
implementation 'org.apache.commons:commons-compress:1.22'
androidTestImplementation 'org.mockito:mockito-android:4.2.0'
androidTestImplementation 'androidx.test:core:1.5.0'
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
android:theme="@style/AppTheme"
android:hardwareAccelerated="true"
android:usesCleartextTraffic="${isDebug}"
tools:targetApi="29"
tools:targetApi="33"
tools:ignore="GoogleAppIndexingWarning"
android:networkSecurityConfig="@xml/react_native_config"
android:largeHeap="true"
Expand Down
2 changes: 1 addition & 1 deletion android/app/src/main/java/io/metamask/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void onNewIntent(Intent intent) {
*/
@Override
protected ReactActivityDelegate createReactActivityDelegate() {
return new ReactActivityDelegate(this, getMainComponentName()) {
return new DefaultReactActivityDelegate(this, getMainComponentName(), DefaultNewArchitectureEntryPoint.getFabricEnabled()) {
@Override
protected Bundle getLaunchOptions() {
Bundle initialProperties = new Bundle();
Expand Down
5 changes: 2 additions & 3 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {
// We use NDK 23 which has both M1 support and is the side-by-side NDK version from AGP.
ndkVersion = "24.0.8215888"
bitriseNdkPath = "/usr/local/share/android-sdk/ndk-bundle"
kotlin_version = "1.7.0"
kotlin_version = "1.7.22"
kotlinVersion = "$kotlin_version"
supportLibVersion = "28.0.0"
}
Expand All @@ -20,8 +20,7 @@ buildscript {
}

dependencies {
classpath('com.android.tools.build:gradle:7.3.1')
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath("com.android.tools.build:gradle")
classpath("com.facebook.react:react-native-gradle-plugin")
classpath("io.sentry:sentry-android-gradle-plugin:4.2.0")
classpath("com.google.gms:google-services:4.4.2")
Expand Down
4 changes: 3 additions & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ org.gradle.jvmargs=-Xmx2048m -XX:MaxMetaspaceSize=512m
android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
android.disableAutomaticComponentCreation=true

# Version of flipper SDK to use with React Native
FLIPPER_VERSION=0.125.0
FLIPPER_VERSION=0.182.0

# TODO: favour arch options here over cli options
# replace them
Expand All @@ -46,5 +47,6 @@ newArchEnabled=false
hermesEnabled=true

# TODO: explain following config options
# Some of these are depreceated in RN 0.72.15 but when removed the app won't build
android.disableResourceValidation=true
android.enableDexingArtifactTransform.desugaring=false
3 changes: 2 additions & 1 deletion android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.1-all.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
20 changes: 12 additions & 8 deletions android/gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,11 @@ while [ -h "$PRG" ] ; do
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null

APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# This is normally unused
# shellcheck disable=SC2034
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
Expand Down Expand Up @@ -122,7 +120,7 @@ fi

# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\" \"-Xmx2048m\" \"-Xms256m\" \"-XX:MaxPermSize=2048m\""
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\" \"-Xmx2048m\" \"-Xms256m\""
fi

# For Cygwin or MSYS, switch paths to Windows format before running java
Expand Down Expand Up @@ -180,4 +178,10 @@ APP_ARGS=`save "$@"`
# Collect all arguments for the java command, following the shell quoting and substitution rules
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"

exec "$JAVACMD" "$@"
exec "$JAVACMD" "$@"

# Stop when "xargs" is not available.
if ! command -v xargs >/dev/null 2>&1
then
die "xargs is not available"
fi
16 changes: 10 additions & 6 deletions android/gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@rem limitations under the License.
@rem

@if "%DEBUG%" == "" @echo off
@if "%DEBUG%"=="" @echo off
@rem ##########################################################################
@rem
@rem Gradle startup script for Windows
Expand All @@ -25,7 +25,8 @@
if "%OS%"=="Windows_NT" setlocal

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
if "%DIRNAME%"=="" set DIRNAME=.
@rem This is normally unused
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

Expand All @@ -40,7 +41,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto execute
if %ERRORLEVEL% equ 0 goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Expand Down Expand Up @@ -74,13 +75,16 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar

:end
@rem End local scope for the variables with windows NT shell
if "%ERRORLEVEL%"=="0" goto mainEnd
if %ERRORLEVEL% equ 0 goto mainEnd

:fail
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
rem the _cmd.exe /c_ return code!
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
exit /b 1

set EXIT_CODE=%ERRORLEVEL%
if %EXIT_CODE% equ 0 set EXIT_CODE=1
if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
exit /b %EXIT_CODE%

:mainEnd
if "%OS%"=="Windows_NT" endlocal
Expand Down
11 changes: 2 additions & 9 deletions android/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,8 @@ pluginManagement {
rootProject.name = 'MetaMask'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
includeBuild('../node_modules/react-native-gradle-plugin')
includeBuild('../node_modules/react-native') {
dependencySubstitution {
substitute(module("com.facebook.react:react-android")).using(project(":ReactAndroid"))
substitute(module("com.facebook.react:react-native")).using(project(":ReactAndroid"))
substitute(module("com.facebook.react:hermes-android")).using(project(":ReactAndroid:hermes-engine"))
substitute(module("com.facebook.react:hermes-engine")).using(project(":ReactAndroid:hermes-engine"))
}
}
leotm marked this conversation as resolved.
Show resolved Hide resolved
includeBuild('../node_modules/@react-native/gradle-plugin')
includeBuild('../node_modules/@react-native') {}
include ':@react-native-community_blur'
project(':@react-native-community_blur').projectDir = new File(rootProject.projectDir, '../node_modules/@react-native-community/blur/android')
include ':lottie-react-native'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { StyleSheet, TextStyle, Dimensions } from 'react-native';
import { Theme } from '../../../../util/theme/models';

const screenHeight = Dimensions.get('window').height;

/**
* Style sheet function for ModalConfirmation component.
*
Expand Down
2 changes: 0 additions & 2 deletions app/components/Nav/App/__snapshots__/index.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ exports[`App renders according to latest snapshot 1`] = `
<RNSScreen
activityState={2}
collapsable={false}
forwardedRef={[Function]}
gestureResponseDistance={
{
"bottom": -1,
Expand Down Expand Up @@ -235,7 +234,6 @@ exports[`App renders according to latest snapshot 1`] = `
>
<View
collapsable={false}
forwardedRef={[Function]}
onGestureHandlerEvent={[Function]}
onGestureHandlerStateChange={[Function]}
style={
Expand Down
1 change: 1 addition & 0 deletions app/components/Nav/App/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ const VaultRecoveryFlow = () => (
</Stack.Navigator>
);

// eslint-disable-next-line react/prop-types
const App = ({ userLoggedIn }) => {
const animationRef = useRef(null);
const animationNameRef = useRef(null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ exports[`AccountRightButton should render correctly 1`] = `
<RNSScreen
activityState={2}
collapsable={false}
forwardedRef={[Function]}
gestureResponseDistance={
{
"bottom": -1,
Expand Down Expand Up @@ -235,7 +234,6 @@ exports[`AccountRightButton should render correctly 1`] = `
>
<View
collapsable={false}
forwardedRef={[Function]}
onGestureHandlerEvent={[Function]}
onGestureHandlerStateChange={[Function]}
style={
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AnimatedTransactionModal should render correctly 1`] = `
<ForwardRef(AnimatedComponentWrapper)
<ForwardRef
onLayout={[Function]}
style={
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ exports[`CollectibleModal should render correctly 1`] = `
>
<View
collapsable={false}
forwardedRef={[Function]}
onGestureHandlerEvent={[Function]}
onGestureHandlerStateChange={[Function]}
onLayout={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ exports[`CustomAlert should render correctly 1`] = `
accessible={true}
collapsable={false}
focusable={true}
forwardedRef={[Function]}
onClick={[Function]}
onResponderGrant={[Function]}
onResponderMove={[Function]}
Expand All @@ -67,7 +66,6 @@ exports[`CustomAlert should render correctly 1`] = `
collapsable={false}
deviceHeight={null}
deviceWidth={null}
forwardedRef={[Function]}
hideModalContentWhileAnimating={false}
onBackdropPress={[Function]}
onModalHide={[Function]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ exports[`EnableAutomaticSecurityChecksModal should render correctly 1`] = `
<RNSScreen
activityState={2}
collapsable={false}
forwardedRef={[Function]}
gestureResponseDistance={
{
"bottom": -1,
Expand Down Expand Up @@ -235,7 +234,6 @@ exports[`EnableAutomaticSecurityChecksModal should render correctly 1`] = `
>
<View
collapsable={false}
forwardedRef={[Function]}
onGestureHandlerEvent={[Function]}
onGestureHandlerStateChange={[Function]}
style={
Expand Down
Loading
Loading