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 {
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.04"
32
+ ext. versionCode = 12
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 ;
@@ -81,6 +82,23 @@ public static SubnetDevices fromIPAddress(@NonNull final String ipAddress) {
81
82
82
83
}
83
84
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
+
84
102
/**
85
103
*
86
104
* @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 5
5
6
6
Disappointed by the lack of good network apis in android / java I developed a collection of handy networking tools for everyday android development.
7
7
8
- * Ping
9
8
* Port Scanning
10
- * Subnet tools (find devices on local network)
9
+ * Subnet Device Finder (discovers devices on local network)
10
+ * Ping
11
11
* Wake-On-Lan
12
12
* & More :)
13
13
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ GITHUB_UPLOAD_URL="https://uploads.github.com/repos/stealthcopter/AndroidNetwork
18
18
19
19
function create_github_release {
20
20
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`
22
22
23
23
echo " Uploading release"
24
24
You can’t perform that action at this time.
0 commit comments