From 48def3c09edd2b5ae54129084bc6d2f266396fb2 Mon Sep 17 00:00:00 2001 From: isuPatches Date: Sat, 1 Jul 2017 23:13:48 -0500 Subject: [PATCH 01/10] Adjust scope for withContext, bump some versions, remove potential manifest conflicts close #41 --- .travis.yml | 2 +- build.gradle | 2 +- gradle/wrapper/gradle-wrapper.jar | Bin 54208 -> 54208 bytes gradle/wrapper/gradle-wrapper.properties | 4 ++-- wisefy/build.gradle | 16 +++++++++------- ...{proguard-rules.pro => proguard-rules.txt} | 0 wisefy/proguard-test-rules.txt | 0 wisefy/src/main/AndroidManifest.xml | 7 +------ .../java/com/isupatches/wisefy/WiseFy.java | 2 +- 9 files changed, 15 insertions(+), 18 deletions(-) rename wisefy/{proguard-rules.pro => proguard-rules.txt} (100%) create mode 100644 wisefy/proguard-test-rules.txt diff --git a/.travis.yml b/.travis.yml index ac875209..0ff92225 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ android: components: - platform-tools - tools - - build-tools-25.0.2 + - build-tools-25.0.3 - android-22 - android-25 - sys-img-armeabi-v7a-android-22 diff --git a/build.gradle b/build.gradle index 1bfd7e73..0b9440d7 100644 --- a/build.gradle +++ b/build.gradle @@ -46,7 +46,7 @@ subprojects { ext { GROUP = "com.isupatches" - VERSION_NAME = "1.0.7" + VERSION_NAME = "1.0.8" BINTRAY_REPO = "Maven" BINTRAY_NAME = "wisefy" diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 6bbd00198b8f28418c55f36be6c3b0cf0e9477e5..39ca0351a5e2abd565e9934be2c2d6dd0d0bb27a 100644 GIT binary patch delta 957 zcmYL{dq`7J9LLXgwYw%WoeRt`AAhWb$`Y}fz29xNW?QsUr+LjD7MbB#k3S0fuRl^x zM3Ry*Yl2|V!bk*dn|nGp73l#*7A4X@3Y7&#-TOUae_TGF-|u|S;oNi1po<%HaVnF6 zOVALaP>?#irCFs_h|v49AMR@|wrW~u8fF`0C0_QE@!?=K<8L)Dhr>_+mI-AsB7&cMsDRdvFwThiwd2_ zZPqkM{P2_#(pS;RGAF9uK)0K#j<3cymRNF9}Duvt5mB(B%LLPI3Y^1aHOqxP@_wGwU8S+aSN11%G zS1{S-=uN=T?`y>zM0dSQ4f))XrGW7F<1GBPjj~LA2gk(joZyi$cK>DjHudaa3*LEZ zVV$qfrkT8YKEov3N7;f^{aGCL-4y(Gce9)jv-qRyX{jTF{u#?~`v&%60#$j8oVs_C z+B~`(>5_TH_5%~?X@rne@iQ4@at&E{8uW#yaN%vx?;f3W^t8a657u~#z;^Fe@V(az z7Wxi?H+`kxYo86=G$eozhAKgszYMJOv-}gk6}2*81j_bdYmur6W-Uq%FQgG4^n)$Eq zMu<#C-wrSuXS9WFc%lR~fO32zkH}vYE~_X3``ob?mw16(PU0VU)>a zqk+k8%To!4=39z6i0VpD3gk;imJA}j8)e~lR?0H<_cLX!EfR3j3nk;SJ$pF0Z|-v*s^s)VDb1+ILs)>Q;{y0(KK zU3#$4eE_`b)`4%_MsUlp3A{I41&T&0z^W0Je>hT(TJF(;6&^L%<0%2>JQ{GX_b}M$ zW%=JR>U~<_0BM&`1y1;k;4VL-&96f}=f4P^4d}ra0TZ}7cmli;ECas=>%fDdGvGjo z%})xSLfss$1wV&bP7^tTx;w&he - + diff --git a/wisefy/src/main/java/com/isupatches/wisefy/WiseFy.java b/wisefy/src/main/java/com/isupatches/wisefy/WiseFy.java index c419be20..638b7a06 100644 --- a/wisefy/src/main/java/com/isupatches/wisefy/WiseFy.java +++ b/wisefy/src/main/java/com/isupatches/wisefy/WiseFy.java @@ -82,7 +82,7 @@ public static class withContext implements Logging, GetSmarts { * @param context - The activity or application context to get a WifiConfiguration and * ConnectivityManager instance */ - withContext(Context context) { + public withContext(Context context) { this.context = context; } From 716997a3d6e88b89e5999603664fc7f748ad4ec4 Mon Sep 17 00:00:00 2001 From: isuPatches Date: Sat, 1 Jul 2017 23:48:02 -0500 Subject: [PATCH 02/10] Update Javadocs, eliminate potential memory leak on Android N close #45 --- README.md | 6 +- javadoc/allclasses-frame.html | 6 +- javadoc/allclasses-noframe.html | 6 +- javadoc/com/isupatches/wisefy/WiseFy.html | 8 +-- .../isupatches/wisefy/WiseFy.withContext.html | 58 ++++++++++++++++--- .../com/isupatches/wisefy/package-frame.html | 6 +- .../isupatches/wisefy/package-summary.html | 8 +-- .../com/isupatches/wisefy/package-tree.html | 8 +-- .../wisefy/util/GetManagerUtil.html | 8 +-- .../com/isupatches/wisefy/util/LogUtil.html | 8 +-- .../com/isupatches/wisefy/util/SSIDUtil.html | 8 +-- .../isupatches/wisefy/util/package-frame.html | 6 +- .../wisefy/util/package-summary.html | 8 +-- .../isupatches/wisefy/util/package-tree.html | 8 +-- javadoc/constant-values.html | 8 +-- javadoc/deprecated-list.html | 8 +-- javadoc/help-doc.html | 8 +-- javadoc/index-all.html | 12 ++-- javadoc/index.html | 4 +- javadoc/overview-frame.html | 6 +- javadoc/overview-summary.html | 10 ++-- javadoc/overview-tree.html | 8 +-- .../java/com/isupatches/wisefy/WiseFy.java | 2 - .../wisefy/util/GetManagerUtil.java | 2 +- 24 files changed, 132 insertions(+), 88 deletions(-) diff --git a/README.md b/README.md index b4c2a80f..5725e813 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Wifi configuration and util library built for Android. [ ![Download](https://api.bintray.com/packages/isupatches/Maven/wisefy/images/download.svg) ](https://bintray.com/isupatches/Maven/wisefy/_latestVersion) - + ## Adding to your project @@ -41,7 +41,7 @@ Then add it as a dependency: Gradle: ``` -compile 'com.isupatches:wisefy:1.0.7' +compile 'com.isupatches:wisefy:1.0.8' ``` Maven: @@ -50,7 +50,7 @@ Maven: com.isupatches wisefy - 1.0.7 + 1.0.8 pom ``` diff --git a/javadoc/allclasses-frame.html b/javadoc/allclasses-frame.html index e917f75b..8e46190e 100644 --- a/javadoc/allclasses-frame.html +++ b/javadoc/allclasses-frame.html @@ -2,9 +2,9 @@ - -All Classes (wisefy 1.0.7 API) - + +All Classes (wisefy 1.0.8 API) + diff --git a/javadoc/allclasses-noframe.html b/javadoc/allclasses-noframe.html index 573c635e..0cea46d3 100644 --- a/javadoc/allclasses-noframe.html +++ b/javadoc/allclasses-noframe.html @@ -2,9 +2,9 @@ - -All Classes (wisefy 1.0.7 API) - + +All Classes (wisefy 1.0.8 API) + diff --git a/javadoc/com/isupatches/wisefy/WiseFy.html b/javadoc/com/isupatches/wisefy/WiseFy.html index 8dd27dfb..874b2510 100644 --- a/javadoc/com/isupatches/wisefy/WiseFy.html +++ b/javadoc/com/isupatches/wisefy/WiseFy.html @@ -2,9 +2,9 @@ - -WiseFy (wisefy 1.0.7 API) - + +WiseFy (wisefy 1.0.8 API) + @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ diff --git a/javadoc/com/isupatches/wisefy/package-summary.html b/javadoc/com/isupatches/wisefy/package-summary.html index 42705602..6ec108b9 100644 --- a/javadoc/com/isupatches/wisefy/package-summary.html +++ b/javadoc/com/isupatches/wisefy/package-summary.html @@ -2,9 +2,9 @@ - -com.isupatches.wisefy (wisefy 1.0.7 API) - + +com.isupatches.wisefy (wisefy 1.0.8 API) + @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ diff --git a/javadoc/com/isupatches/wisefy/util/package-summary.html b/javadoc/com/isupatches/wisefy/util/package-summary.html index f570985e..818c42f9 100644 --- a/javadoc/com/isupatches/wisefy/util/package-summary.html +++ b/javadoc/com/isupatches/wisefy/util/package-summary.html @@ -2,9 +2,9 @@ - -com.isupatches.wisefy.util (wisefy 1.0.7 API) - + +com.isupatches.wisefy.util (wisefy 1.0.8 API) + @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ diff --git a/javadoc/overview-summary.html b/javadoc/overview-summary.html index 0c819377..72a966bd 100644 --- a/javadoc/overview-summary.html +++ b/javadoc/overview-summary.html @@ -2,9 +2,9 @@ - -Overview (wisefy 1.0.7 API) - + +Overview (wisefy 1.0.8 API) + @@ -12,7 +12,7 @@ @@ -12,7 +12,7 @@ @@ -12,8 +12,8 @@

All Classes

    -
  • GetManagerUtil
  • LogUtil
  • +
  • ManagerUtil
  • SSIDUtil
  • WiseFy
  • WiseFy.withContext
  • diff --git a/javadoc/allclasses-noframe.html b/javadoc/allclasses-noframe.html index 0cea46d3..0c9f0a79 100644 --- a/javadoc/allclasses-noframe.html +++ b/javadoc/allclasses-noframe.html @@ -2,9 +2,9 @@ - + All Classes (wisefy 1.0.8 API) - + @@ -12,8 +12,8 @@

    All Classes

      -
    • GetManagerUtil
    • LogUtil
    • +
    • ManagerUtil
    • SSIDUtil
    • WiseFy
    • WiseFy.withContext
    • diff --git a/javadoc/com/isupatches/wisefy/WiseFy.html b/javadoc/com/isupatches/wisefy/WiseFy.html index 874b2510..78f25aa3 100644 --- a/javadoc/com/isupatches/wisefy/WiseFy.html +++ b/javadoc/com/isupatches/wisefy/WiseFy.html @@ -2,9 +2,9 @@ - + WiseFy (wisefy 1.0.8 API) - + @@ -150,6 +150,14 @@

      Field Summary

      static int +MAX_FREQUENCY_5GHZ  + + +static int +MIN_FREQUENCY_5GHZ  + + +static int WIFI_MANAGER_FAILURE  @@ -202,7 +210,7 @@

      WISEFY_FAILURE

      -
        +
        • WIFI_MANAGER_FAILURE

          public static final int WIFI_MANAGER_FAILURE
          @@ -212,6 +220,32 @@

          WIFI_MANAGER_FAILURE

        + + + +
          +
        • +

          MIN_FREQUENCY_5GHZ

          +
          public static final int MIN_FREQUENCY_5GHZ
          +
          +
          See Also:
          +
          Constant Field Values
          +
          +
        • +
        + + + +
          +
        • +

          MAX_FREQUENCY_5GHZ

          +
          public static final int MAX_FREQUENCY_5GHZ
          +
          +
          See Also:
          +
          Constant Field Values
          +
          +
        • +
      diff --git a/javadoc/com/isupatches/wisefy/WiseFy.withContext.html b/javadoc/com/isupatches/wisefy/WiseFy.withContext.html index 87b07617..f769b43c 100644 --- a/javadoc/com/isupatches/wisefy/WiseFy.withContext.html +++ b/javadoc/com/isupatches/wisefy/WiseFy.withContext.html @@ -2,9 +2,9 @@ - + WiseFy.withContext (wisefy 1.0.8 API) - + diff --git a/javadoc/com/isupatches/wisefy/package-frame.html b/javadoc/com/isupatches/wisefy/package-frame.html index c723d20e..7fb71ce6 100644 --- a/javadoc/com/isupatches/wisefy/package-frame.html +++ b/javadoc/com/isupatches/wisefy/package-frame.html @@ -2,9 +2,9 @@ - + com.isupatches.wisefy (wisefy 1.0.8 API) - + diff --git a/javadoc/com/isupatches/wisefy/package-summary.html b/javadoc/com/isupatches/wisefy/package-summary.html index 6ec108b9..2280b7e1 100644 --- a/javadoc/com/isupatches/wisefy/package-summary.html +++ b/javadoc/com/isupatches/wisefy/package-summary.html @@ -2,9 +2,9 @@ - + com.isupatches.wisefy (wisefy 1.0.8 API) - + diff --git a/javadoc/com/isupatches/wisefy/package-tree.html b/javadoc/com/isupatches/wisefy/package-tree.html index 4397c3f2..c4da543f 100644 --- a/javadoc/com/isupatches/wisefy/package-tree.html +++ b/javadoc/com/isupatches/wisefy/package-tree.html @@ -2,9 +2,9 @@ - + com.isupatches.wisefy Class Hierarchy (wisefy 1.0.8 API) - + diff --git a/javadoc/com/isupatches/wisefy/util/LogUtil.html b/javadoc/com/isupatches/wisefy/util/LogUtil.html index 1317b2ea..92dbb7d8 100644 --- a/javadoc/com/isupatches/wisefy/util/LogUtil.html +++ b/javadoc/com/isupatches/wisefy/util/LogUtil.html @@ -2,9 +2,9 @@ - + LogUtil (wisefy 1.0.8 API) - + @@ -48,8 +48,8 @@
    diff --git a/javadoc/com/isupatches/wisefy/util/package-summary.html b/javadoc/com/isupatches/wisefy/util/package-summary.html index 818c42f9..832b19ca 100644 --- a/javadoc/com/isupatches/wisefy/util/package-summary.html +++ b/javadoc/com/isupatches/wisefy/util/package-summary.html @@ -2,9 +2,9 @@ - + com.isupatches.wisefy.util (wisefy 1.0.8 API) - + @@ -82,15 +82,15 @@

    Package com.isupatches.wisefy.util

    -GetManagerUtil -  - - LogUtil
    Logging helper class
    + +ManagerUtil +  + SSIDUtil   diff --git a/javadoc/com/isupatches/wisefy/util/package-tree.html b/javadoc/com/isupatches/wisefy/util/package-tree.html index 8ba1fc31..821b015a 100644 --- a/javadoc/com/isupatches/wisefy/util/package-tree.html +++ b/javadoc/com/isupatches/wisefy/util/package-tree.html @@ -2,9 +2,9 @@ - + com.isupatches.wisefy.util Class Hierarchy (wisefy 1.0.8 API) - + @@ -80,8 +80,8 @@

    Class Hierarchy

    • java.lang.Object
    • diff --git a/javadoc/constant-values.html b/javadoc/constant-values.html index 90908987..cecdc4a1 100644 --- a/javadoc/constant-values.html +++ b/javadoc/constant-values.html @@ -2,9 +2,9 @@ - + Constant Field Values (wisefy 1.0.8 API) - + @@ -90,6 +90,20 @@

      com.isupatches.*

      + + +public static final int +MAX_FREQUENCY_5GHZ +5900 + + + + +public static final int +MIN_FREQUENCY_5GHZ +4900 + + public static final int diff --git a/javadoc/deprecated-list.html b/javadoc/deprecated-list.html index 9fb92791..e7b2b295 100644 --- a/javadoc/deprecated-list.html +++ b/javadoc/deprecated-list.html @@ -2,9 +2,9 @@ - + Deprecated List (wisefy 1.0.8 API) - + diff --git a/javadoc/help-doc.html b/javadoc/help-doc.html index 224a6ad3..aa1b1804 100644 --- a/javadoc/help-doc.html +++ b/javadoc/help-doc.html @@ -2,9 +2,9 @@ - + API Help (wisefy 1.0.8 API) - + diff --git a/javadoc/index-all.html b/javadoc/index-all.html index eb4f7b49..d7a72db9 100644 --- a/javadoc/index-all.html +++ b/javadoc/index-all.html @@ -2,9 +2,9 @@ - + Index (wisefy 1.0.8 API) - + @@ -68,7 +68,7 @@
-
C G I L S W  +
C G I L M S W 

C

@@ -85,16 +85,14 @@

C

G

-
getConnectivityManager(Context) - Method in class com.isupatches.wisefy.util.GetManagerUtil
+
getConnectivityManager(Context) - Method in class com.isupatches.wisefy.util.ManagerUtil
To get a Connectivity manger instance from an activity's context.
-
getInstance() - Static method in class com.isupatches.wisefy.util.GetManagerUtil
+
getInstance() - Static method in class com.isupatches.wisefy.util.ManagerUtil
 
getInstance() - Static method in class com.isupatches.wisefy.util.SSIDUtil
 
-
GetManagerUtil - Class in com.isupatches.wisefy.util
-
 
getSmarts() - Method in class com.isupatches.wisefy.WiseFy.withContext
Mandatory - To build and return a WiseFy instance @@ -102,7 +100,7 @@

G

Must be called after withContext #withContext(Context)
-
getWiFiManager(Context) - Method in class com.isupatches.wisefy.util.GetManagerUtil
+
getWiFiManager(Context) - Method in class com.isupatches.wisefy.util.ManagerUtil
To get a WiFi manger instance from an activity's context.
@@ -133,6 +131,18 @@

L

LogUtil() - Constructor for class com.isupatches.wisefy.util.LogUtil
 
+ + + +

M

+
+
ManagerUtil - Class in com.isupatches.wisefy.util
+
 
+
MAX_FREQUENCY_5GHZ - Static variable in class com.isupatches.wisefy.WiseFy
+
 
+
MIN_FREQUENCY_5GHZ - Static variable in class com.isupatches.wisefy.WiseFy
+
 
+
@@ -167,7 +177,7 @@

W

Mandatory - The public constructor for the builder that requires a context
-C G I L S W 
+C G I L M S W 
diff --git a/javadoc/index.html b/javadoc/index.html index fea77ad9..0543d794 100644 --- a/javadoc/index.html +++ b/javadoc/index.html @@ -2,7 +2,7 @@ - + wisefy 1.0.8 API diff --git a/javadoc/overview-summary.html b/javadoc/overview-summary.html index 72a966bd..d40be120 100644 --- a/javadoc/overview-summary.html +++ b/javadoc/overview-summary.html @@ -2,9 +2,9 @@ - + Overview (wisefy 1.0.8 API) - + diff --git a/javadoc/overview-tree.html b/javadoc/overview-tree.html index a6cbde71..0f745d86 100644 --- a/javadoc/overview-tree.html +++ b/javadoc/overview-tree.html @@ -2,9 +2,9 @@ - + Class Hierarchy (wisefy 1.0.8 API) - + @@ -81,8 +81,8 @@

Class Hierarchy