Skip to content

Commit

Permalink
Fix for IllegalAccessError
Browse files Browse the repository at this point in the history
close #55
  • Loading branch information
isuPatches committed Jul 4, 2017
1 parent 799d1b1 commit 24e7971
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 17 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ subprojects {

ext {
GROUP = "com.isupatches"
VERSION_NAME = "1.0.9"
VERSION_NAME = "1.0.10"

BINTRAY_REPO = "Maven"
BINTRAY_NAME = "wisefy"
Expand Down
5 changes: 3 additions & 2 deletions wisefy/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 25
versionCode 8
versionCode 9
versionName version
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
Expand All @@ -54,12 +54,13 @@ android {

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.3.1'

androidTestCompile 'com.android.support:support-annotations:25.3.1'
androidTestCompile 'com.android.support.test.espresso:espresso-core:2.2.2'
androidTestCompile 'org.mockito:mockito-android:2.8.47'
androidTestCompile 'com.android.support.test:runner:0.5'
// For issue #55 / IllegalAccessError conflict test
androidTestCompile 'com.google.android.gms:play-services-gcm:8.3.0'

testCompile 'org.mockito:mockito-core:2.7.19'
testCompile 'junit:junit:4.12'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import android.net.wifi.WifiManager;
import android.os.Build;
import android.support.test.rule.ActivityTestRule;
import com.google.android.gms.iid.InstanceID;
import com.isupatches.wisefy.WiseFy;
import com.isupatches.wisefy.constants.WiseFyCodes;
import com.isupatches.wisefy.test.base.BaseTestClass;
Expand Down Expand Up @@ -398,6 +399,12 @@ public void enableWiFi_success() {
assertEquals(true, result);
}

@Test
public void olderGcm_IllegalAccessError_notThrown() {
InstanceID instanceID = InstanceID.getInstance(mActivityTestRule.getActivity());
assertNotNull(instanceID);
}

@Test
public void getCurrentNetwork_failure_nullWifiManager() {
setManagersToNull();
Expand Down
3 changes: 0 additions & 3 deletions wisefy/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#303F9F</color>
<color name="colorAccent">#FF4081</color>
</resources>
1 change: 1 addition & 0 deletions wisefy/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
</resources>
11 changes: 0 additions & 11 deletions wisefy/src/main/res/values/styles.xml

This file was deleted.

0 comments on commit 24e7971

Please sign in to comment.