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 {
3030 applicationId " com.stealthcotper.networktools"
3131 minSdkVersion minSdkVer
3232 targetSdkVersion targetSdkVer
33- versionCode 10
34- versionName " 0.3.0 "
33+ versionCode versionCode
34+ versionName versionName
3535 testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
3636 }
3737
Original file line number Diff line number Diff line change @@ -27,4 +27,7 @@ subprojects {
2727 ext. minSdkVer = 10
2828 ext. targetSdkVer = 24
2929 ext. supportLibVer = " 24.0.0"
30+
31+ ext. versionName = " 0.3.02"
32+ ext. versionCode = 11
3033}
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ android {
77 defaultConfig {
88 minSdkVersion minSdkVer
99 targetSdkVersion targetSdkVer
10- versionCode 10
11- versionName " 0.3.0 "
10+ versionCode versionCode
11+ versionName versionName
1212 }
1313 buildTypes {
1414 release {
Original file line number Diff line number Diff line change 88import java .net .InetAddress ;
99import java .net .UnknownHostException ;
1010import java .util .ArrayList ;
11+ import java .util .List ;
1112import java .util .concurrent .ExecutorService ;
1213import java .util .concurrent .Executors ;
1314import java .util .concurrent .TimeUnit ;
@@ -80,6 +81,23 @@ public static SubnetDevices fromIPAddress(@NonNull final String ipAddress) {
8081
8182 }
8283
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+
83101 /**
84102 *
85103 * @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