@cappitolian/network-discovery 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/android/src/main/java/com/cappitolian/plugins/networkdiscovery/NetworkDiscovery.java
CHANGED
|
@@ -41,7 +41,9 @@ public class NetworkDiscovery {
|
|
|
41
41
|
|
|
42
42
|
// Agregar TXT records
|
|
43
43
|
if (txtRecord != null) {
|
|
44
|
-
|
|
44
|
+
Iterator<String> keys = txtRecord.keys();
|
|
45
|
+
while (keys.hasNext()) {
|
|
46
|
+
String key = keys.next();
|
|
45
47
|
try {
|
|
46
48
|
String value = txtRecord.getString(key);
|
|
47
49
|
serviceInfo.setAttribute(key, value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cappitolian/network-discovery",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "A Capacitor plugin for network service discovery using mDNS/Bonjour. Allows automatic server-client connection without manual IP configuration.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|