feat: adacam migration — update IP, pairing, bearer auth, wifi/ssh config, remove JSch and cmd

- Default API URL: 192.168.0.10 → 192.168.0.10
- BeeApiClient: apiToken field, bearer auth on POST endpoints, pair() method,
  getSshStatus(), setSshEnabled() — JSch/SSH-from-app removed entirely
- Models: PairResponse, SshStatus, WifiStatus data classes
- SettingsDataStore: deviceSerial, apiToken, isPaired persistence + deriveApiToken()
- SettingsViewModel: pairDevice(), connectWifi(), toggleSsh(), refreshSshStatus(),
  refreshWifiStatus(), isPaired/deviceSerial/sshStatus/wifiStatus StateFlows
- SettingsScreen: Pairing section, Home WiFi config section, SSH toggle section
  renamed BEE DEVICE → ADACAM DEVICE, hint URL updated
- build.gradle: removed JSch dependency (no longer SSHing from app)
This commit is contained in:
Sulkta 2026-03-14 11:56:46 -07:00
parent 66793b77c0
commit cec594cd96
5 changed files with 427 additions and 5 deletions

View file

@ -77,7 +77,7 @@ dependencies {
// WorkManager (background uploads)
implementation(libs.work.runtime.ktx)
// SSH connectivity for device_id fallback
implementation("com.jcraft:jsch:0.1.55")
// QR Code scanning
implementation("com.google.zxing:core:3.5.2")
implementation("com.journeyapps:zxing-android-embedded:4.3.0")