Commit graph

448 commits

Author SHA1 Message Date
andrekir
5eb5cd1421 incorporate androidlib 2022-09-04 22:52:40 -03:00
andrekir
e90b856524 move DELAYED_BROADCAST logic to service 2022-09-03 07:38:36 -03:00
andrekir
6e6b1b8ab6 improve handling minAppVersion 2022-08-29 12:50:29 -03:00
andrekir
e1ad213a01 tag hasWifi to MyNodeInfo 2022-08-28 07:54:47 -03:00
andrekir
e043a3aa9a amend max channels reference 2022-08-15 22:05:10 -03:00
andrekir
6678a82578 add Channel response to debug log 2022-07-29 19:46:04 -03:00
andrekir
1f60c4ddf4 move region logic out of service 2022-07-26 23:01:28 -03:00
andrekir
a598b50d40 handle updated wantConfig 2022-06-21 09:51:11 -03:00
andrekir
54f6112908 create LocalConfig DataStore 2022-06-11 18:36:57 -03:00
andrekir
ce83c84723 update configs to LocalConfig 2022-06-10 21:55:26 -03:00
andrekir
47793a2086 add shutdown & reboot admin commands 2022-06-06 17:29:09 -03:00
andrekir
875939931e add localonly & update apponly protobufs 2022-05-30 17:43:05 -03:00
andrekir
48fd657d8a update protobufs 2022-05-26 16:23:47 -03:00
Mike Cumings
5546e74b46 Extract RadioInterfaceService companion object functions
In preparation for replacing the `InterfaceFactory` with an
injectable form we need to convert static methods that call
`InterfaceFactory` into non-static, injected forms.

Also:
- Updated kotlin `-Xopt-in` to `-opt-in` to remove build
  time warnings.
- Removed some unused `RadioInterfaceService` code.
2022-05-20 14:27:39 -07:00
andrekir
6bda993851 move location service to repository 2022-05-20 09:13:59 -03:00
andrekir
d50e9e1644 meshservice cleanup 2022-05-20 09:12:55 -03:00
Mike Cumings
7cd1e7fc96 Mesh service needs to collect on Flow instances 2022-05-06 12:17:17 -07:00
Mike Cumings
9687fb7370 RadioInterfaceService is no longer an Android Service
Removes the AIDL and associated support for the `IRadioInterfaceService`.
This should give some performance benefit since radio data no longer
has to round-trip through the platform.
2022-04-22 17:40:01 -07:00
Mike Cumings
4f6357103b Move radio service code verbatim into repository/radio 2022-04-22 10:22:03 -07:00
Mike Cumings
166a56a75d Extract RadioNotConnectedException out of RadioInterfaceService 2022-04-22 10:09:30 -07:00
andrekir
89811d4aa4 cleanup actionmode 2022-04-19 15:10:17 -03:00
Mike Cumings
15f0e3bd5b Extract USB serial communication into USB repository
This separates the USB serial connectivity implementation
out of the radio service.  `SerialInterface` now only deals with
radio service concerns.
2022-04-08 15:41:58 -07:00
Mike Cumings
dd41527bbc Initial step in refactoring RadioInterfaceService for dependency injection
Extracts USB device management into a `UsbRepository`.

In order for `SerialInterface to gain access to this prior to
the `RadioInterfaceService` being fully natively dependency
injected, all `InterfaceFactory` implementations needed
to be modified to accept the `UsbRepository` via argument.  This
will go away in a future PR.

Changed `assumePermission` constant to `false` as it was preventing
the request for permission from occurring, breaking serial connectivity.

Minor improvement: SerialInterface re-bonding by device name is
now supported.
2022-04-08 11:34:44 -07:00
andrekir
bcc46f36e6 only consider device sleep when isPowerSaving enabled 2022-04-07 23:31:43 -03:00
andrekir
78f7477c85 promote device metrics 2022-04-04 19:10:15 -03:00
andrekir
ba2a6e0573 add contacts 2022-04-03 11:25:50 -03:00
andrekir
7c1c449dd3 insert sent messages in Packet 2022-03-29 10:58:34 -03:00
andrekir
0c135c4502 handle received telemetry portnums 2022-03-28 15:50:33 -03:00
andrekir
a79470b018 remove batteryLevel from Position 2022-03-26 17:44:59 -03:00
andrekir
291e54c275 use locationShareDisabled boolean 2022-03-26 17:09:05 -03:00
andrekir
b8b2a8a86c improve firmware update 2022-03-11 00:12:48 -03:00
Andre Kirchhoff
b6d90685c2
Merge pull request #389 from meshtastic/release
1.3.3
2022-03-08 10:35:52 -03:00
andrekir
5bb7b49241 Merge remote-tracking branch 'origin/release' into release 2022-03-08 10:18:02 -03:00
andrekir
0b0d82dc76 deleteMessage index by packet id 2022-03-02 11:21:43 -03:00
andrekir
27994ba2dd anonymize sendPosition 2022-02-28 16:54:16 -03:00
Mike Cumings
9592fd68de Issue #369 - Expand bluetooth repository use cases
Changes:
- Adds support for obtaining bonded devices
- Adds support for obtaining BLE scanner
- Consolidates state into a single, immutable data class instance
- Simplified and renamed broadcast receiver
- Renamed view model permissionsUpdated fun to identify the intended use
2022-02-27 11:46:30 -08:00
andrekir
2e55a178f2 update minFirmwareVersion to 1.3.0 2022-02-27 12:20:00 -03:00
Mike Cumings
b3878a4240 Issue #369 - Use repository pattern for bluetooth state 2022-02-26 22:59:20 -08:00
andrekir
141a0c67af update minFirmwareVersion to 1.3.0 2022-02-20 19:33:52 -03:00
andrekir
d016271d79 remove comment 2022-02-15 20:49:03 -03:00
andrekir
88b0415180 remove legacy MyNodeInfo.region 2022-02-15 20:47:54 -03:00
andrekir
c46039bb04 Remove hw_model_deprecated 2022-02-15 20:12:04 -03:00
andrekir
c97ebb6637 Remove mynodeinfo.num_bands 2022-02-15 19:58:11 -03:00
andrekir
eb5abb4be9 only consider BLE pairing for addressValid 2022-02-12 19:33:30 -03:00
andrekir
c04c1b4add move disassociate to SettingsFragment 2022-02-12 19:28:49 -03:00
Andre Kirchhoff
9cd1856bb9
Merge pull request #372 from meshtastic/release
1.2.57
2022-02-09 23:15:27 -03:00
Mike Cumings
654a32c01c Introduce Hilt dependency injection
Uses Hilt to get the database initialization off of the
main thread.

The initial introduction always has a disproportionate
fan-out of boilerplate. In this case, all entry points which
were using UIViewModel needed to be annotated in order to let
the code gen know that they needed to support it.

The PacketRepository is injected into things via the main
thread (e.g., the MeshService) but due to the lazy declaration,
the database isn't hydrated until the DAO is access while on an
IO thread.
2022-02-08 13:57:04 -08:00
andrekir
4abd8b8ab7 anonymize address log 2022-02-08 00:22:45 -03:00
andrekir
45895cdcf6 use same CompanionDeviceManager method 2022-02-07 21:46:47 -03:00
andrekir
c362f08ec3 disassociate old CompanionDeviceManager address 2022-02-02 23:28:23 -03:00