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

WIP - [FIX #4327] Migrate to react-native-firebase #4716

Closed

Conversation

rasom
Copy link
Contributor

@rasom rasom commented Jun 12, 2018

this is just rebased #4446
i will close this PR after testing (just don't want to touch original codebase until we sure that i rebased everything correctly)

status: ready

Copy link
Contributor

@pedropombeiro pedropombeiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found just a merge issue, but compared with my own rebase and all else looks the same.

@@ -211,7 +212,7 @@ dependencies {
implementation "com.android.support:appcompat-v7:26.1.0"
// Force using exact RN version instead of relying on gradle dependency resolution
// https://docs.gradle.org/current/userguide/introduction_dependency_management.html#sec:dependency_resolution
compile ("com.facebook.react:react-native:0.55.4") { force = true } // From node_modules
implementation ("com.facebook.react:react-native:0.53.3") { force = true } // From node_modules
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a merge issue, this should stay at 0.55.4 right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed, thanks

@@ -212,7 +212,7 @@ dependencies {
implementation "com.android.support:appcompat-v7:26.1.0"
// Force using exact RN version instead of relying on gradle dependency resolution
// https://docs.gradle.org/current/userguide/introduction_dependency_management.html#sec:dependency_resolution
implementation ("com.facebook.react:react-native:0.53.3") { force = true } // From node_modules
compile ("com.facebook.react:react-native:0.55.4") { force = true } // From node_modules
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to use implementation though? From original PR: #4446 (comment)

Copy link
Contributor

@pedropombeiro pedropombeiro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, now it's just a question of testing (which I imagine will be good since I tested recently with a similar rebase) and also having your opinion on the actual changes of this PR, to see if we're not introducing something unnecessary to the actual issue.

@rasom rasom self-assigned this Jun 13, 2018
@@ -6,8 +6,8 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.0.0'
classpath 'com.android.tools.build:gradle:3.1.2'
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure that this change is necessary, but not a problem

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is necessary

@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't be required as well

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://rnfirebase.io/docs/v4.2.x/installation/android it seems this change is necessary

@rasom
Copy link
Contributor Author

rasom commented Jun 13, 2018

@pombeirp looks fine for me

@pedropombeiro
Copy link
Contributor

Thanks @rasom!

@pedropombeiro pedropombeiro requested a review from jeluard June 13, 2018 12:02
@@ -211,7 +212,7 @@ dependencies {
implementation "com.android.support:appcompat-v7:26.1.0"
// Force using exact RN version instead of relying on gradle dependency resolution
// https://docs.gradle.org/current/userguide/introduction_dependency_management.html#sec:dependency_resolution
compile ("com.facebook.react:react-native:0.55.4") { force = true } // From node_modules
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous comment applies to the use of compile I believe. @dmitryn Can you comment?

@@ -9,6 +9,8 @@
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want those?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we remove it?


COCOAPODS: 1.3.1
COCOAPODS: 1.5.3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this required?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes it is

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Firebase deps require higher version of cocoapods

- nanopb/decode (0.3.8)
- nanopb/encode (0.3.8)
- Protobuf (3.5.0)
- React (0.55.4):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why changes to versions here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jeluard this file is autogenerated, hard to answer tbh. I suppose it's related to different cocoapods version

@rasom rasom force-pushed the feature/react-native-firebase-migration-4327-rebased branch from be03c23 to 1f73c25 Compare June 13, 2018 15:15
@statustestbot
Copy link

76% of end-end tests have passed

Total executed tests: 29
Failed tests: 7
Passed tests: 22

Failed tests (7)

Click to expand
1. test_send_transaction_from_daap

Waiting 350 seconds for funds
Waiting 360 seconds for funds

E Failed: Balance is not changed during 360 seconds, funds were not received!

Device sessions:

2. test_faucet_console_command

EthAssetText is 0
Waiting 300 seconds for ETH update

E Failed: Balance is not changed during 300 seconds!

Device sessions:

3. test_send_eth_to_request_from_wallet

Wait for SignInPhraseText
Looking for DoneButton

E selenium.common.exceptions.NoSuchElementException: Message: 'DoneButton' is not found on screen, using: 'accessibility id:done-button'

Device sessions:

4. test_delete_1_1_chat

Tap on GotItButton
Looking for full text: '0.00001'

E selenium.common.exceptions.TimeoutException: Message: 'BaseElement' is not found on screen, using: 'xpath://*[@text="0.00001"]', during '60' seconds

Device sessions:

5. test_transaction_send_command_one_to_one_chat

Waiting 290 seconds for donation
Waiting 300 seconds for donation

E Failed: Donation was not received during 300 seconds!

Device sessions:

6. test_send_eth_to_request_in_one_to_one_chat

Wait for SignInPhraseText
Looking for DoneButton

E selenium.common.exceptions.NoSuchElementException: Message: 'DoneButton' is not found on screen, using: 'accessibility id:done-button'

Device sessions:

7. test_set_up_wallet

Waiting 290 seconds for donation
Waiting 300 seconds for donation

E Failed: Donation was not received during 300 seconds!

Device sessions:

Passed tests (22)

Click to expand
1. test_sign_transaction_twice
Device sessions:

2. test_swipe_and_delete_1_1_chat
Device sessions:

3. test_one_to_one_chat_messages
Device sessions:

4. test_copy_and_paste_messages
Device sessions:

5. test_username_and_profile_picture_in_chats
Device sessions:

6. test_send_eth_from_wallet_sign_now
Device sessions:

7. test_open_transaction_on_etherscan
Device sessions:

8. test_incorrect_password
Device sessions:

9. test_backup_seed_phrase_and_recover_account
Device sessions:

10. test_offline_messaging_1_1_chat
Device sessions:

11. test_contact_profile_view
Device sessions:

12. test_public_chat
Device sessions:

13. test_public_chat_management
Device sessions:

14. test_network_switch
Device sessions:

15. test_wallet_error_messages
Device sessions:

16. test_browse_link_entering_url_in_dapp_view
Device sessions:

17. test_transaction_send_command_wrong_password
Device sessions:

18. test_profile_picture
Device sessions:

19. test_switch_users
Device sessions:

20. test_send_stt_from_wallet_via_enter_recipient_address
Device sessions:

21. test_qr_code_and_its_value
Device sessions:

22. test_sign_message_from_daap
Device sessions:

@lukaszfryc lukaszfryc assigned lukaszfryc and unassigned lukaszfryc Jun 18, 2018
@statustestbot
Copy link

100% of end-end tests have passed

Total executed tests: 29
Failed tests: 0
Passed tests: 29

Passed tests (29)

Click to expand
1. test_sign_transaction_twice
Device sessions:

2. test_swipe_and_delete_1_1_chat
Device sessions:

3. test_one_to_one_chat_messages
Device sessions:

4. test_copy_and_paste_messages
Device sessions:

5. test_send_transaction_from_daap
Device sessions:

6. test_faucet_console_command
Device sessions:

7. test_username_and_profile_picture_in_chats
Device sessions:

8. test_send_eth_from_wallet_sign_now
Device sessions:

9. test_open_transaction_on_etherscan
Device sessions:

10. test_send_eth_to_request_from_wallet
Device sessions:

11. test_incorrect_password
Device sessions:

12. test_backup_seed_phrase_and_recover_account
Device sessions:

13. test_offline_messaging_1_1_chat
Device sessions:

14. test_contact_profile_view
Device sessions:

15. test_public_chat
Device sessions:

16. test_public_chat_management
Device sessions:

17. test_network_switch
Device sessions:

18. test_delete_1_1_chat
Device sessions:

19. test_wallet_error_messages
Device sessions:

20. test_transaction_send_command_one_to_one_chat
Device sessions:

21. test_browse_link_entering_url_in_dapp_view
Device sessions:

22. test_transaction_send_command_wrong_password
Device sessions:

23. test_send_eth_to_request_in_one_to_one_chat
Device sessions:

24. test_profile_picture
Device sessions:

25. test_switch_users
Device sessions:

26. test_set_up_wallet
Device sessions:

27. test_send_stt_from_wallet_via_enter_recipient_address
Device sessions:

28. test_qr_code_and_its_value
Device sessions:

29. test_sign_message_from_daap
Device sessions:

@asemiankevich asemiankevich self-assigned this Jun 19, 2018
@rasom rasom force-pushed the feature/react-native-firebase-migration-4327-rebased branch from 1f73c25 to 40e55c8 Compare June 19, 2018 08:33
@status-comment-bot
Copy link

branch PR-4716:
apk uploaded to https://i.diawi.com/QDhKTT
ipa uploaded to https://i.diawi.com/Z3uh1H

@statustestbot
Copy link

93% of end-end tests have passed

Total executed tests: 29
Failed tests: 2
Passed tests: 27

Failed tests (2)

Click to expand
1. test_offline_messaging_1_1_chat

Looking for ShareMyContactKeyButton
Tap on ShareMyContactKeyButton

E TypeError: 'NoneType' object is not subscriptable

Device sessions:

2. test_send_eth_to_request_in_one_to_one_chat

Wait for HomeButton
Looking for IHaveAccountButton

E selenium.common.exceptions.NoSuchElementException: Message: 'IHaveAccountButton' is not found on screen, using: 'xpath://android.widget.TextView[@text='I ALREADY HAVE AN ACCOUNT']'

Device sessions:

Passed tests (27)

Click to expand
1. test_sign_transaction_twice
Device sessions:

2. test_swipe_and_delete_1_1_chat
Device sessions:

3. test_one_to_one_chat_messages
Device sessions:

4. test_copy_and_paste_messages
Device sessions:

5. test_send_transaction_from_daap
Device sessions:

6. test_faucet_console_command
Device sessions:

7. test_username_and_profile_picture_in_chats
Device sessions:

8. test_send_eth_from_wallet_sign_now
Device sessions:

9. test_open_transaction_on_etherscan
Device sessions:

10. test_send_eth_to_request_from_wallet
Device sessions:

11. test_incorrect_password
Device sessions:

12. test_backup_seed_phrase_and_recover_account
Device sessions:

13. test_contact_profile_view
Device sessions:

14. test_public_chat
Device sessions:

15. test_public_chat_management
Device sessions:

16. test_network_switch
Device sessions:

17. test_delete_1_1_chat
Device sessions:

18. test_wallet_error_messages
Device sessions:

19. test_transaction_send_command_one_to_one_chat
Device sessions:

20. test_browse_link_entering_url_in_dapp_view
Device sessions:

21. test_transaction_send_command_wrong_password
Device sessions:

22. test_profile_picture
Device sessions:

23. test_switch_users
Device sessions:

24. test_set_up_wallet
Device sessions:

25. test_send_stt_from_wallet_via_enter_recipient_address
Device sessions:

26. test_qr_code_and_its_value
Device sessions:

27. test_sign_message_from_daap
Device sessions:

@pedropombeiro
Copy link
Contributor

pedropombeiro commented Jun 19, 2018

This PR implies an upgrade to RN 0.55 which contains a regression: facebook/react-native#19339 #4829

We need to wait for a fix before merging this.

@pedropombeiro pedropombeiro changed the title [FIX #4327] Migrate to react-native-firebase WIP - [FIX #4327] Migrate to react-native-firebase Jun 19, 2018
@rasom
Copy link
Contributor Author

rasom commented Aug 13, 2018

@pombeirp @annadanchenko is this task still relevant o we can just close PR?

@pedropombeiro
Copy link
Contributor

It looks like we're already on RN 0.55 and react-native-firebase, so I'd say we can close this.

@pedropombeiro pedropombeiro deleted the feature/react-native-firebase-migration-4327-rebased branch August 13, 2018 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

9 participants