Skip to content

Commit

Permalink
Merge pull request #1 from christianrowlands/feature/connection_edit_…
Browse files Browse the repository at this point in the history
…fields

Make MQTT connection fields protected instead of private
  • Loading branch information
dtufekcic authored Jun 16, 2022
2 parents 33d86f6 + bd52b0d commit 6a3d0ad
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions MqttLibrary/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ plugins {
}

group 'com.craxiom'
version '0.4.4'
version '0.4.5'

android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
buildToolsVersion "30.0.3"

defaultConfig {
minSdkVersion 24
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@ public abstract class AConnectionFragment<T extends AConnectionFragment.ServiceB
private CardView connectionStatusCardView;
private TextView connectionStatusText;
private SwitchCompat mqttConnectionToggleSwitch;
private EditText mqttHostAddressEdit;
private EditText mqttPortNumberEdit;
private SwitchCompat tlsToggleSwitch;
private EditText deviceNameEdit;
private EditText usernameEdit;
private EditText passwordEdit;
protected EditText mqttHostAddressEdit;
protected EditText mqttPortNumberEdit;
protected SwitchCompat tlsToggleSwitch;
protected EditText deviceNameEdit;
protected EditText usernameEdit;
protected EditText passwordEdit;

private boolean mdmConfigPresent;
private boolean mdmOverride = false;
Expand Down
2 changes: 2 additions & 0 deletions MqttLibrary/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
<string name="help_title">Help?</string>
<string name="tls">TLS</string>

<string name="scan_code">Auto Configure with QR code</string>

<string name="mqtt_mdm_override_description">Your MQTT connection settings have been set by a Mobile Device Management server. Toggle the switch below to override those settings so you can specify your own MQTT Broker connection information.</string>
<string name="mqtt_mdm_override_title">Override MDM MQTT Settings</string>
<string name="mdm_override_title">MDM Override</string>
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.3"
classpath 'com.android.tools.build:gradle:7.0.4'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-all.zip

0 comments on commit 6a3d0ad

Please sign in to comment.