154 Commits

Author SHA1 Message Date
callebtc
01d6a81003
Merge pull request #129 from moehamade/127-Onboarding-state-is-lost-on-configuration-change-due-to-variables-in-MainActivity
Refactor: Introduce MainViewModel for onboarding state management
2025-07-17 23:59:28 +02:00
callebtc
b862e283bb
Merge pull request #125 from moehamade/Triple-click-title-to-emergency-clear-all-data-executed-not-the-way-it-supposed-to-#105
Bugfix: Handled single or triple clicked at once instead of executing them as separate events
2025-07-17 23:58:58 +02:00
Mohamad Hamade
d730acbb79 Refactor: Migrate MainViewModel to use StateFlow
This commit refactors the `MainViewModel` to use `StateFlow` instead of `mutableStateOf` for managing its observable properties. This change improves the way UI state is handled and observed, aligning with modern Android development best practices.

Additionally, `OnboardingState.kt` has been moved to the `onboarding` package for better organization.
2025-07-16 01:13:42 +03:00
Mohamad Hamade
17472a1854 Refactor: Remove unused tripleClickCount state variable
The `tripleClickCount` mutable state variable in the `ChatHeader` composable was not being used and has been removed to simplify the code
2025-07-15 13:18:29 +03:00
Mohamad Hamade
245181d736 Refactor: Introduce MainViewModel for onboarding state management
This commit introduces a `MainViewModel` to manage the UI state for the onboarding flow. This change centralizes the onboarding state (including Bluetooth status, location status, error messages, and loading indicators) within the ViewModel, allowing it to survive configuration changes and simplifying state management within `MainActivity`.

Key changes:
- Created `MainViewModel.kt` to hold and manage onboarding-related UI state.
- Moved onboarding state variables (e.g., `onboardingState`, `bluetoothStatus`, `locationStatus`) from `MainActivity` to `MainViewModel`.
- Updated `MainActivity` to observe and update onboarding state through the `MainViewModel`.
- Created `OnboardingState.kt` to define the possible states of the onboarding process.
- Ensured that the onboarding process is not restarted on configuration changes by checking `mainViewModel.onboardingState` before initiating.
2025-07-15 02:24:41 +03:00
Mohamad Hamade
0a33bd734d Bugfix: Handled single or triple clicked at once instead of executing them as separate events
This commit introduces a new `singleOrTripleClickable` Modifier extension function.

This function allows distinguishing between single and triple clicks on a Composable element.

The `ChatHeader` was updated to utilize this new Modifier for handling clicks on the "bitchat*" title, where a single click shows app info and a triple click triggers a separate action.
2025-07-14 22:16:19 +03:00
callebtc
013f0c00cf
Merge pull request #111 from permissionlesstech/bump-0.7
bump to 0.7
0.7
2025-07-14 00:29:20 +02:00
callebtc
5da4cd27ec bump to 0.7 2025-07-14 00:29:01 +02:00
callebtc
de69ca6cdc
Merge pull request #110 from permissionlesstech/refactor-DESCRIPTOR_UUID
chore: refactor
2025-07-14 00:24:19 +02:00
callebtc
e0f727647a chore: refactor 2025-07-14 00:24:00 +02:00
callebtc
7ecdb1426b revert comment 2025-07-14 00:18:15 +02:00
callebtc
fa9a45a595
Merge pull request #109 from permissionlesstech/ui-select-text
UI select text + track RSSI + unread indicator
2025-07-14 00:17:05 +02:00
callebtc
193918d81a track rssi correctly 2025-07-14 00:13:45 +02:00
callebtc
06a9ec6268 badge 2025-07-13 23:57:10 +02:00
callebtc
20cf8b59f8 copy text and fix notifications for DM 2025-07-13 23:42:58 +02:00
callebtc
2b63c7805e
Merge pull request #48 from ShilohEye/fix/android-ios-fragmentation-compatibility
Fix Android Message fragmentation for iOS compatibility
2025-07-13 23:29:32 +02:00
callebtc
f909f01fec integrate into main 2025-07-13 23:23:15 +02:00
callebtc
f9a639af2d Merge branch 'main' into fix/android-ios-fragmentation-compatibility 2025-07-13 23:18:00 +02:00
callebtc
38c2bd257f
Merge pull request #106 from permissionlesstech/refactor-bluetooth-connection-manager
Refactor bluetooth connection manager
2025-07-13 22:53:06 +02:00
callebtc
0e2614d3eb fix build 2025-07-13 22:52:50 +02:00
callebtc
362f9b0ff2 log 2025-07-13 22:39:41 +02:00
callebtc
f40283694d logs 2025-07-13 22:35:18 +02:00
callebtc
cac3b9ec6c better logging of device id 2025-07-13 22:18:31 +02:00
callebtc
725dc01352 fix null delegate 2025-07-13 22:06:43 +02:00
callebtc
f7c68d2ff2 fix 2025-07-13 21:38:39 +02:00
callebtc
a68e14133b wip refactor 2025-07-13 21:34:31 +02:00
callebtc
d25d3bf991
Merge branch 'main' into fix/android-ios-fragmentation-compatibility 2025-07-13 21:25:11 +02:00
callebtc
499f3cc084
Merge pull request #103 from permissionlesstech/adjust-scan-intervals
adjust scan intervals and reduce logging
2025-07-13 20:47:33 +02:00
callebtc
930081bba0 add location services check 2025-07-13 20:27:43 +02:00
callebtc
887ca0119e Merge branch 'main' into adjust-scan-intervals 2025-07-13 19:43:58 +02:00
callebtc
75bcb9277c
Merge pull request #57 from GUVWAF/routingOpt
Cheap routing optimizations
2025-07-13 17:38:42 +02:00
callebtc
2cf6bf19b1 Merge branch 'main' into routingOpt 2025-07-13 17:20:49 +02:00
callebtc
2a0f84b53b adjust scan intervals and reduce logging 2025-07-13 17:16:31 +02:00
callebtc
c69c867321
Merge pull request #102 from permissionlesstech/revert-93-patch-1
Revert "known issues added to 0.6"
2025-07-13 17:10:02 +02:00
callebtc
78dc9dc026
Revert "known issues added to 0.6" 2025-07-13 17:09:53 +02:00
callebtc
dcb824bccf
Merge pull request #93 from Comodore125/patch-1
known issues added to 0.6
2025-07-13 17:09:44 +02:00
callebtc
0d54d60dd5
Merge pull request #60 from prudhvir3ddy/prudhvir3ddy/upgrade_deps
Upgrade compileSDK, kotlin, AGP, compose, core libs
2025-07-13 17:09:00 +02:00
Comodore125
3a01de655f
Update CHANGELOG.md
even more precise and more elegant update
2025-07-12 23:19:10 +02:00
Comodore125
c8c1f21d3c
Update CHANGELOG.md
more precise text
2025-07-12 23:12:56 +02:00
Comodore125
0c3c52b7c0
known issues added to 0.6 2025-07-12 23:06:16 +02:00
callebtc
0cb4497444
Merge pull request #89 from permissionlesstech/bit-icon
Bit icon
0.6
2025-07-12 18:45:48 +02:00
callebtc
679c458d70 all icons like svg 2025-07-12 18:44:40 +02:00
callebtc
ce93900ef6 icons 2025-07-12 18:43:35 +02:00
callebtc
ee70073324 notifications description 2025-07-12 17:43:13 +02:00
callebtc
81178d0d3e
Merge pull request #78 from prudhvir3ddy/prudhvir3ddy/safe-permission-category
Refactor: Update permission handling to use PermissionType enum
2025-07-12 17:42:19 +02:00
callebtc
68bc1e4ee9
Merge branch 'main' into prudhvir3ddy/safe-permission-category 2025-07-12 17:42:10 +02:00
callebtc
14a1cd992b
Merge pull request #85 from permissionlesstech/improve-onboarding-ui
permissions layout
2025-07-12 17:40:59 +02:00
callebtc
ad6dc3680b permissions layout 2025-07-12 17:40:25 +02:00
callebtc
d025d61af8
Merge pull request #84 from permissionlesstech/ui-back-gesture
Android back gesture
2025-07-12 17:33:46 +02:00
callebtc
bc344879e7 changelog 2025-07-12 17:33:11 +02:00