-
Notifications
You must be signed in to change notification settings - Fork 361
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
[Wallet] Add reCaptcha verification behind feature flag #5630
Changes from 5 commits
1d75462
91ca156
48c9055
68f6174
97828e3
0617ae2
56f4620
5e4ce1b
8ec87ba
5bebc12
2dab9f8
e514082
5b7447e
0981e14
55e235f
d913151
3fd8011
779914d
c815d08
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
</resources> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
rootProject.name = 'celo' | ||
include ':react-native-securerandom' | ||
project(':react-native-securerandom').projectDir = new File(rootProject.projectDir, '../../../node_modules/react-native-securerandom/android') | ||
apply from: file("../../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings) | ||
include ':app' |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,9 +43,9 @@ | |
"loadingBody": "This can take up to 90 seconds" | ||
}, | ||
"verificationEducation": { | ||
"title": "Confirm", | ||
"header": "Confirm phone number", | ||
"body": "To make sure your number is really yours, we’re going to send you three messages that will cost about 0.05 cUSD each.\n\nConfirming your number takes about three minutes.", | ||
"title": "Phone Number", | ||
"header": "Connect your phone number", | ||
"body": "Connecting takes about three minutes. To confirm your number, you’ll receive three messages.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to keep this text for the fallback version? cc @tarikbellamine There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah good catch. We will want to keep all the old text because both feeless and non-feeless flows will be possible. |
||
"start": "Start", | ||
"resume": "Resume", | ||
"doINeedToConfirm": "Do I need to confirm?", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,6 +107,7 @@ | |
"react-native-fs": "^2.16.6", | ||
"react-native-gesture-handler": "^1.6.1", | ||
"react-native-geth": "https://github.com/celo-org/react-native-geth#5864c09", | ||
"react-native-google-safetynet": "https://github.com/celo-org/react-native-google-safetynet#e698d70", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure if you created a PR to get this upstreamed - but usually nice to do |
||
"react-native-keep-awake": "^4.0.0", | ||
"react-native-keyboard-aware-scroll-view": "^0.9.1", | ||
"react-native-keychain": "6.0.0", | ||
|
@@ -120,6 +121,7 @@ | |
"react-native-restart-android": "^0.0.7", | ||
"react-native-safe-area-context": "^3.0.6", | ||
"react-native-screens": "^2.7.0", | ||
"react-native-securerandom": "^0.3.1", | ||
"react-native-secure-randombytes": "^3.0.2", | ||
"react-native-send-intent": "git+https://github.com/celo-org/react-native-send-intent#a0f4b00", | ||
"react-native-share": "^3.3.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -108,17 +108,26 @@ exports[`TransferConfirmationCard renders correctly for CELO withdrawal transact | |
</svg> | ||
</View> | ||
</View> | ||
<Text | ||
<View | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This changes are due to the change to the implementation of |
||
style={ | ||
Object { | ||
"color": "#9CA4A9", | ||
"fontFamily": "Inter-Regular", | ||
"fontSize": 14, | ||
"lineHeight": 18, | ||
"marginRight": 7, | ||
"alignItems": "center", | ||
"flexDirection": "row", | ||
} | ||
} | ||
/> | ||
> | ||
<Text | ||
style={ | ||
Object { | ||
"color": "#9CA4A9", | ||
"fontFamily": "Inter-Regular", | ||
"fontSize": 14, | ||
"lineHeight": 18, | ||
"marginRight": 7, | ||
} | ||
} | ||
/> | ||
</View> | ||
</View> | ||
</View> | ||
<View | ||
|
@@ -1027,17 +1036,26 @@ exports[`TransferConfirmationCard renders correctly for received escrow transact | |
</svg> | ||
</View> | ||
</View> | ||
<Text | ||
<View | ||
style={ | ||
Object { | ||
"color": "#9CA4A9", | ||
"fontFamily": "Inter-Regular", | ||
"fontSize": 14, | ||
"lineHeight": 18, | ||
"marginRight": 7, | ||
"alignItems": "center", | ||
"flexDirection": "row", | ||
} | ||
} | ||
/> | ||
> | ||
<Text | ||
style={ | ||
Object { | ||
"color": "#9CA4A9", | ||
"fontFamily": "Inter-Regular", | ||
"fontSize": 14, | ||
"lineHeight": 18, | ||
"marginRight": 7, | ||
} | ||
} | ||
/> | ||
</View> | ||
</View> | ||
</View> | ||
<View | ||
|
@@ -1494,17 +1512,26 @@ exports[`TransferConfirmationCard renders correctly for received transaction dri | |
</svg> | ||
</View> | ||
</View> | ||
<Text | ||
<View | ||
style={ | ||
Object { | ||
"color": "#9CA4A9", | ||
"fontFamily": "Inter-Regular", | ||
"fontSize": 14, | ||
"lineHeight": 18, | ||
"marginRight": 7, | ||
"alignItems": "center", | ||
"flexDirection": "row", | ||
} | ||
} | ||
/> | ||
> | ||
<Text | ||
style={ | ||
Object { | ||
"color": "#9CA4A9", | ||
"fontFamily": "Inter-Regular", | ||
"fontSize": 14, | ||
"lineHeight": 18, | ||
"marginRight": 7, | ||
} | ||
} | ||
/> | ||
</View> | ||
</View> | ||
</View> | ||
<View | ||
|
@@ -1961,17 +1988,26 @@ exports[`TransferConfirmationCard renders correctly for sent escrow transaction | |
</svg> | ||
</View> | ||
</View> | ||
<Text | ||
<View | ||
style={ | ||
Object { | ||
"color": "#9CA4A9", | ||
"fontFamily": "Inter-Regular", | ||
"fontSize": 14, | ||
"lineHeight": 18, | ||
"marginRight": 7, | ||
"alignItems": "center", | ||
"flexDirection": "row", | ||
} | ||
} | ||
/> | ||
> | ||
<Text | ||
style={ | ||
Object { | ||
"color": "#9CA4A9", | ||
"fontFamily": "Inter-Regular", | ||
"fontSize": 14, | ||
"lineHeight": 18, | ||
"marginRight": 7, | ||
} | ||
} | ||
/> | ||
</View> | ||
</View> | ||
</View> | ||
<View | ||
|
@@ -2673,17 +2709,26 @@ exports[`TransferConfirmationCard renders correctly for sent transaction drilldo | |
</svg> | ||
</View> | ||
</View> | ||
<Text | ||
<View | ||
style={ | ||
Object { | ||
"color": "#9CA4A9", | ||
"fontFamily": "Inter-Regular", | ||
"fontSize": 14, | ||
"lineHeight": 18, | ||
"marginRight": 7, | ||
"alignItems": "center", | ||
"flexDirection": "row", | ||
} | ||
} | ||
/> | ||
> | ||
<Text | ||
style={ | ||
Object { | ||
"color": "#9CA4A9", | ||
"fontFamily": "Inter-Regular", | ||
"fontSize": 14, | ||
"lineHeight": 18, | ||
"marginRight": 7, | ||
} | ||
} | ||
/> | ||
</View> | ||
</View> | ||
</View> | ||
<View | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this file looks weird, it's because of
SafetyNet
. It depends onreact-native-securerandom
which doesn't support automatic linking, and when doing it manually it threw an error because this file was missing.This manual linking is the reason for the changes to the
settings.gradle
and the Podfile as well.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would love to fork/fix/upstream after wednesday as good citizens of the open source world
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I like doing that sort of stuff too, but the maintainers don't seem very active. The first reason I had to fork was to add support for AndroidX since it was failing for that reason. There's a PR that adds that from almost a year ago: rajivshah3/react-native-google-safetynet#283 which has this message:
(December 2019)