File tree Expand file tree Collapse file tree 4 files changed +25
-4
lines changed
src/main/java/com/stealthcopter/networktools Expand file tree Collapse file tree 4 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ android {
30
30
applicationId " com.stealthcotper.networktools"
31
31
minSdkVersion minSdkVer
32
32
targetSdkVersion targetSdkVer
33
- versionCode 10
34
- versionName " 0.3.0 "
33
+ versionCode versionCode
34
+ versionName versionName
35
35
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
36
36
}
37
37
Original file line number Diff line number Diff line change @@ -27,4 +27,7 @@ subprojects {
27
27
ext. minSdkVer = 10
28
28
ext. targetSdkVer = 24
29
29
ext. supportLibVer = " 24.0.0"
30
+
31
+ ext. versionName = " 0.3.02"
32
+ ext. versionCode = 11
30
33
}
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ android {
7
7
defaultConfig {
8
8
minSdkVersion minSdkVer
9
9
targetSdkVersion targetSdkVer
10
- versionCode 10
11
- versionName " 0.3.0 "
10
+ versionCode versionCode
11
+ versionName versionName
12
12
}
13
13
buildTypes {
14
14
release {
Original file line number Diff line number Diff line change 8
8
import java .net .InetAddress ;
9
9
import java .net .UnknownHostException ;
10
10
import java .util .ArrayList ;
11
+ import java .util .List ;
11
12
import java .util .concurrent .ExecutorService ;
12
13
import java .util .concurrent .Executors ;
13
14
import java .util .concurrent .TimeUnit ;
@@ -80,6 +81,23 @@ public static SubnetDevices fromIPAddress(@NonNull final String ipAddress) {
80
81
81
82
}
82
83
84
+
85
+ /**
86
+ * @param ipAddresses - the ipAddresses of devices to be checked
87
+ *
88
+ */
89
+ public static SubnetDevices fromIPList (@ NonNull final List <String > ipAddresses ) {
90
+
91
+ SubnetDevices subnetDevice = new SubnetDevices ();
92
+
93
+ subnetDevice .addresses = new ArrayList <>();
94
+
95
+ subnetDevice .addresses .addAll (ipAddresses );
96
+
97
+ return subnetDevice ;
98
+
99
+ }
100
+
83
101
/**
84
102
*
85
103
* @param noThreads set the number of threads to work with, note we default to a large number
You can’t perform that action at this time.
0 commit comments