Skip to content

Commit cf6420a

Browse files
Merge pull request stealthcopter#24 from stealthcopter/master
Merging develop changes
2 parents 91b8dce + b40b8f7 commit cf6420a

File tree

6 files changed

+28
-7
lines changed

6 files changed

+28
-7
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

library/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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 {

library/src/main/java/com/stealthcopter/networktools/SubnetDevices.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import java.net.InetAddress;
99
import java.net.UnknownHostException;
1010
import java.util.ArrayList;
11+
import java.util.List;
1112
import java.util.concurrent.ExecutorService;
1213
import java.util.concurrent.Executors;
1314
import 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

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55

66
Disappointed 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

scripts/github-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ GITHUB_UPLOAD_URL="https://uploads.github.com/repos/stealthcopter/AndroidNetwork
1818

1919
function 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

0 commit comments

Comments
 (0)