fix(gateway): remove trailing junk from ScaleProtocol.kt causing build failure

The file had 6 lines of old code appended after the closing brace,
starting a second 'package' declaration that broke compilation.
This commit is contained in:
dadaloop82
2026-04-15 16:33:42 +00:00
parent b606e2b361
commit 690d5ecd18
728 changed files with 73302 additions and 6 deletions
@@ -0,0 +1,2 @@
#Wed Apr 15 16:22:28 UTC 2026
gradle.version=8.4
Binary file not shown.
@@ -0,0 +1,272 @@
// Generated by view binder compiler. Do not edit!
package it.dadaloop.evershelf.scalegate.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.cardview.widget.CardView;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import it.dadaloop.evershelf.scalegate.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ActivityMainBinding implements ViewBinding {
@NonNull
private final ScrollView rootView;
@NonNull
public final Button btnCopyLog;
@NonNull
public final Button btnCopyUrl;
@NonNull
public final Button btnDebug;
@NonNull
public final Button btnDisconnect;
@NonNull
public final Button btnScan;
@NonNull
public final Button btnShareLog;
@NonNull
public final CardView cardConnection;
@NonNull
public final RecyclerView rvDevices;
@NonNull
public final ScrollView svDebugLog;
@NonNull
public final TextView tvBattery;
@NonNull
public final TextView tvClientCount;
@NonNull
public final TextView tvDebugLog;
@NonNull
public final TextView tvGatewayStatus;
@NonNull
public final TextView tvGatewayUrl;
@NonNull
public final TextView tvGatewayUrlHint;
@NonNull
public final TextView tvScaleStatus;
@NonNull
public final TextView tvScanHint;
@NonNull
public final TextView tvVersion;
@NonNull
public final TextView tvWeight;
@NonNull
public final TextView tvWeightHint;
private ActivityMainBinding(@NonNull ScrollView rootView, @NonNull Button btnCopyLog,
@NonNull Button btnCopyUrl, @NonNull Button btnDebug, @NonNull Button btnDisconnect,
@NonNull Button btnScan, @NonNull Button btnShareLog, @NonNull CardView cardConnection,
@NonNull RecyclerView rvDevices, @NonNull ScrollView svDebugLog, @NonNull TextView tvBattery,
@NonNull TextView tvClientCount, @NonNull TextView tvDebugLog,
@NonNull TextView tvGatewayStatus, @NonNull TextView tvGatewayUrl,
@NonNull TextView tvGatewayUrlHint, @NonNull TextView tvScaleStatus,
@NonNull TextView tvScanHint, @NonNull TextView tvVersion, @NonNull TextView tvWeight,
@NonNull TextView tvWeightHint) {
this.rootView = rootView;
this.btnCopyLog = btnCopyLog;
this.btnCopyUrl = btnCopyUrl;
this.btnDebug = btnDebug;
this.btnDisconnect = btnDisconnect;
this.btnScan = btnScan;
this.btnShareLog = btnShareLog;
this.cardConnection = cardConnection;
this.rvDevices = rvDevices;
this.svDebugLog = svDebugLog;
this.tvBattery = tvBattery;
this.tvClientCount = tvClientCount;
this.tvDebugLog = tvDebugLog;
this.tvGatewayStatus = tvGatewayStatus;
this.tvGatewayUrl = tvGatewayUrl;
this.tvGatewayUrlHint = tvGatewayUrlHint;
this.tvScaleStatus = tvScaleStatus;
this.tvScanHint = tvScanHint;
this.tvVersion = tvVersion;
this.tvWeight = tvWeight;
this.tvWeightHint = tvWeightHint;
}
@Override
@NonNull
public ScrollView getRoot() {
return rootView;
}
@NonNull
public static ActivityMainBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ActivityMainBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.activity_main, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ActivityMainBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.btn_copy_log;
Button btnCopyLog = ViewBindings.findChildViewById(rootView, id);
if (btnCopyLog == null) {
break missingId;
}
id = R.id.btn_copy_url;
Button btnCopyUrl = ViewBindings.findChildViewById(rootView, id);
if (btnCopyUrl == null) {
break missingId;
}
id = R.id.btn_debug;
Button btnDebug = ViewBindings.findChildViewById(rootView, id);
if (btnDebug == null) {
break missingId;
}
id = R.id.btn_disconnect;
Button btnDisconnect = ViewBindings.findChildViewById(rootView, id);
if (btnDisconnect == null) {
break missingId;
}
id = R.id.btn_scan;
Button btnScan = ViewBindings.findChildViewById(rootView, id);
if (btnScan == null) {
break missingId;
}
id = R.id.btn_share_log;
Button btnShareLog = ViewBindings.findChildViewById(rootView, id);
if (btnShareLog == null) {
break missingId;
}
id = R.id.card_connection;
CardView cardConnection = ViewBindings.findChildViewById(rootView, id);
if (cardConnection == null) {
break missingId;
}
id = R.id.rv_devices;
RecyclerView rvDevices = ViewBindings.findChildViewById(rootView, id);
if (rvDevices == null) {
break missingId;
}
id = R.id.sv_debug_log;
ScrollView svDebugLog = ViewBindings.findChildViewById(rootView, id);
if (svDebugLog == null) {
break missingId;
}
id = R.id.tv_battery;
TextView tvBattery = ViewBindings.findChildViewById(rootView, id);
if (tvBattery == null) {
break missingId;
}
id = R.id.tv_client_count;
TextView tvClientCount = ViewBindings.findChildViewById(rootView, id);
if (tvClientCount == null) {
break missingId;
}
id = R.id.tv_debug_log;
TextView tvDebugLog = ViewBindings.findChildViewById(rootView, id);
if (tvDebugLog == null) {
break missingId;
}
id = R.id.tv_gateway_status;
TextView tvGatewayStatus = ViewBindings.findChildViewById(rootView, id);
if (tvGatewayStatus == null) {
break missingId;
}
id = R.id.tv_gateway_url;
TextView tvGatewayUrl = ViewBindings.findChildViewById(rootView, id);
if (tvGatewayUrl == null) {
break missingId;
}
id = R.id.tv_gateway_url_hint;
TextView tvGatewayUrlHint = ViewBindings.findChildViewById(rootView, id);
if (tvGatewayUrlHint == null) {
break missingId;
}
id = R.id.tv_scale_status;
TextView tvScaleStatus = ViewBindings.findChildViewById(rootView, id);
if (tvScaleStatus == null) {
break missingId;
}
id = R.id.tv_scan_hint;
TextView tvScanHint = ViewBindings.findChildViewById(rootView, id);
if (tvScanHint == null) {
break missingId;
}
id = R.id.tv_version;
TextView tvVersion = ViewBindings.findChildViewById(rootView, id);
if (tvVersion == null) {
break missingId;
}
id = R.id.tv_weight;
TextView tvWeight = ViewBindings.findChildViewById(rootView, id);
if (tvWeight == null) {
break missingId;
}
id = R.id.tv_weight_hint;
TextView tvWeightHint = ViewBindings.findChildViewById(rootView, id);
if (tvWeightHint == null) {
break missingId;
}
return new ActivityMainBinding((ScrollView) rootView, btnCopyLog, btnCopyUrl, btnDebug,
btnDisconnect, btnScan, btnShareLog, cardConnection, rvDevices, svDebugLog, tvBattery,
tvClientCount, tvDebugLog, tvGatewayStatus, tvGatewayUrl, tvGatewayUrlHint, tvScaleStatus,
tvScanHint, tvVersion, tvWeight, tvWeightHint);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}
@@ -0,0 +1,89 @@
// Generated by view binder compiler. Do not edit!
package it.dadaloop.evershelf.scalegate.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.cardview.widget.CardView;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import it.dadaloop.evershelf.scalegate.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ItemDeviceBinding implements ViewBinding {
@NonNull
private final CardView rootView;
@NonNull
public final TextView tvDeviceAddr;
@NonNull
public final TextView tvDeviceName;
@NonNull
public final TextView tvDeviceRssi;
private ItemDeviceBinding(@NonNull CardView rootView, @NonNull TextView tvDeviceAddr,
@NonNull TextView tvDeviceName, @NonNull TextView tvDeviceRssi) {
this.rootView = rootView;
this.tvDeviceAddr = tvDeviceAddr;
this.tvDeviceName = tvDeviceName;
this.tvDeviceRssi = tvDeviceRssi;
}
@Override
@NonNull
public CardView getRoot() {
return rootView;
}
@NonNull
public static ItemDeviceBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ItemDeviceBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.item_device, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ItemDeviceBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.tv_device_addr;
TextView tvDeviceAddr = ViewBindings.findChildViewById(rootView, id);
if (tvDeviceAddr == null) {
break missingId;
}
id = R.id.tv_device_name;
TextView tvDeviceName = ViewBindings.findChildViewById(rootView, id);
if (tvDeviceName == null) {
break missingId;
}
id = R.id.tv_device_rssi;
TextView tvDeviceRssi = ViewBindings.findChildViewById(rootView, id);
if (tvDeviceRssi == null) {
break missingId;
}
return new ItemDeviceBinding((CardView) rootView, tvDeviceAddr, tvDeviceName, tvDeviceRssi);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}
@@ -0,0 +1,2 @@
#- File Locator -
listingFile=../../../outputs/apk/debug/output-metadata.json
@@ -0,0 +1,2 @@
appMetadataVersion=1.1
androidGradlePluginVersion=8.2.2
@@ -0,0 +1,10 @@
{
"version": 3,
"artifactType": {
"type": "COMPATIBLE_SCREEN_MANIFEST",
"kind": "Directory"
},
"applicationId": "it.dadaloop.evershelf.scalegate",
"variantName": "debug",
"elements": []
}
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="activity_main" modulePackage="it.dadaloop.evershelf.scalegate" filePath="app/src/main/res/layout/activity_main.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.ScrollView"><Targets><Target tag="layout/activity_main_0" view="ScrollView"><Expressions/><location startLine="1" startOffset="0" endLine="285" endOffset="12"/></Target><Target id="@+id/tv_version" view="TextView"><Expressions/><location startLine="37" startOffset="12" endLine="45" endOffset="39"/></Target><Target id="@+id/tv_gateway_url" view="TextView"><Expressions/><location startLine="72" startOffset="16" endLine="81" endOffset="49"/></Target><Target id="@+id/tv_gateway_url_hint" view="TextView"><Expressions/><location startLine="83" startOffset="16" endLine="90" endOffset="49"/></Target><Target id="@+id/btn_copy_url" view="Button"><Expressions/><location startLine="92" startOffset="16" endLine="99" endOffset="69"/></Target><Target id="@+id/tv_gateway_status" view="TextView"><Expressions/><location startLine="105" startOffset="8" endLine="112" endOffset="41"/></Target><Target id="@+id/tv_client_count" view="TextView"><Expressions/><location startLine="114" startOffset="8" endLine="122" endOffset="39"/></Target><Target id="@+id/card_connection" view="androidx.cardview.widget.CardView"><Expressions/><location startLine="125" startOffset="8" endLine="193" endOffset="43"/></Target><Target id="@+id/tv_scale_status" view="TextView"><Expressions/><location startLine="140" startOffset="16" endLine="148" endOffset="49"/></Target><Target id="@+id/tv_weight" view="TextView"><Expressions/><location startLine="150" startOffset="16" endLine="160" endOffset="49"/></Target><Target id="@+id/tv_weight_hint" view="TextView"><Expressions/><location startLine="162" startOffset="16" endLine="170" endOffset="49"/></Target><Target id="@+id/tv_battery" view="TextView"><Expressions/><location startLine="172" startOffset="16" endLine="179" endOffset="47"/></Target><Target id="@+id/btn_disconnect" view="Button"><Expressions/><location startLine="181" startOffset="16" endLine="190" endOffset="69"/></Target><Target id="@+id/btn_scan" view="Button"><Expressions/><location startLine="196" startOffset="8" endLine="204" endOffset="61"/></Target><Target id="@+id/btn_debug" view="Button"><Expressions/><location startLine="212" startOffset="12" endLine="221" endOffset="65"/></Target><Target id="@+id/btn_copy_log" view="Button"><Expressions/><location startLine="223" startOffset="12" endLine="233" endOffset="65"/></Target><Target id="@+id/btn_share_log" view="Button"><Expressions/><location startLine="235" startOffset="12" endLine="244" endOffset="65"/></Target><Target id="@+id/sv_debug_log" view="ScrollView"><Expressions/><location startLine="248" startOffset="8" endLine="265" endOffset="20"/></Target><Target id="@+id/tv_debug_log" view="TextView"><Expressions/><location startLine="256" startOffset="12" endLine="264" endOffset="39"/></Target><Target id="@+id/tv_scan_hint" view="TextView"><Expressions/><location startLine="267" startOffset="8" endLine="275" endOffset="39"/></Target><Target id="@+id/rv_devices" view="androidx.recyclerview.widget.RecyclerView"><Expressions/><location startLine="278" startOffset="8" endLine="282" endOffset="52"/></Target></Targets></Layout>
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="item_device" modulePackage="it.dadaloop.evershelf.scalegate" filePath="app/src/main/res/layout/item_device.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="androidx.cardview.widget.CardView"><Targets><Target tag="layout/item_device_0" view="androidx.cardview.widget.CardView"><Expressions/><location startLine="1" startOffset="0" endLine="57" endOffset="35"/></Target><Target id="@+id/tv_device_name" view="TextView"><Expressions/><location startLine="31" startOffset="12" endLine="37" endOffset="45"/></Target><Target id="@+id/tv_device_addr" view="TextView"><Expressions/><location startLine="39" startOffset="12" endLine="45" endOffset="45"/></Target><Target id="@+id/tv_device_rssi" view="TextView"><Expressions/><location startLine="49" startOffset="8" endLine="54" endOffset="41"/></Target></Targets></Layout>
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="activity_main" modulePackage="it.dadaloop.evershelf.scalegate" filePath="app/src/main/res/layout/activity_main.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="android.widget.ScrollView"><Targets><Target tag="layout/activity_main_0" view="ScrollView"><Expressions/><location startLine="1" startOffset="0" endLine="285" endOffset="12"/></Target><Target id="@+id/tv_version" view="TextView"><Expressions/><location startLine="37" startOffset="12" endLine="45" endOffset="39"/></Target><Target id="@+id/tv_gateway_url" view="TextView"><Expressions/><location startLine="72" startOffset="16" endLine="81" endOffset="49"/></Target><Target id="@+id/tv_gateway_url_hint" view="TextView"><Expressions/><location startLine="83" startOffset="16" endLine="90" endOffset="49"/></Target><Target id="@+id/btn_copy_url" view="Button"><Expressions/><location startLine="92" startOffset="16" endLine="99" endOffset="69"/></Target><Target id="@+id/tv_gateway_status" view="TextView"><Expressions/><location startLine="105" startOffset="8" endLine="112" endOffset="41"/></Target><Target id="@+id/tv_client_count" view="TextView"><Expressions/><location startLine="114" startOffset="8" endLine="122" endOffset="39"/></Target><Target id="@+id/card_connection" view="androidx.cardview.widget.CardView"><Expressions/><location startLine="125" startOffset="8" endLine="193" endOffset="43"/></Target><Target id="@+id/tv_scale_status" view="TextView"><Expressions/><location startLine="140" startOffset="16" endLine="148" endOffset="49"/></Target><Target id="@+id/tv_weight" view="TextView"><Expressions/><location startLine="150" startOffset="16" endLine="160" endOffset="49"/></Target><Target id="@+id/tv_weight_hint" view="TextView"><Expressions/><location startLine="162" startOffset="16" endLine="170" endOffset="49"/></Target><Target id="@+id/tv_battery" view="TextView"><Expressions/><location startLine="172" startOffset="16" endLine="179" endOffset="47"/></Target><Target id="@+id/btn_disconnect" view="Button"><Expressions/><location startLine="181" startOffset="16" endLine="190" endOffset="69"/></Target><Target id="@+id/btn_scan" view="Button"><Expressions/><location startLine="196" startOffset="8" endLine="204" endOffset="61"/></Target><Target id="@+id/btn_debug" view="Button"><Expressions/><location startLine="212" startOffset="12" endLine="221" endOffset="65"/></Target><Target id="@+id/btn_copy_log" view="Button"><Expressions/><location startLine="223" startOffset="12" endLine="233" endOffset="65"/></Target><Target id="@+id/btn_share_log" view="Button"><Expressions/><location startLine="235" startOffset="12" endLine="244" endOffset="65"/></Target><Target id="@+id/sv_debug_log" view="ScrollView"><Expressions/><location startLine="248" startOffset="8" endLine="265" endOffset="20"/></Target><Target id="@+id/tv_debug_log" view="TextView"><Expressions/><location startLine="256" startOffset="12" endLine="264" endOffset="39"/></Target><Target id="@+id/tv_scan_hint" view="TextView"><Expressions/><location startLine="267" startOffset="8" endLine="275" endOffset="39"/></Target><Target id="@+id/rv_devices" view="androidx.recyclerview.widget.RecyclerView"><Expressions/><location startLine="278" startOffset="8" endLine="282" endOffset="52"/></Target></Targets></Layout>
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?><Layout layout="item_device" modulePackage="it.dadaloop.evershelf.scalegate" filePath="app/src/main/res/layout/item_device.xml" directory="layout" isMerge="false" isBindingData="false" rootNodeType="androidx.cardview.widget.CardView"><Targets><Target tag="layout/item_device_0" view="androidx.cardview.widget.CardView"><Expressions/><location startLine="1" startOffset="0" endLine="57" endOffset="35"/></Target><Target id="@+id/tv_device_name" view="TextView"><Expressions/><location startLine="31" startOffset="12" endLine="37" endOffset="45"/></Target><Target id="@+id/tv_device_addr" view="TextView"><Expressions/><location startLine="39" startOffset="12" endLine="45" endOffset="45"/></Target><Target id="@+id/tv_device_rssi" view="TextView"><Expressions/><location startLine="49" startOffset="8" endLine="54" endOffset="41"/></Target></Targets></Layout>

Some files were not shown because too many files have changed in this diff Show More