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

audio messages #10810

Merged
merged 1 commit into from
Jul 29, 2020
Merged

audio messages #10810

merged 1 commit into from
Jul 29, 2020

Conversation

tbenr
Copy link
Contributor

@tbenr tbenr commented Jun 14, 2020

fixes #10669

Audio message implementation started

Uses a fork of react-native-audio-toolkit https://github.com/tbenr/react-native-audio-toolkit/tree/v2.0.3-status-v6 which implements

  • metering while recording
  • audio playback of base64 inline audio URL (data:audio/mp3;base64,UklGRhwMAABXQVZF...)
  • fix to various bugs

recording params are: aac, 22050khz, mono, 32kbs

activity tracking:

sender side:

  • audio recording
  • recording playback
  • send base64 audio message
  • recording pause
  • fix issue on android recording pause (need to cherrypick as audiotoolkit pr)
  • max 120sec recording
  • delete file on recording canceled\sent
  • code cleanup\refactoring
  • UI
  • change show\hide behaviour of cancel\send button
  • add remain awake module during recording

receiver side (chat view)

  • receive base64 audio and prepare player
  • playback
  • issue (ios only?): audio length is unknown before first playback
  • seeking
  • code cleanup\refactoring
  • UI
  • slider: revert to default thumb and use tint color
  • slider: increase update freq or animate

status: ready

@tbenr tbenr requested review from jakubgs and a team as code owners June 14, 2020 18:53
@ghost
Copy link

ghost commented Jun 14, 2020

mobile/js_files/yarn.lock changed. Pinging @jakubgs and @corpetty

@status-im-auto
Copy link
Member

status-im-auto commented Jun 14, 2020

Jenkins Builds

Click to see older builds (138)
Commit #️⃣ Finished (UTC) Duration Platform Result
8e85a27 #1 2020-06-14 18:57:14 ~3 min android 📄log
8e85a27 #1 2020-06-14 18:59:54 ~5 min ios 📄log
✖️ 8e85a27 #1 2020-06-14 19:03:58 ~9 min android-e2e 📦apk 📲
7568b14 #2 2020-06-16 08:22:49 ~4 min ios 📄log
7568b14 #2 2020-06-16 08:22:51 ~4 min android 📄log
✖️ 7568b14 #2 2020-06-16 08:27:43 ~9 min android-e2e 📦apk 📲
e3facfb #3 2020-06-16 08:49:02 ~2 min android-e2e 📄log
e3facfb #3 2020-06-16 08:50:36 ~4 min ios 📄log
e3facfb #3 2020-06-16 08:51:27 ~5 min android 📄log
dec70b8 #4 2020-06-16 09:18:41 ~4 min ios 📄log
✖️ dec70b8 #4 2020-06-16 09:27:33 ~13 min android 📦apk 📲
✔️ dec70b8 #4 2020-06-16 09:33:28 ~19 min android-e2e 📦apk 📲
✔️ dec70b8 #5 2020-06-16 09:51:36 ~14 min ios 📦ipa 📲
✔️ dec70b8 #5 2020-06-16 10:15:25 ~14 min android 📦apk 📲
✔️ d24f9cd #5 2020-06-16 20:13:43 ~9 min android-e2e 📦apk 📲
✔️ d24f9cd #6 2020-06-16 20:15:54 ~11 min android 📦apk 📲
✔️ d24f9cd #6 2020-06-16 20:19:13 ~14 min ios 📦ipa 📲
✖️ 5be6c35 #6 2020-06-17 18:50:39 ~9 min android-e2e 📦apk 📲
✖️ 5be6c35 #7 2020-06-17 18:54:54 ~13 min android 📦apk 📲
✖️ 5be6c35 #7 2020-06-17 18:56:31 ~14 min ios 📦ipa 📲
✖️ 93872dc #8 2020-06-18 09:03:52 ~16 min android 📦apk 📲
✖️ 93872dc #7 2020-06-18 09:04:34 ~17 min android-e2e 📦apk 📲
✖️ 93872dc #8 2020-06-18 09:12:08 ~24 min ios 📦ipa 📲
✔️ d85c896 #8 2020-06-18 09:33:02 ~12 min android-e2e 📦apk 📲
✔️ d85c896 #9 2020-06-18 09:35:01 ~14 min ios 📦ipa 📲
✔️ d85c896 #9 2020-06-18 09:40:06 ~19 min android 📦apk 📲
✔️ 6bae7e0 #9 2020-06-19 16:33:15 ~10 min android-e2e 📦apk 📲
✔️ 6bae7e0 #10 2020-06-19 16:34:52 ~11 min android 📦apk 📲
✔️ 6bae7e0 #10 2020-06-19 16:39:32 ~15 min ios 📦ipa 📲
✔️ 4eab53a #10 2020-06-20 13:41:20 ~10 min android-e2e 📦apk 📲
✔️ 4eab53a #11 2020-06-20 13:43:01 ~11 min android 📦apk 📲
✔️ 4eab53a #11 2020-06-20 13:47:46 ~15 min ios 📦ipa 📲
✔️ b40012b #11 2020-06-21 15:44:42 ~9 min android-e2e 📦apk 📲
✔️ b40012b #12 2020-06-21 15:47:02 ~11 min android 📦apk 📲
✔️ b40012b #12 2020-06-21 15:51:24 ~15 min ios 📦ipa 📲
✔️ 3c940bb #12 2020-06-21 19:08:16 ~8 min android-e2e 📦apk 📲
✔️ 3c940bb #13 2020-06-21 19:10:16 ~10 min android 📦apk 📲
✔️ 3c940bb #13 2020-06-21 19:14:35 ~14 min ios 📦ipa 📲
✔️ 236cb6f #13 2020-06-24 07:15:15 ~12 min android-e2e 📦apk 📲
✔️ 236cb6f #14 2020-06-24 07:18:49 ~15 min android 📦apk 📲
✔️ 236cb6f #14 2020-06-24 07:21:18 ~17 min ios 📦ipa 📲
✔️ 35be749 #14 2020-06-24 18:24:50 ~12 min android-e2e 📦apk 📲
✔️ 35be749 #15 2020-06-24 18:29:12 ~16 min android 📦apk 📲
✔️ 35be749 #15 2020-06-24 18:31:42 ~18 min ios 📦ipa 📲
d421d0b #16 2020-06-27 10:46:39 ~7 min ios 📄log
✔️ d421d0b #15 2020-06-27 10:47:52 ~9 min android-e2e 📦apk 📲
✔️ d421d0b #16 2020-06-27 10:51:58 ~12 min android 📦apk 📲
✔️ a5fd34f #16 2020-06-29 23:03:07 ~8 min android-e2e 📦apk 📲
✔️ a5fd34f #17 2020-06-29 23:05:38 ~10 min android 📦apk 📲
✔️ a5fd34f #17 2020-06-29 23:10:59 ~16 min ios 📦ipa 📲
add8114 #18 2020-07-01 08:55:36 ~7 min ios 📄log
✔️ add8114 #18 2020-07-01 08:57:07 ~9 min android 📦apk 📲
✔️ add8114 #17 2020-07-01 09:11:33 ~23 min android-e2e 📦apk 📲
✔️ b7679ac #18 2020-07-03 15:26:28 ~10 min android-e2e 📦apk 📲
✔️ b7679ac #19 2020-07-03 15:27:55 ~11 min android 📦apk 📲
✔️ b7679ac #19 2020-07-03 15:30:56 ~14 min ios 📦ipa 📲
✔️ 2c29f6f #19 2020-07-06 18:33:36 ~8 min android-e2e 📦apk 📲
✔️ 2c29f6f #20 2020-07-06 18:35:31 ~10 min android 📦apk 📲
✔️ 2c29f6f #20 2020-07-06 18:38:48 ~13 min ios 📦ipa 📲
b46adec #20 2020-07-09 16:06:24 ~19 sec android-e2e 📄log
b46adec #21 2020-07-09 16:06:38 ~16 sec android 📄log
b46adec #21 2020-07-09 16:06:56 ~17 sec ios 📄log
543a684 #21 2020-07-09 16:15:37 ~15 sec android-e2e 📄log
543a684 #22 2020-07-09 16:15:52 ~14 sec android 📄log
543a684 #22 2020-07-09 16:16:11 ~15 sec ios 📄log
✔️ b4e0745 #22 2020-07-11 18:34:04 ~11 min android-e2e 📦apk 📲
✔️ b4e0745 #23 2020-07-11 18:37:04 ~14 min android 📦apk 📲
✔️ b4e0745 #23 2020-07-11 18:39:21 ~16 min ios 📦ipa 📲
✔️ bc3fd4a #23 2020-07-13 18:29:50 ~8 min android-e2e 📦apk 📲
✔️ bc3fd4a #24 2020-07-13 18:31:51 ~10 min android 📦apk 📲
✔️ bc3fd4a #24 2020-07-13 18:34:43 ~12 min ios 📦ipa 📲
✔️ 2e15b33 #24 2020-07-13 22:13:32 ~8 min android-e2e 📦apk 📲
✔️ 2e15b33 #25 2020-07-13 22:15:49 ~10 min android 📦apk 📲
✔️ 2e15b33 #25 2020-07-13 22:18:43 ~12 min ios 📦ipa 📲
7c2a4a4 #26 2020-07-14 11:09:16 ~6 min ios 📄log
✔️ 7c2a4a4 #25 2020-07-14 11:11:42 ~9 min android-e2e 📦apk 📲
✔️ 7c2a4a4 #26 2020-07-14 11:14:08 ~11 min android 📦apk 📲
✔️ 1c209e4 #26 2020-07-14 12:03:24 ~9 min android-e2e 📦apk 📲
✔️ 1c209e4 #27 2020-07-14 12:08:33 ~14 min android 📦apk 📲
✔️ 1c209e4 #27 2020-07-14 12:08:51 ~14 min ios 📦ipa 📲
✔️ f0c55b7 #27 2020-07-14 22:47:25 ~8 min android-e2e 📦apk 📲
✔️ f0c55b7 #28 2020-07-14 22:50:18 ~10 min android 📦apk 📲
✔️ f0c55b7 #28 2020-07-14 22:52:34 ~12 min ios 📦ipa 📲
400e906 #28 2020-07-15 20:35:01 ~3 min android-e2e 📄log
400e906 #29 2020-07-15 20:35:57 ~4 min android 📄log
400e906 #29 2020-07-15 20:46:20 ~14 min ios 📄log
aa88a0d #29 2020-07-15 21:04:08 ~2 min android-e2e 📄log
aa88a0d #30 2020-07-15 21:04:44 ~3 min android 📄log
aa88a0d #30 2020-07-15 21:14:55 ~12 min ios 📄log
✔️ d3d4b76 #30 2020-07-15 21:56:39 ~8 min android-e2e 📦apk 📲
✔️ d3d4b76 #31 2020-07-15 21:58:50 ~10 min android 📦apk 📲
✔️ d3d4b76 #31 2020-07-15 22:02:50 ~13 min ios 📦ipa 📲
✔️ ceccfa3 #31 2020-07-15 22:20:16 ~8 min android-e2e 📦apk 📲
✔️ ceccfa3 #32 2020-07-15 22:22:35 ~10 min android 📦apk 📲
✔️ ceccfa3 #32 2020-07-15 22:25:32 ~12 min ios 📦ipa 📲
✔️ 6249d11 #32 2020-07-16 00:22:55 ~8 min android-e2e 📦apk 📲
✔️ 6249d11 #33 2020-07-16 00:24:47 ~9 min android 📦apk 📲
✔️ 6249d11 #33 2020-07-16 00:27:54 ~12 min ios 📦ipa 📲
✔️ 234841f #33 2020-07-16 00:38:41 ~8 min android-e2e 📦apk 📲
✔️ 234841f #34 2020-07-16 00:41:02 ~10 min android 📦apk 📲
✔️ 234841f #34 2020-07-16 00:43:54 ~12 min ios 📦ipa 📲
✔️ 8854ce0 #34 2020-07-16 22:29:58 ~8 min android-e2e 📦apk 📲
✔️ 8854ce0 #35 2020-07-16 22:31:42 ~10 min android 📦apk 📲
✔️ 8854ce0 #35 2020-07-16 22:34:53 ~12 min ios 📦ipa 📲
✔️ 856c3b6 #35 2020-07-20 16:42:18 ~8 min android-e2e 📦apk 📲
✔️ 856c3b6 #36 2020-07-20 16:44:45 ~11 min android 📦apk 📲
✔️ 856c3b6 #36 2020-07-20 16:47:59 ~14 min ios 📦ipa 📲
✔️ ce0a5a9 #36 2020-07-20 22:55:24 ~7 min android-e2e 📦apk 📲
✔️ ce0a5a9 #37 2020-07-20 22:57:32 ~9 min android 📦apk 📲
✔️ ce0a5a9 #37 2020-07-20 23:01:42 ~13 min ios 📦ipa 📲
✔️ 3503e46 #37 2020-07-20 23:40:11 ~7 min android-e2e 📦apk 📲
✔️ 3503e46 #38 2020-07-20 23:42:14 ~9 min android 📦apk 📲
✔️ 3503e46 #38 2020-07-20 23:45:39 ~12 min ios 📦ipa 📲
✔️ 07eeeaf #38 2020-07-22 19:38:51 ~9 min android-e2e 📦apk 📲
✔️ 07eeeaf #39 2020-07-22 19:40:57 ~10 min android 📦apk 📲
✔️ 07eeeaf #39 2020-07-22 19:45:05 ~14 min ios 📦ipa 📲
✔️ 4319d7c #39 2020-07-22 20:01:12 ~13 min android-e2e 📦apk 📲
✔️ 4319d7c #40 2020-07-22 20:01:16 ~13 min android 📦apk 📲
✔️ 4319d7c #40 2020-07-22 20:01:47 ~13 min ios 📦ipa 📲
✔️ 18248e7 #40 2020-07-22 20:31:08 ~8 min android-e2e 📦apk 📲
✔️ 18248e7 #41 2020-07-22 20:32:58 ~9 min android 📦apk 📲
6e0e815 #42 2020-07-22 20:41:13 ~4 min ios 📄log
✔️ 6e0e815 #41 2020-07-22 20:44:06 ~8 min android-e2e 📦apk 📲
✔️ 1288f3f #42 2020-07-22 20:52:50 ~8 min android-e2e 📦apk 📲
✔️ 1288f3f #43 2020-07-22 20:55:55 ~10 min android 📦apk 📲
✔️ 1288f3f #43 2020-07-22 20:58:23 ~13 min ios 📦ipa 📲
✔️ 3f8d2e2 #43 2020-07-22 21:20:56 ~8 min android-e2e 📦apk 📲
✔️ 3f8d2e2 #44 2020-07-22 21:23:11 ~10 min android 📦apk 📲
✔️ 3f8d2e2 #44 2020-07-22 21:26:19 ~13 min ios 📦ipa 📲
✔️ 19b3547 #44 2020-07-23 18:15:48 ~8 min android-e2e 📦apk 📲
✔️ 19b3547 #45 2020-07-23 18:18:01 ~10 min android 📦apk 📲
✔️ 19b3547 #45 2020-07-23 18:21:46 ~13 min ios 📦ipa 📲
19b3547 #46 2020-07-27 11:22:54 ~3 min ios 📄log
✔️ 19b3547 #47 2020-07-27 11:43:34 ~13 min ios 📦ipa 📲
db51db8 #48 2020-07-27 15:48:48 ~6 min ios 📄log
✔️ db51db8 #45 2020-07-27 16:00:53 ~18 min android-e2e 📦apk 📲
✔️ db51db8 #46 2020-07-27 16:00:58 ~18 min android 📦apk 📲
db51db8 #49 2020-07-28 09:34:34 ~3 min ios 📄log
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 5e370d7 #46 2020-07-28 11:20:43 ~13 min android-e2e 📦apk 📲
✔️ 5e370d7 #47 2020-07-28 11:22:04 ~14 min android 📦apk 📲
✔️ 5e370d7 #50 2020-07-28 11:24:01 ~15 min ios 📦ipa 📲
✔️ 6a29c70 #47 2020-07-28 13:21:54 ~10 min android-e2e 📦apk 📲
✔️ 6a29c70 #48 2020-07-28 13:22:02 ~10 min android 📦apk 📲
✔️ 6a29c70 #51 2020-07-28 13:26:11 ~14 min ios 📦ipa 📲

@ghost
Copy link

ghost commented Jun 14, 2020

mobile/js_files/yarn.lock changed. Pinging @jakubgs and @corpetty

@ghost
Copy link

ghost commented Jun 16, 2020

mobile/js_files/yarn.lock changed. Pinging @jakubgs and @corpetty

1 similar comment
@ghost
Copy link

ghost commented Jun 16, 2020

mobile/js_files/yarn.lock changed. Pinging @jakubgs and @corpetty

@tbenr
Copy link
Contributor Author

tbenr commented Jun 16, 2020

i added a testing ui to play with audio formats for interoperability testing and audio quality\size balancing

@ghost
Copy link

ghost commented Jun 16, 2020

mobile/js_files/yarn.lock changed. Pinging @jakubgs and @corpetty

@ghost
Copy link

ghost commented Jun 16, 2020

mobile/js_files/yarn.lock changed. Pinging @jakubgs and @corpetty

@ghost
Copy link

ghost commented Jun 16, 2020

mobile/js_files/yarn.lock changed. Pinging @jakubgs and @corpetty

@@ -10,6 +10,7 @@
"app:android": "react-native run-android"
},
"dependencies": {
"@react-native-community/audio-toolkit": "git+https://github.com/tbenr/react-native-audio-toolkit.git#v2.0.3-status",
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need yet another fork of a package?

@@ -419,6 +421,7 @@ DEPENDENCIES:
- React-RCTVibration (from `../node_modules/react-native/Libraries/Vibration`)
- ReactCommon/callinvoker (from `../node_modules/react-native/ReactCommon`)
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
- "ReactNativeAudioToolkit (from `../node_modules/@react-native-community/audio-toolkit`)"
Copy link
Member

Choose a reason for hiding this comment

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

Why is this the only one quoted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i haven't edit this maually.. i just did make shell -> yarn add ... and make nix-update-pods
i think all @react-native-community modules has "@" so you have all them quoted

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I pinged react-native-community lol.

Copy link
Member

Choose a reason for hiding this comment

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

I see.

@jakubgs
Copy link
Member

jakubgs commented Jun 16, 2020

Looks like there's an issue with your dependency:

error: cannot update ref 'refs/heads/v2.0.3-status': trying to write non-commit object 53e823d1bd0dffd7bf799ccfb8fccd3e4023d00f to branch 'refs/heads/v2.0.3-status'

Have you at any point updated the v2.0.3-status tag?

@tbenr
Copy link
Contributor Author

tbenr commented Jun 16, 2020

Looks like there's an issue with your dependency:

error: cannot update ref 'refs/heads/v2.0.3-status': trying to write non-commit object 53e823d1bd0dffd7bf799ccfb8fccd3e4023d00f to branch 'refs/heads/v2.0.3-status'

Have you at any point updated the v2.0.3-status tag?

I dont think so, we discussed earlier this point so i should had care of it.
when happend nix was also failing locally too

@jakubgs
Copy link
Member

jakubgs commented Jun 16, 2020

I will need to take a look and debug yarn2nix I guess.

@jakubgs
Copy link
Member

jakubgs commented Jun 16, 2020

I think I found the issue: NixOS/nix#2385

According to a commit that closed that issue:

only non-annotated tags can be fetched

NixOS/nix@ae244af

But that line isn't there in current version of docs:
https://nixos.org/nix/manual/#ssec-builtins

Which doesn't make much sense to me. I'll try to reproduce.

@jakubgs
Copy link
Member

jakubgs commented Jun 16, 2020

Yup, tested it with a simple Nix derivation:

(import <nixpkgs> {}).stdenv.mkDerivation {
  name = "test";
  src = builtins.fetchGit {
    url = "https://github.com/tbenr/react-native-audio-toolkit.git";
    ref = "v2.0.3-status";
  };
}

And it fails the same way:

 > nix-build --show-trace
error: cannot update ref 'refs/heads/v2.0.3-status': trying to write non-commit object 53e823d1bd0dffd7bf799ccfb8fccd3e4023d00f to branch 'refs/heads/v2.0.3-status'
error: while evaluating the attribute 'src' of the derivation 'test' at /home/sochan/soft/nix-fetchgit-test/default.nix:2:3:
program 'git' failed with exit code 1

But it fetches it without issues if I change the ref to be v2.0.3:

 > nix-build --show-trace
these derivations will be built:
  /nix/store/gm72l91mw8bd5wy9s84bzca4xi557xyd-test.drv
building '/nix/store/gm72l91mw8bd5wy9s84bzca4xi557xyd-test.drv'...
unpacking sources
unpacking source archive /nix/store/vg34709b4dgkz4hndq3gzhhk2f66ngyr-source
source root is source
...

And when I checkout the repo the issue is clearly that v2.0.3-status is an annotated tag:

 > git for-each-ref | grep v2.0.3
96197e3d6643d47b86267bcc6cb29cb26536e226 commit	refs/tags/v2.0.3
53e823d1bd0dffd7bf799ccfb8fccd3e4023d00f tag	refs/tags/v2.0.3-status

@jakubgs
Copy link
Member

jakubgs commented Jun 16, 2020

I created an issue about it: #10825
It looks like you must have used an -a/--annotated flag when creating the tag.

@tbenr
Copy link
Contributor Author

tbenr commented Jun 16, 2020

I created an issue about it: #10825
It looks like you must have used an -a/--annotated flag when creating the tag.

yes i did. I'll change it if continues failing. Thanks!!!

@ghost
Copy link

ghost commented Jun 16, 2020

mobile/js_files/yarn.lock changed. Pinging @jakubgs and @corpetty

1 similar comment
@ghost
Copy link

ghost commented Jun 16, 2020

mobile/js_files/yarn.lock changed. Pinging @jakubgs and @corpetty

@ghost
Copy link

ghost commented Jun 16, 2020

mobile/js_files/yarn.lock changed. Pinging @jakubgs and @corpetty

2 similar comments
@ghost
Copy link

ghost commented Jun 16, 2020

mobile/js_files/yarn.lock changed. Pinging @jakubgs and @corpetty

@ghost
Copy link

ghost commented Jun 16, 2020

mobile/js_files/yarn.lock changed. Pinging @jakubgs and @corpetty

@flexsurfer
Copy link
Member

yes not blockers just questions

@tbenr
Copy link
Contributor Author

tbenr commented Jul 27, 2020

@churik great!
@flexsurfer
I left the audio player under the hood, to check audio recording and get actual duration before sending. So it is just matter of designing a convenient UI\interaction for the playback. Within this possible redesign we could think if move to press&hold or leave the "click" style. We need to consider how you are going to "pause" recording if we want to change.

@cammellos
Copy link
Contributor

@tbenr again, amazing work!
I have merged the status-go code,
could you pleas update your branch to use the tag:
v0.56.1

maks shell 
scripts/update-status-go.sh 'v0.56.1'

After that is ready to be merged on my side.
Thank you!

(on-error {:error (.-err %) :message (.-message %)})
(on-seek)))))

(defn canPlay? [player]
Copy link
Member

Choose a reason for hiding this comment

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

can-play?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh yes..

:content-type constants/content-type-audio
:audio-path audio-path
:audio-duration-ms duration
:text "Update to latest version to listen to an audio message here!"})))
Copy link
Member

Choose a reason for hiding this comment

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

probably we need to translate this, not sure

@@ -1237,7 +1242,8 @@
(fx/defn on-going-in-background [{:keys [db now]}]
{:db (-> db
(dissoc :app-active-since)
(assoc :app-in-background-since now))})
(assoc :app-in-background-since now))
:dispatch-n '([:audio-recorder/on-background] [:audio-message/on-background])})
Copy link
Member

Choose a reason for hiding this comment

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

just wondering why list?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@flexsurfer you're concerned because i fire two events or because it is a list?

Copy link
Member

Choose a reason for hiding this comment

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

last one :) usually vector is used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

don't even remember from where i took that :) i'll change it later

@flexsurfer
Copy link
Member

not sure if ios fail related to this PR, i would merge it, but let's wait for Jakub

@tbenr
Copy link
Contributor Author

tbenr commented Jul 28, 2020

@flexsurfer noticed that lately ios build sometime fails. shortly I'll push your suggestions and let's see if builds.

@churik
Copy link
Member

churik commented Jul 28, 2020

@tbenr @flexsurfer should I retest briefly?

@tbenr
Copy link
Contributor Author

tbenr commented Jul 28, 2020

@flexsurfer fixed all.
@churik don't think so, changes are minimal. Another check from @flexsurfer should be enough

@flexsurfer
Copy link
Member

we could run e2e just to make sure, no manual testing needed

@tbenr
Copy link
Contributor Author

tbenr commented Jul 28, 2020

I need you @cammellos to resolve the status-go conflict :-)

@cammellos
Copy link
Contributor

@tbenr you can keep the version in this branch (v0.56.1) as it includes the previous changes

@status-im-auto
Copy link
Member

97% of end-end tests have passed

Total executed tests: 98
Failed tests: 3
Passed tests: 95

Failed tests (3)

Click to expand
1. test_keycard_can_see_all_transactions_in_history

Device 1: DetailsTextElement is 0xc039f82eceda458b63a0f327b7b0c20def5903d7
Device 1: Tap on BackButton

Device 1: 'TransactionElement' is not found on the screen

Device sessions

2. test_pair_devices_sync_one_to_one_contacts_public_chat

Device 2: PlusButton element not found
Device 2: Looking for an element by text part: 'after-pairing'

"sent after sync" message in 1-1 is not synced

Device sessions

3. test_fetching_balance_after_offline

Device 1: Wait for EnterPasswordInput
Device 1: EnterPasswordInput element not found

Device 1: 'EnterPasswordInput' is not found on the screen

Device sessions

Passed tests (95)

Click to expand
1. test_request_public_key_status_test_daap
Device sessions

2. test_open_public_chat_using_deep_link
Device sessions

3. test_ens_username_recipient
Device sessions

4. test_offline_status
Device sessions

5. test_open_transaction_on_etherscan
Device sessions

6. test_open_chat_by_pasting_public_key
Device sessions

7. test_back_forward_buttons_browsing_website
Device sessions

8. test_password_in_logcat_creating_account
Device sessions

9. test_can_use_purchased_stickers_on_recovered_account
Device sessions

10. test_insufficient_funds_wallet_positive_balance
Device sessions

11. test_mobile_data_usage_settings
Device sessions

12. test_open_google_com_via_open_dapp
Device sessions

13. test_logcat_backup_recovery_phrase
Device sessions

14. test_unread_messages_counter_public_chat
Device sessions

15. test_send_two_transactions_one_after_another_in_dapp
Device sessions

16. test_user_can_switch_network
Device sessions

17. test_public_chat_clear_history
Device sessions

18. test_wallet_set_up
Device sessions

19. test_timestamp_in_chats
Device sessions

20. test_delete_chats_via_delete_button
Device sessions

21. test_add_account_to_multiaccount_instance_seed_phrase
Device sessions

22. test_fetch_more_history_in_empty_chat
Device sessions

23. test_push_notification_1_1_chat
Device sessions

24. test_mobile_data_usage_popup_continue_syncing
Device sessions

25. test_keycard_fetching_balance_after_offline
Device sessions

26. test_add_to_contacts
Device sessions

27. test_dapps_permissions
Device sessions

28. test_long_press_delete_clear_all_dapps
Device sessions

29. test_need_help_section
Device sessions

30. test_transaction_wrong_password_wallet
Device sessions

31. test_offline_messaging_1_1_chat
Device sessions

32. test_add_account_to_multiaccount_instance_private_key
Device sessions

33. test_text_message_1_1_chat
Device sessions

34. test_install_pack_and_send_sticker
Device sessions

35. test_send_eth_in_1_1_chat
Device sessions

36. test_image_in_one_to_one_send_save_reply
Device sessions

37. test_send_emoji
Device sessions

38. test_copy_and_paste_messages
Device sessions

39. test_keycard_send_eth_in_1_1_chat
Device sessions

40. test_restore_account_from_mnemonic_to_keycard
Device sessions

41. test_add_account_to_multiaccount_instance_generate_new
Device sessions

42. test_send_eth_from_wallet_to_address
Device sessions

43. test_messaging_in_different_networks
Device sessions

44. test_start_chat_with_ens
Device sessions

45. test_logcat_recovering_account
Device sessions

46. test_offline_add_new_group_chat_member
Device sessions

47. test_connection_is_secure
Device sessions

48. test_keycard_send_transaction_from_daap
Device sessions

49. test_user_can_see_all_own_assets_after_account_recovering
Device sessions

50. test_send_eth_to_ens_in_chat
Device sessions

51. test_keycard_sign_message_from_daap
Device sessions

52. test_long_press_to_delete_chat
Device sessions

53. test_add_and_remove_contact_from_public_chat
Device sessions

54. test_send_transaction_from_daap
Device sessions

55. test_onboarding_screen_when_requesting_tokens_for_recovered_account
Device sessions

56. test_keycard_send_eth_from_wallet_to_address
Device sessions

57. test_keycard_send_two_transactions_one_after_another_in_dapp
Device sessions

58. test_add_and_delete_watch_only_account_to_multiaccount_instance
Device sessions

59. test_open_blocked_site
Device sessions

60. test_refresh_button_browsing_app_webview
Device sessions

61. test_public_chat_messaging
Device sessions

62. test_pass_phrase_validation
Device sessions

63. test_send_token_with_7_decimals
Device sessions

64. test_sign_message_from_daap
Device sessions

65. test_recover_account_from_new_user_seedphrase
Device sessions

66. test_add_new_keycard_account_and_login
Device sessions

67. test_decline_transactions_in_1_1_chat
Device sessions

68. test_send_and_open_links
Device sessions

69. test_manage_assets
Device sessions

70. test_share_contact_code_and_wallet_address
Device sessions

71. test_send_transaction_with_custom_token
Device sessions

72. test_keycard_send_eth_to_ens (TestRail link is not found)
Device sessions

73. test_can_recover_keycard_account_card_pairing
Device sessions

74. test_request_and_receive_stt_in_1_1_chat_offline
Device sessions

75. test_redirect_to_public_chat_tapping_tag_message
Device sessions

76. test_block_user_from_public_chat
Device sessions

77. test_ens_in_public_and_1_1_chats
Device sessions

78. test_create_new_group_chat
Device sessions

79. test_password_in_logcat_sign_in
Device sessions

80. test_account_recovery_with_uppercase_recovery_phrase
Device sessions

81. test_mobile_data_usage_popup_stop_syncing
Device sessions

82. test_send_non_english_message_to_newly_added_contact
Device sessions

83. test_collectible_from_wallet_opens_in_browser_view
Device sessions

84. test_contact_profile_view
Device sessions

85. test_keycard_send_two_transactions_in_batch_in_dapp
Device sessions

86. test_switch_users_and_add_new_account
Device sessions

87. test_send_two_transactions_in_batch_in_dapp
Device sessions

88. test_filters_from_daap
Device sessions

89. test_login_with_new_account
Device sessions

90. test_home_view
Device sessions

91. test_log_level_and_fleet
Device sessions

92. test_can_add_existing_ens
Device sessions

93. test_copy_contact_code_and_wallet_address
Device sessions

94. test_can_see_all_transactions_in_history
Device sessions

95. test_keycard_request_and_receive_stt_in_1_1_chat_offline (TestRail link is not found)
Device sessions

@cammellos
Copy link
Contributor

cammellos commented Jul 28, 2020

  1. test_pair_devices_sync_one_to_one_contacts_public_chat

Is a bug in status-go, not related to this PR and will be fixed in a separate PR status-im/status-go#2006

@churik
Copy link
Member

churik commented Jul 29, 2020

other failures are not related to this PR. Ready to merge @cammellos

@cammellos cammellos merged commit 86700f2 into status-im:develop Jul 29, 2020
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
@jinhojang6
Copy link
Contributor

Fantastic work! @tbenr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Audio Messages 🗣️💬