-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: upgrade to RN 0.73.6 #1439
base: main
Are you sure you want to change the base?
feat: upgrade to RN 0.73.6 #1439
Conversation
bac8e18
to
bb4e828
Compare
Signed-off-by: Mostafa Gamal <moscd3@gmail.com> Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
…penwallet-foundation#1433) Signed-off-by: fc-santos <filipesantos@live.ca> Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
…ndation#1427) Signed-off-by: fc-santos <filipesantos@live.ca> Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
…tion#1438) Signed-off-by: ClaudeArs <claudears2474@gmail.com> Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
Signed-off-by: Mostafa Gamal <moscd3@gmail.com> Signed-off-by: Mostafa Gamal <46829557+MosCD3@users.noreply.github.com> Co-authored-by: Bryce McMath <32586431+bryce-mcmath@users.noreply.github.com> Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
Signed-off-by: Bryce McMath <bryce.j.mcmath@gmail.com> Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
8b9707e
to
67219c4
Compare
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
cb500bb
to
634439e
Compare
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
634439e
to
2c420df
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1439 +/- ##
==========================================
+ Coverage 55.52% 55.60% +0.07%
==========================================
Files 223 228 +5
Lines 7985 8176 +191
Branches 2241 2334 +93
==========================================
+ Hits 4434 4546 +112
- Misses 3528 3607 +79
Partials 23 23 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Mostafa Gamal <moscd3@gmail.com>
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
07dcb79
to
9c5813b
Compare
@MosCD3 could we possibly chat about this PR at the Bifold call next week? |
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.
Few things, but awesome work
.github/workflows/main.yaml
Outdated
bundle install && \ | ||
cd ios && \ | ||
rm -rf Pods && \ | ||
rm -f Podfile.lock && \ | ||
pod install && \ | ||
cd .. && \ |
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.
Erasing the lockfile on the main GHA defeats the purpose of a lockfile. This change would stop our build from being deterministic . Can we make use of the same command (ios:setup
) we would use locally? It's alright if we have to update that command a bit as part of this PR but we should still use it.
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.
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.
@bryce-mcmath resolved using the ios:setup command and removed the line of removing the lockfile
if (!__DEV__) { | ||
import('@hyperledger/aries-askar-react-native') | ||
.then(() => { | ||
// console.log('Askar native module loaded successfully') | ||
}) | ||
.catch(() => { | ||
// console.error('Failed to load Askar native module:', error) | ||
}) | ||
} else { | ||
// console.log('Askar native module not loaded in debug mode') | ||
} | ||
|
||
//NOTE: This line is throwing an error in debugging due to native modules is it still needed? maybe the above is a workaround | ||
// to be able to use RNDebugger in debug mode | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
import 'reflect-metadata' | ||
|
||
import { AskarWallet } from '@credo-ts/askar' | ||
import { AskarWallet } from '@credo-ts/askar' // is this enough instead of line number 2 |
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 don't think we should conditionally import. Is the NOTE
for the conditional import above or the reflect-metadata line below?
I don't think reflect-metadata is still needed but we can just test out the app after removing it to find out if that's true. We should remove it from the entire project if possible
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.
@hyperledger/aries-askar-react-native
is that needed Bryce, we already importing AzkarWallet from credo
This import is causing issues with real native chrome debugger, if its not needed anymore its better to remove the whole statement
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.
Probably fine, we should just check that without that import we are still able to accept credentials and view / delete them after an app restart
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 tested the flow works fine without this import
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'm good to get rid of it then, thanks for checking 👍
@@ -203,7 +203,7 @@ exports[`VerifierCredentialCard Component Renders correctly 1`] = ` | |||
removeClippedSubviews={false} | |||
renderItem={[Function]} | |||
scrollEnabled={false} | |||
scrollEventThrottle={50} | |||
scrollEventThrottle={0.0001} |
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.
What caused this change?
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.
this was part of the snapshot update
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.
hello bryce,
sorry for the late reply ,
so for the change in snapshot it is related to how react native is implementing virualized list
so here is the version that you had for v0.72.17:
https://github.com/facebook/react-native/blob/v0.72.17/packages/virtualized-lists/Lists/VirtualizedList.js
to cut the story short check
https://github.com/facebook/react-native/blob/6304cce015e4260b914aafd98d37ccdf5c3f2150/packages/virtualized-lists/Lists/VirtualizedList.js#L118C1-L121C2
which states that the default for scrollEventThrottle is 50
and here is the implementation of VirtualizedList in v0.73.6:
https://github.com/facebook/react-native/blob/v0.73.6/packages/virtualized-lists/Lists/VirtualizedList.js
which is stating the default value to be 0.0001 check:
https://github.com/facebook/react-native/blob/0384caad3458f7658e68653a0ab62fd6cc3e4483/packages/virtualized-lists/Lists/VirtualizedList.js#L1078
and hence the change was done in the snapshot
Co-authored-by: Bryce McMath <32586431+bryce-mcmath@users.noreply.github.com> Signed-off-by: Mostafa Gamal <46829557+MosCD3@users.noreply.github.com>
Authentication with a PIN is broken - react-native-keychain needs to be updated to at least 8.1.2 for RN 7.3 support. There is an Android bug fixed in 8.1.3 that allowed Biometric authentication to be bypassed if someone had recently authenticated. There are also some security enhancements in later releases that should be considered for a future PR. https://github.com/oblador/react-native-keychain/releases |
Decided on the call today to update this to 0.73.6. |
Looks like the iOS build is failing. Any status on the android side of the update @MosCD3? |
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
c59d34f
to
5b81d7a
Compare
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
1b85431
to
8110492
Compare
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
ab320ea
to
88354fe
Compare
Signed-off-by: Mohamed Abd El-Samie Ahmad Mansour <masmas04@gmail.com>
88354fe
to
7551098
Compare
|
Summary of Changes
iOS part done so far
All changes re-reviewed and re-done by @MaSMas0
New version supports experimental and chrome debugger (RN Debugger)
Added menu to start chrome debugger
Replace this text with a high-level summary of the changes included in this PR.
Screenshots, videos, or gifs
Replace this text with embedded media for UI changes if they are included in this PR. If there are none, simply enter N/A
Breaking change guide
Replace this text with any breaking changes included in this PR along with how to address them in downstream projects. If there are none, simply enter N/A
Related Issues
Replace this text with issue #'s that are relevant to this PR. If there are none, simply enter N/A
Pull Request Checklist
Tick all boxes below to demonstrate that you have completed the respective task. If the item does not apply to your this PR check it anyway to make it apparent that there's nothing to do.
Signed-off-by
line (we use the DCO GitHub app to enforce this)If you have any questions to any of the points above, just submit and ask! This checklist is here to help you, not to deter you from contributing!
Pro Tip 🤓