Skip to content

Conversation

@facetious
Copy link
Contributor

This updates the Android implementation to introduce attachSubDelegate function, reducing code duplication. Using this, 2M PHY selection and Max MTU is also made available.

Making sure to mirror the change to the response on iOS, the MTU is reported as the fixed value of 185.

@farfromrefug
Copy link
Member

@facetious i love it. One change request though. All CLog calls (even erros ) should remain between "if Trace.isEnabled". This is very important in production. If not CLog method arguments will still be evaluated which can be slow and unnecessary. The if is also used to remove the code completely using webpack .
Can you fix it?
Thanks

…lso removes code duplication by introducing attachSubDelegate.
@facetious facetious force-pushed the facetious/multi-notify-listeners branch from 8d0084f to e7dee52 Compare January 6, 2021 18:48
@facetious
Copy link
Contributor Author

No problem. Cleaned up the remaining ones that I missed and squashed it together.

@farfromrefug
Copy link
Member

@facetious ok great so it is ready to merge from your perspective? if so i will merge it right now and test later on (that way we dont end up in the same case as last time).
THanks again

@facetious
Copy link
Contributor Author

I've been using it here locally on iOS and Android and it seems to function as expected. If that's enough for you, then it's good for me. :)

@farfromrefug
Copy link
Member

Enough for now. Won't release yet though. Have a few projects I can test that on.

@farfromrefug farfromrefug merged commit 69ace2e into nativescript-community:master Jan 6, 2021
@facetious facetious deleted the facetious/multi-notify-listeners branch January 20, 2021 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants