Skip to content
Draft

Dev #47

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
aad64bf
making UI changes
kalynstricklin Apr 2, 2026
35a53b5
completely redid the ui for app
kalynstricklin Apr 6, 2026
dd0ae00
add wardriving capabilities and controller driver
kalynstricklin Apr 7, 2026
22e88d0
added template directory and readme
kalynstricklin Apr 8, 2026
ce93392
Merge pull request #15 from Botts-Innovative-Research/template
kalynstricklin Apr 8, 2026
401b85c
Add devices IP addy back
kalynstricklin Apr 8, 2026
47d161e
removed video preset in config, fixed issues with build
kalynstricklin Apr 14, 2026
92437c8
Update DashboardFragment.java
kalynstricklin Apr 14, 2026
147e747
updated
kalynstricklin Apr 16, 2026
e282765
Merge pull request #39 from Botts-Innovative-Research/update-ui
kalynstricklin Apr 16, 2026
d69bcc9
added discovery service, need to update with paths to rule.txt
kalynstricklin Apr 15, 2026
8ad0df3
update the discovery service rules to download from a link
kalynstricklin Apr 16, 2026
e50f127
Update MainActivity.java
kalynstricklin Apr 16, 2026
ee19d68
Merge pull request #38 from Botts-Innovative-Research/discovery-service
kalynstricklin Apr 16, 2026
99ff66b
Added username, password and endpoint to the saved settings, fixed su…
kalynstricklin Apr 16, 2026
dd66830
Merge pull request #40 from Botts-Innovative-Research/improve-server-…
kalynstricklin Apr 16, 2026
4b24af8
Add secure prefs, collapse datastream statuses
kalynstricklin Apr 16, 2026
fdb371a
Updated the server settings
kalynstricklin Apr 21, 2026
14b18e6
Merge pull request #46 from Botts-Innovative-Research/multi-server-ma…
kalynstricklin Apr 21, 2026
7b87e15
fixed where rules was not hidden when discovery service was disabled
kalynstricklin Apr 21, 2026
d526f8f
replaced printstacktrace with logs, and added validation to the serve…
kalynstricklin Apr 22, 2026
db9eb0d
changed switching fragments to show/hide instead of .replace
kalynstricklin Apr 22, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@
path = submodules/osh-core
url = git@github.com:kalynstricklin/osh-core.git
branch = update-moduleutils
[submodule "submodules/botts-addons"]
path = submodules/botts-addons
url = git@github.com:Botts-Innovative-Research/botts-addons.git
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
ext.oshCoreVersion = '2.0.0-beta'
ext.compileSdkVersion = 33
ext.minSdkVersion = 34
ext.minSdkVersion = 33
ext.targetSdkVersion = 30
ext.buildToolsVersion = "30.0.2"
version = '3.1.2'
ext.buildToolsVersion = "34.0.0"
version = '4.0.0'

buildscript {
repositories {
Expand Down
14 changes: 9 additions & 5 deletions sensorhub-android-app/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
<uses-permission android:name="android.permission.NEARBY_WIFI_DEVICES" />

<application
android:allowBackup="true"
Expand All @@ -52,13 +53,16 @@
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".UserSettingsActivity"
android:label="@string/title_activity_user_settings" />
<activity
android:name=".AppStatusActivity"
android:label="App Status"
android:theme="@style/Theme.AppCompat.DayNight"/>
android:configChanges="orientation|screenSize"
android:screenOrientation="portrait"
android:exported="false" />
<activity
android:name=".ServerProfilesActivity"
android:configChanges="orientation|screenSize"
android:screenOrientation="portrait"
android:exported="false" />
<!-- <activity android:name=".spotreport.SpotReportActivity" -->
<!-- android:configChanges="orientation|screenSize"> -->

Expand Down
37 changes: 30 additions & 7 deletions sensorhub-android-app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

description = 'OSH Android App'
ext.details = 'OSH app for Android'
ext.details = 'OSH app for Android'

repositories {
// maven {
Expand All @@ -14,21 +14,27 @@ dependencies {

implementation 'org.eclipse.paho:org.eclipse.paho.client.mqttv3:1.2.5'
implementation 'org.eclipse.paho:org.eclipse.paho.android.service:1.1.1'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:design:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:2.0.4'
implementation 'android.arch.navigation:navigation-fragment:1.0.0'
implementation 'android.arch.navigation:navigation-ui:1.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.google.android.material:material:1.9.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.navigation:navigation-fragment:2.5.3'
implementation 'androidx.navigation:navigation-ui:2.5.3'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'androidx.coordinatorlayout:coordinatorlayout:1.2.0'
implementation 'androidx.preference:preference:1.2.0'

implementation project(path: ':sensorhub-datastore-h2')
implementation project(path: ':sensorhub-service-consys')
implementation project(path: ':sensorhub-service-discovery')
implementation project(':sensorhub-android-ste')
implementation project(':sensorhub-android-meshtastic')
implementation project(':sensorhub-android-polar')
implementation project(':sensorhub-android-wardriving')
implementation project(':sensorhub-android-controller')
implementation project(':sensorhub-android-template')
implementation project(':sensorhub-driver-android')
implementation 'org.slf4j:slf4j-api:2.0.9'
implementation 'com.github.tony19:logback-android:3.0.0'

}

allprojects {
Expand All @@ -55,8 +61,24 @@ android {
targetSdkVersion rootProject.targetSdkVersion
versionCode 1
versionName rootProject.version
applicationId "com.georobotix.android"
}

//https://developer.android.com/build/build-variants#groovy
// flavorDimensions += "version" // maybe dont need
// productFlavors {
// create("free") {
// dimension = "version"
// applicationIdSuffix = ".free"
// buildConfigField("boolean", "IS_PREMIUM", "false")
// }
// create("premium") {
// dimension = "version"
// applicationIdSuffix = ".premium"
// buildConfigField("boolean", "IS_PREMIUM", "true")
// }
// }

compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
Expand Down Expand Up @@ -90,5 +112,6 @@ android {
excludes += ["META-INF/INDEX.LIST"]
}
}

}

5 changes: 5 additions & 0 deletions sensorhub-android-app/res/color/bottom_nav_selector.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/md_theme_onPrimary" android:state_checked="true" />
<item android:color="@color/bottom_nav_unselected" />
</selector>
5 changes: 5 additions & 0 deletions sensorhub-android-app/res/color/switch_thumb_selector.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/accent_orange" android:state_checked="true" />
<item android:color="@color/text_muted" />
</selector>
5 changes: 5 additions & 0 deletions sensorhub-android-app/res/color/switch_track_selector.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="@color/md_theme_onTertiaryContainer" android:state_checked="true" />
<item android:color="@color/surface_elevated" />
</selector>
11 changes: 11 additions & 0 deletions sensorhub-android-app/res/drawable-anydpi/ic_edit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="#FFFFFF"
android:alpha="0.8">
<path
android:pathData="M200,760h57l391,-391 -57,-57 -391,391v57ZM120,840v-170l528,-527q12,-11 26.5,-17t30.5,-6q16,0 31,6t26,18l55,56q12,11 17.5,26t5.5,30q0,16 -5.5,30.5T817,313L290,840L120,840ZM760,256 L704,200 760,256ZM619,341 L591,312 648,369 619,341Z"
android:fillColor="#1f1f1f"/>
</vector>
Binary file added sensorhub-android-app/res/drawable-hdpi/ic_edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sensorhub-android-app/res/drawable-mdpi/ic_edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added sensorhub-android-app/res/drawable-xhdpi/ic_edit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions sensorhub-android-app/res/drawable/bg_status_chip.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<size android:width="12dp" android:height="12dp"/>
<solid android:color="@color/status_started"/>
</shape>
5 changes: 5 additions & 0 deletions sensorhub-android-app/res/drawable/ic_add.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:tint="#000000" android:viewportHeight="24" android:viewportWidth="24" android:width="24dp">

<path android:fillColor="@android:color/white" android:pathData="M19,13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/>

</vector>
10 changes: 10 additions & 0 deletions sensorhub-android-app/res/drawable/ic_arrow_back.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<path
android:fillColor="@android:color/white"
android:pathData="M20,11H7.83l5.59,-5.59L12,4l-8,8 8,8 1.41,-1.41L7.83,13H20v-2z"/>
</vector>
11 changes: 11 additions & 0 deletions sensorhub-android-app/res/drawable/ic_edit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="960"
android:viewportHeight="960"
android:tint="#FFFFFF"
android:alpha="0.8">
<path
android:pathData="M200,760h57l391,-391 -57,-57 -391,391v57ZM120,840v-170l528,-527q12,-11 26.5,-17t30.5,-6q16,0 31,6t26,18l55,56q12,11 17.5,26t5.5,30q0,16 -5.5,30.5T817,313L290,840L120,840ZM760,256 L704,200 760,256ZM619,341 L591,312 648,369 619,341Z"
android:fillColor="#1f1f1f"/>
</vector>
9 changes: 9 additions & 0 deletions sensorhub-android-app/res/drawable/ic_expand_less.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@color/md_theme_onSurface"
android:pathData="M12,8l-6,6 1.41,1.41L12,10.83l4.59,4.58L18,14z"/>
</vector>
9 changes: 9 additions & 0 deletions sensorhub-android-app/res/drawable/ic_expand_more.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="@color/md_theme_onSurface"
android:pathData="M16.59,8.59L12,13.17 7.41,8.59 6,10l6,6 6,-6z"/>
</vector>
10 changes: 10 additions & 0 deletions sensorhub-android-app/res/drawable/ic_home.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<path
android:fillColor="@android:color/white"
android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z"/>
</vector>
10 changes: 10 additions & 0 deletions sensorhub-android-app/res/drawable/ic_info.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<path
android:fillColor="@android:color/white"
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM13,17h-2v-6h2v6zM13,9h-2V7h2v2z"/>
</vector>
10 changes: 10 additions & 0 deletions sensorhub-android-app/res/drawable/ic_message.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<path
android:fillColor="@android:color/white"
android:pathData="M20,2H4C2.9,2 2.01,2.9 2.01,4L2,22l4,-4h14c1.1,0 2,-0.9 2,-2V4C22,2.9 21.1,2 20,2zM18,14H6v-2h12v2zM18,11H6V9h12v2zM18,8H6V6h12v2z"/>
</vector>
10 changes: 10 additions & 0 deletions sensorhub-android-app/res/drawable/ic_play.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<path
android:fillColor="@android:color/white"
android:pathData="M8,5v14l11,-7z"/>
</vector>
10 changes: 10 additions & 0 deletions sensorhub-android-app/res/drawable/ic_sensors.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<path
android:fillColor="@android:color/white"
android:pathData="M7.76,16.24C6.67,15.16 6,13.66 6,12s0.67,-3.16 1.76,-4.24l1.42,1.42C8.45,9.9 8,10.9 8,12c0,1.1 0.45,2.1 1.17,2.83l-1.41,1.41zM16.24,16.24l-1.42,-1.42C15.55,14.1 16,13.1 16,12c0,-1.1 -0.45,-2.1 -1.17,-2.83l1.41,-1.41C17.33,8.84 18,10.34 18,12s-0.67,3.16 -1.76,4.24zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM20,12c0,2.21 -0.9,4.21 -2.35,5.65l1.42,1.42C20.88,17.26 22,14.76 22,12s-1.12,-5.26 -2.93,-7.07l-1.42,1.42C19.1,7.79 20,9.79 20,12zM6.35,6.35L4.93,4.93C3.12,6.74 2,9.24 2,12s1.12,5.26 2.93,7.07l1.42,-1.42C4.9,16.21 4,14.21 4,12s0.9,-4.21 2.35,-5.65z"/>
</vector>
10 changes: 10 additions & 0 deletions sensorhub-android-app/res/drawable/ic_settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<path
android:fillColor="@android:color/white"
android:pathData="M19.14,12.94c0.04,-0.3 0.06,-0.61 0.06,-0.94c0,-0.32 -0.02,-0.64 -0.07,-0.94l2.03,-1.58c0.18,-0.14 0.23,-0.41 0.12,-0.61l-1.92,-3.32c-0.12,-0.22 -0.37,-0.29 -0.59,-0.22l-2.39,0.96c-0.5,-0.38 -1.03,-0.7 -1.62,-0.94L14.4,2.81c-0.04,-0.24 -0.24,-0.41 -0.48,-0.41h-3.84c-0.24,0 -0.43,0.17 -0.47,0.41L9.25,5.35C8.66,5.59 8.12,5.92 7.63,6.29L5.24,5.33c-0.22,-0.08 -0.47,0 -0.59,0.22L2.74,8.87C2.62,9.08 2.66,9.34 2.86,9.48l2.03,1.58C4.84,11.36 4.8,11.69 4.8,12s0.02,0.64 0.07,0.94l-2.03,1.58c-0.18,0.14 -0.23,0.41 -0.12,0.61l1.92,3.32c0.12,0.22 0.37,0.29 0.59,0.22l2.39,-0.96c0.5,0.38 1.03,0.7 1.62,0.94l0.36,2.54c0.05,0.24 0.24,0.41 0.48,0.41h3.84c0.24,0 0.44,-0.17 0.47,-0.41l0.36,-2.54c0.59,-0.24 1.13,-0.56 1.62,-0.94l2.39,0.96c0.22,0.08 0.47,0 0.59,-0.22l1.92,-3.32c0.12,-0.22 0.07,-0.47 -0.12,-0.61L19.14,12.94zM12,15.6c-1.98,0 -3.6,-1.62 -3.6,-3.6s1.62,-3.6 3.6,-3.6s3.6,1.62 3.6,3.6S13.98,15.6 12,15.6z"/>
</vector>
10 changes: 10 additions & 0 deletions sensorhub-android-app/res/drawable/ic_stop.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="#FFFFFF">
<path
android:fillColor="@android:color/white"
android:pathData="M6,6h12v12H6z"/>
</vector>
Binary file added sensorhub-android-app/res/drawable/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions sensorhub-android-app/res/drawable/status_dot_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="@color/status_unknown" />
<size
android:width="@dimen/status_dot_size"
android:height="@dimen/status_dot_size" />
</shape>
Loading