-
Notifications
You must be signed in to change notification settings - Fork 88
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
[Android] Extracted native Android code #4
Conversation
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.
Left some remarks
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleAdapter.java
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleAdapter.java
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/Event.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/RefreshGattMoment.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/RefreshGattMoment.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
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.
Additionaly, in original implementation I used SafePromise class to be sure that we may emit only one value or one error in Promise based APIs. Currently this assumption doesn't hold with new, two separate callbacks.
I also think that we should have different API for stream based operations like scanning, monitoring etc. This is something which can be discussed.
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/Event.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/RefreshGattMoment.java
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/errors/ErrorConverter.java
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleAdapter.java
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleAdapter.java
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
android/library/src/main/java/com/polidea/multiplatformbleadapter/BleModule.java
Outdated
Show resolved
Hide resolved
Ad. 1 Fixed. I added OneTimeActionExecutor for this case |
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 have some more remarks, but just read them, create issues for the marked places and merge it if possible. Try not to add more code to this PR.
No description provided.