react-native-zeroconf 0.13.4 → 0.13.7

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
 
@@ -1,7 +1,7 @@
1
1
  buildscript {
2
2
  repositories {
3
3
  google()
4
- jcenter()
4
+ mavenCentral()
5
5
  }
6
6
 
7
7
  dependencies {
@@ -37,13 +37,13 @@ android {
37
37
 
38
38
  repositories {
39
39
  google()
40
- jcenter()
40
+ mavenCentral()
41
41
  }
42
42
 
43
43
  dependencies {
44
44
  implementation "com.facebook.react:react-native:${safeExtGet('reactNativeVersion', '+')}"
45
45
  // https://mvnrepository.com/artifact/com.github.andriydruk/rx2dnssd
46
- api group: 'com.github.andriydruk', name: 'rx2dnssd', version: '0.9.13'
46
+ api group: 'com.github.andriydruk', name: 'rx2dnssd', version: '0.9.16'
47
47
  // https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
48
48
  api group: 'org.apache.commons', name: 'commons-lang3', version: '3.11'
49
49
  }
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
  distributionPath=wrapper/dists
4
4
  zipStoreBase=GRADLE_USER_HOME
5
5
  zipStorePath=wrapper/dists
6
- distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
6
+ distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-all.zip
package/android/gradlew CHANGED
File without changes
@@ -22,6 +22,7 @@ import java.net.InetAddress;
22
22
  import java.util.HashMap;
23
23
  import java.util.Locale;
24
24
  import java.util.Map;
25
+ import java.util.List;
25
26
 
26
27
  import javax.annotation.Nullable;
27
28
 
@@ -84,20 +85,18 @@ public class DnssdImpl implements Zeroconf {
84
85
  private WritableMap serviceInfoToMap(BonjourService serviceInfo) {
85
86
  WritableMap service = new WritableNativeMap();
86
87
  service.putString(ZeroconfModule.KEY_SERVICE_NAME, serviceInfo.getServiceName());
87
- final InetAddress host = serviceInfo.getInet4Address();
88
+ final List<InetAddress> hostList = serviceInfo.getInetAddresses();
88
89
  final String fullServiceName;
89
- if (host == null) {
90
- fullServiceName = serviceInfo.getServiceName();
91
- } else {
92
- Log.d("TAG", serviceInfo.getServiceName());
93
- fullServiceName = serviceInfo.getServiceName();
94
- service.putString(ZeroconfModule.KEY_SERVICE_HOST, fullServiceName);
95
-
96
- WritableArray addresses = new WritableNativeArray();
97
- addresses.pushString(host.getHostAddress());
90
+ Log.d("TAG", serviceInfo.getServiceName());
91
+ fullServiceName = serviceInfo.getServiceName();
92
+ service.putString(ZeroconfModule.KEY_SERVICE_HOST, fullServiceName);
98
93
 
99
- service.putArray(ZeroconfModule.KEY_SERVICE_ADDRESSES, addresses);
94
+ WritableArray addresses = new WritableNativeArray();
95
+ for (InetAddress host : hostList) {
96
+ addresses.pushString(host.getHostAddress());
100
97
  }
98
+
99
+ service.putArray(ZeroconfModule.KEY_SERVICE_ADDRESSES, addresses);
101
100
  service.putString(ZeroconfModule.KEY_SERVICE_FULL_NAME, fullServiceName);
102
101
  service.putInt(ZeroconfModule.KEY_SERVICE_PORT, serviceInfo.getPort());
103
102
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-zeroconf",
3
- "version": "0.13.4",
3
+ "version": "0.13.7",
4
4
  "description": "A Zeroconf discovery utility for react-native",
5
5
  "main": "dist",
6
6
  "scripts": {
@@ -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}" }
@@ -1,47 +0,0 @@
1
- .svn
2
- .svn/*
3
-
4
-
5
- # Built application files
6
- *.apk
7
- *.ap_
8
-
9
- # Files for the ART/Dalvik VM
10
- *.dex
11
-
12
- # Java class files
13
- *.class
14
-
15
- # Generated files
16
- bin/
17
- gen/
18
- out/
19
-
20
- # Gradle files
21
- .gradle/
22
- build/
23
-
24
- # Local configuration file (sdk path, etc)
25
- local.properties
26
-
27
- # Proguard folder generated by Eclipse
28
- proguard/
29
-
30
- # Log Files
31
- *.log
32
-
33
- # Android Studio Navigation editor temp files
34
- .navigation/
35
-
36
- # Android Studio captures folder
37
- captures/
38
-
39
- # Intellij
40
- *.iml
41
- .idea/workspace.xml
42
- .idea
43
-
44
- # Keystore files
45
- *.jks
46
-
47
- .externalNativeBuild