Skip to content

Commit ca141f4

Browse files
committed
Updated readme and added signing configuration based on .gradle properties
1 parent a42aef1 commit ca141f4

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

app/build.gradle

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,25 @@ android {
2424
versionName "0.1.08"
2525
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
2626
}
27+
28+
//check if the keystore details are defined in gradle.properties (this is so the key is not in github)
29+
if (project.hasProperty("ANDROID_NETWORK_TOOLS_STORE")) {
30+
signingConfigs {
31+
//from ~/.gradle/gradle.properties
32+
release {
33+
storeFile file(ANDROID_NETWORK_TOOLS_STORE)
34+
keyAlias ANDROID_NETWORK_TOOLS_ALIAS
35+
storePassword ANDROID_NETWORK_TOOLS_PASS
36+
keyPassword ANDROID_NETWORK_TOOLS_KEY_PASS
37+
}
38+
}
39+
}
40+
2741
buildTypes {
2842
release {
43+
if (project.hasProperty("ANDROID_NETWORK_TOOLS_STORE")) {
44+
signingConfig signingConfigs.release
45+
}
2946
minifyEnabled false
3047
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
3148
}

readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ then add a library dependency. **Remember** to check for latest release [here](h
4242

4343
```groovy
4444
dependencies {
45-
compile 'com.github.stealthcopter:AndroidNetworkTools:0.1.2'
45+
compile 'com.github.stealthcopter:AndroidNetworkTools:0.2.0'
4646
}
4747
```
4848

@@ -54,7 +54,7 @@ Requires internet permission (obviously...)
5454

5555
### Ping
5656

57-
Uses the native ping binary if avaliable on the device (some devices come without it) and falls back to a TCP request on port 7 (echo request) if not.
57+
Uses the native ping binary if available on the device (some devices come without it) and falls back to a TCP request on port 7 (echo request) if not.
5858

5959
```java
6060
// Synchronously
@@ -69,7 +69,7 @@ Uses the native ping binary if avaliable on the device (some devices come withou
6969
});
7070
```
7171

72-
Note: If we do have to fall back to using TCP port 7 (the java way) to detect devices we will find significantly less than with the native ping binary. If this is an issue you could consider adding a ping binary to your application or device so that it is always avaliable.
72+
Note: If we do have to fall back to using TCP port 7 (the java way) to detect devices we will find significantly less than with the native ping binary. If this is an issue you could consider adding a ping binary to your application or device so that it is always available.
7373

7474
### Port Scanning
7575

0 commit comments

Comments
 (0)