-
Notifications
You must be signed in to change notification settings - Fork 0
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
initial-functionality-of-permission-monitoring-machine #2
Commits on Mar 13, 2024
-
Added xstate "^5.9.1" as a dependency in package.json for state management.
Configuration menu - View commit details
-
Copy full SHA for e99e0da - Browse repository at this point
Copy the full SHA e99e0daView commit details -
feat(permission): Add permission monitoring machine
Added a permission monitoring machine with states for idle, checkingPermission, permissionGranted, permissionDenied, and permissionRevoked. The machine includes logic to check permissions asynchronously and update the permission state accordingly. This will help in monitoring and handling permission changes in the application.
Configuration menu - View commit details
-
Copy full SHA for f773209 - Browse repository at this point
Copy the full SHA f773209View commit details -
Configuration menu - View commit details
-
Copy full SHA for 531d012 - Browse repository at this point
Copy the full SHA 531d012View commit details
Commits on Mar 18, 2024
-
feat: Restructure permission monitoring machine using
setup
from xs……tate - Replaced `createMachine` with `setup` for defining the permissionMonitoringMachine - Updated the context and events types to include permissionStatuses and inc/dec events - Added increment and decrement actions for handling count updates - Changed the permissionState context to permissionStatuses using PermissionStatusMap - Updated the machine on events to trigger inc and dec actions This commit enhances the readability and organization of the permission monitoring machine by utilizing xstate's `setup` function.
Configuration menu - View commit details
-
Copy full SHA for eaa64e3 - Browse repository at this point
Copy the full SHA eaa64e3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e375f29 - Browse repository at this point
Copy the full SHA e375f29View commit details -
Configuration menu - View commit details
-
Copy full SHA for 93caf50 - Browse repository at this point
Copy the full SHA 93caf50View commit details -
feat: Add initial tests and setup for Permission Monitoring Machine
Test is logging out the correct result but failing for some reason... - Added initial test cases to check the starting state and permission checking functionality in the Permission Monitoring Machine. - Introduced constants for permissions, permission statuses, and machine states. - Defined context, events, and actions for the Permission Monitoring Machine setup. - Implemented actors for subscribing to application lifecycle events and checking Bluetooth permission status.
Configuration menu - View commit details
-
Copy full SHA for cca72ab - Browse repository at this point
Copy the full SHA cca72abView commit details -
feat: Add async/await to permission check in Permission Monitoring Ma…
…chine Updated the test case in the Permission Monitoring Machine to include async/await when checking permissions once invoked. This change was necessary to properly handle the asynchronous nature of the permission check operation. This ensures that the test case waits for the permission check to be completed before continuing, providing accurate results.
Configuration menu - View commit details
-
Copy full SHA for 800eb9e - Browse repository at this point
Copy the full SHA 800eb9eView commit details