File tree Expand file tree Collapse file tree 6 files changed +28
-7
lines changed
src/main/java/com/stealthcopter/networktools Expand file tree Collapse file tree 6 files changed +28
-7
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.04"
32+ ext. versionCode = 12
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 ;
@@ -81,6 +82,23 @@ public static SubnetDevices fromIPAddress(@NonNull final String ipAddress) {
8182
8283 }
8384
85+
86+ /**
87+ * @param ipAddresses - the ipAddresses of devices to be checked
88+ *
89+ */
90+ public static SubnetDevices fromIPList (@ NonNull final List <String > ipAddresses ) {
91+
92+ SubnetDevices subnetDevice = new SubnetDevices ();
93+
94+ subnetDevice .addresses = new ArrayList <>();
95+
96+ subnetDevice .addresses .addAll (ipAddresses );
97+
98+ return subnetDevice ;
99+
100+ }
101+
84102 /**
85103 *
86104 * @param noThreads set the number of threads to work with, note we default to a large number
Original file line number Diff line number Diff line change 55
66Disappointed by the lack of good network apis in android / java I developed a collection of handy networking tools for everyday android development.
77
8- * Ping
98* Port Scanning
10- * Subnet tools (find devices on local network)
9+ * Subnet Device Finder (discovers devices on local network)
10+ * Ping
1111* Wake-On-Lan
1212* & More :)
1313
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ GITHUB_UPLOAD_URL="https://uploads.github.com/repos/stealthcopter/AndroidNetwork
1818
1919function create_github_release {
2020
21- version=` cat $1 / build.gradle | grep -m 1 versionName | cut -d' "' -f 2`
21+ version=` cat build.gradle | grep -m 1 versionName | cut -d' "' -f 2`
2222
2323 echo " Uploading release"
2424
You can’t perform that action at this time.
0 commit comments