Skip to content

Commit

Permalink
Merge pull request #36 from isuPatches/develop
Browse files Browse the repository at this point in the history
v1.0.6
  • Loading branch information
isuPatches authored Feb 5, 2017
2 parents 7ed8ed1 + 2a59351 commit 8564046
Show file tree
Hide file tree
Showing 48 changed files with 645 additions and 4,002 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ android:
components:
- platform-tools
- tools
- build-tools-24.0.3
- build-tools-25.0.2
- android-22
- android-24
- android-25
- sys-img-armeabi-v7a-android-22
- extra-android-m2repository
- extra-android-support
Expand Down
34 changes: 31 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Wifi configuration and util library built for Android.

> <br/>*Developed by Patches 04/24/2016 - present* <br/>
>
> <br/>Supports Android SDK levels 16-24<br/><br/>
> <br/>Supports Android SDK levels 16-25<br/><br/>
[![Build Status](https://travis-ci.org/isuPatches/WiseFy.svg?branch=master)](https://travis-ci.org/isuPatches/WiseFy)

Expand Down Expand Up @@ -41,7 +41,7 @@ Then add it as a dependency:
Gradle:

```
compile 'com.isupatches:wisefy:1.0.5'
compile 'com.isupatches:wisefy:1.0.6'
```

Maven:
Expand All @@ -50,7 +50,7 @@ Maven:
<dependency>
<groupId>com.isupatches</groupId>
<artifactId>wisefy</artifactId>
<version>1.0.5</version>
<version>1.0.6</version>
<type>pom</type>
</dependency>
```
Expand Down Expand Up @@ -135,6 +135,20 @@ To get current network:
WifiInfo currentNetwork = mWiseFy.getCurrentNetwork();
```

To get the frequency of the devices current network:<br/><br/>
<strong>* NOTE *</strong> Only supported on API >= 21

```java
int frequency = mWiseFy.getFrequency();
```

To get the frequency of a network:<br/><br/>
<strong>* NOTE *</strong> Only supported on API >= 21

```java
int frequency = mWiseFy.getFrequency(wifiInfo);
```

To get nearby access points:<br/><br/>
<strong>Setting filterDuplicates to true will not return SSIDs with a weaker signal strength (will always take the highest)</strong>

Expand Down Expand Up @@ -172,6 +186,20 @@ To check and see if the device is connected to a wifi network:
boolean isConnected = mWiseFy.isDeviceConnectedToWifiNetwork();
```

To check if the device's current network is 5gHz:<br/><br/>
<strong>* NOTE *</strong> Only supported on API >= 21

```java
boolean is5gHz = mWiseFy.isNetwork5gHz();
```

To check if a network is 5gHz:<br/><br/>
<strong>* NOTE *</strong> Only supported on API >= 21

```java
boolean is5gHz = mWiseFy.isNetwork5gHz(wifiInfo);
```

To check and see if a given SSID is in the devices set of configured networks:

```java
Expand Down
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ buildscript {
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.2'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.5.6'
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.getkeepsafe.dexcount:dexcount-gradle-plugin:0.6.2'
classpath "com.github.dcendents:android-maven-gradle-plugin:1.5"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.2'
classpath "org.jacoco:org.jacoco.core:0.7.7.201606060606"
classpath "org.jacoco:org.jacoco.agent:0.7.7.201606060606"
classpath "org.jacoco:org.jacoco.report:0.7.7.201606060606"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath "org.jacoco:org.jacoco.core:0.7.8"
classpath "org.jacoco:org.jacoco.agent:0.7.8"
classpath "org.jacoco:org.jacoco.report:0.7.8"
}
}

Expand Down Expand Up @@ -46,7 +46,7 @@ subprojects {

ext {
GROUP = "com.isupatches"
VERSION_NAME = "1.0.5"
VERSION_NAME = "1.0.6"

BINTRAY_REPO = "Maven"
BINTRAY_NAME = "wisefy"
Expand Down
1 change: 1 addition & 0 deletions gradle/gradle-bintray-upload.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ if (project.hasProperty("android")) { // Android libraries

task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
destinationDir = file("../javadoc/")
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
}
} else { // Java libraries
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sat Oct 15 13:02:11 CDT 2016
#Sat Feb 04 20:20:36 CST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
46 changes: 25 additions & 21 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,30 @@
##
##############################################################################

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null

APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"

Expand All @@ -30,6 +48,7 @@ die ( ) {
cygwin=false
msys=false
darwin=false
nonstop=false
case "`uname`" in
CYGWIN* )
cygwin=true
Expand All @@ -40,26 +59,11 @@ case "`uname`" in
MINGW* )
msys=true
;;
NONSTOP* )
nonstop=true
;;
esac

# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar

# Determine the Java command to use to start the JVM.
Expand All @@ -85,7 +89,7 @@ location of your Java installation."
fi

# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
Expand Down
8 changes: 4 additions & 4 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
@rem Set local scope for the variables with windows NT shell
if "%OS%"=="Windows_NT" setlocal

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
set APP_BASE_NAME=%~n0
set APP_HOME=%DIRNAME%

@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
set DEFAULT_JVM_OPTS=

@rem Find java.exe
if defined JAVA_HOME goto findJavaFromJavaHome

Expand Down Expand Up @@ -46,7 +46,7 @@ echo location of your Java installation.
goto fail

:init
@rem Get command-line arguments, handling Windowz variants
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args
Expand Down
6 changes: 3 additions & 3 deletions javadoc/allclasses-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_102) on Sat Oct 29 18:52:39 CDT 2016 -->
<title>All Classes (app 1.0.4 API)</title>
<meta name="date" content="2016-10-29">
<!-- Generated by javadoc (1.8.0_102) on Sat Feb 04 20:18:05 CST 2017 -->
<title>All Classes (wisefy 1.0.6 API)</title>
<meta name="date" content="2017-02-04">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
Expand Down
6 changes: 3 additions & 3 deletions javadoc/allclasses-noframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_102) on Sat Oct 29 18:52:39 CDT 2016 -->
<title>All Classes (app 1.0.4 API)</title>
<meta name="date" content="2016-10-29">
<!-- Generated by javadoc (1.8.0_102) on Sat Feb 04 20:18:05 CST 2017 -->
<title>All Classes (wisefy 1.0.6 API)</title>
<meta name="date" content="2017-02-04">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
Expand Down
Loading

0 comments on commit 8564046

Please sign in to comment.