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

Implement receiving mode #23

Closed
wants to merge 9 commits into from
Closed

Conversation

ekigamba
Copy link
Contributor

@ekigamba ekigamba commented Mar 11, 2019

Fixes #1

@ekigamba ekigamba added BLOCKED and removed BLOCKED labels Mar 11, 2019
- Receive button click shows a dialog notifying the user that we are waiting for a device to connect
- Enable cancel button to cancel the dialog
- Send and receive buttons are disabled when the dialog is shown
- Add Nearby Connections API
- Add Timber dependency
- Add P2PLibrary which will enable adding implementation of interfaces and requirements for the library
- Instantiate the P2pModeSelectInteractor in the P2pModeSelectPresenter
1. Enforce username when initialising username
2. Make the presenter testable by allowing the interactor as a param
3. Enforce initialising the P2PLibrary by introducing a RuntimeException if it is accessed without being intialised. This means that it will fail fast during developmental testing since getInstance has to be called whenever interacting with the library
@ekigamba ekigamba force-pushed the issue/1-implement-receiving-mode branch from 809eab1 to 7d2b8cb Compare March 11, 2019 08:24
1. Add Nearby Connections API permissions check & request
2. Check if location is enabled & request for enabling it if not
3. Add onResume and onActivityResult handlers for the activity
4. Add Permissions util class
Also added P2pModeSelectInteractor tests
@ekigamba ekigamba requested a review from githengi March 12, 2019 09:27
@ekigamba ekigamba closed this Mar 13, 2019
@ekigamba ekigamba deleted the issue/1-implement-receiving-mode branch March 14, 2019 09:58
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.

1 participant