react-native-zeroconf 0.13.6 → 0.13.8
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/README.md
CHANGED
|
@@ -11,6 +11,8 @@ Get running services advertizing themselves using Zeroconf implementations like
|
|
|
11
11
|
react-native link
|
|
12
12
|
# for ios (when using CocoaPods):
|
|
13
13
|
(cd ios && pod install)
|
|
14
|
+
# for macOS (when using CocoaPods):
|
|
15
|
+
(cd macos && pod install)
|
|
14
16
|
|
|
15
17
|
You can look at [the wiki](https://github.com/Apercu/react-native-zeroconf/wiki) if you prefer a manual install.
|
|
16
18
|
|
|
@@ -52,7 +52,7 @@ public class ZeroconfModule extends ReactContextBaseJavaModule {
|
|
|
52
52
|
public void scan(String type, String protocol, String domain, String implType) {
|
|
53
53
|
try {
|
|
54
54
|
getZeroconfImpl(implType).scan(type, protocol, domain);
|
|
55
|
-
} catch (
|
|
55
|
+
} catch (Throwable e) {
|
|
56
56
|
Log.e(getClass().getName(), e.getMessage(), e);
|
|
57
57
|
sendEvent(getReactApplicationContext(), ZeroconfModule.EVENT_ERROR, "Exception During Scan: " + e.getMessage());
|
|
58
58
|
}
|
|
@@ -62,7 +62,7 @@ public class ZeroconfModule extends ReactContextBaseJavaModule {
|
|
|
62
62
|
public void stop(String implType) {
|
|
63
63
|
try {
|
|
64
64
|
getZeroconfImpl(implType).stop();
|
|
65
|
-
} catch (
|
|
65
|
+
} catch (Throwable e) {
|
|
66
66
|
Log.e(getClass().getName(), e.getMessage(), e);
|
|
67
67
|
sendEvent(getReactApplicationContext(), ZeroconfModule.EVENT_ERROR, "Exception During Stop: " + e.getMessage());
|
|
68
68
|
}
|
|
@@ -76,7 +76,7 @@ public class ZeroconfModule extends ReactContextBaseJavaModule {
|
|
|
76
76
|
public void registerService(String type, String protocol, String domain, String name, int port, ReadableMap txt, String implType) {
|
|
77
77
|
try {
|
|
78
78
|
getZeroconfImpl(implType).registerService(type, protocol, domain, name, port, txt);
|
|
79
|
-
} catch (
|
|
79
|
+
} catch (Throwable e) {
|
|
80
80
|
Log.e(getClass().getName(), e.getMessage(), e);
|
|
81
81
|
sendEvent(getReactApplicationContext(), ZeroconfModule.EVENT_ERROR, "Exception During Register Service: " + e.getMessage());
|
|
82
82
|
}
|
|
@@ -86,7 +86,7 @@ public class ZeroconfModule extends ReactContextBaseJavaModule {
|
|
|
86
86
|
public void unregisterService(String serviceName, String implType) {
|
|
87
87
|
try {
|
|
88
88
|
getZeroconfImpl(implType).unregisterService(serviceName);
|
|
89
|
-
} catch (
|
|
89
|
+
} catch (Throwable e) {
|
|
90
90
|
Log.e(getClass().getName(), e.getMessage(), e);
|
|
91
91
|
sendEvent(getReactApplicationContext(), ZeroconfModule.EVENT_ERROR, "Exception During Unregister Service: " + e.getMessage());
|
|
92
92
|
}
|
|
@@ -106,7 +106,7 @@ public class ZeroconfModule extends ReactContextBaseJavaModule {
|
|
|
106
106
|
try {
|
|
107
107
|
stop(ZeroConfImplFactory.NSD_IMPL);
|
|
108
108
|
stop(ZeroConfImplFactory.DNSSD_IMPL);
|
|
109
|
-
} catch (
|
|
109
|
+
} catch (Throwable e) {
|
|
110
110
|
Log.e(getClass().getName(), e.getMessage(), e);
|
|
111
111
|
sendEvent(getReactApplicationContext(), ZeroconfModule.EVENT_ERROR, "Exception During Catalyst Destroy: " + e.getMessage());
|
|
112
112
|
}
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@ Pod::Spec.new do |s|
|
|
|
11
11
|
s.authors = package['author']
|
|
12
12
|
s.homepage = package['homepage']
|
|
13
13
|
s.ios.deployment_target = '9.0'
|
|
14
|
+
s.macos.deployment_target = '10.13'
|
|
14
15
|
s.tvos.deployment_target = '9.0'
|
|
15
16
|
|
|
16
17
|
s.source = { :git => "https://github.com/balthazar/react-native-zeroconf.git", :tag => "v#{s.version}" }
|