Skip to content

Commit 1734300

Browse files
author
Sureshkumar
committed
DeskGear email issue fix
2 parents 6e53789 + 3967c5a commit 1734300

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ Installing the HelpStack library is fairly straight-forward.
4848
compile 'com.tenmiles:helpstack:1.2.0'
4949
}
5050

51+
3. Add this to avoid *duplicate file during packaging APK*
52+
53+
packagingOptions {
54+
exclude 'META-INF/DEPENDENCIES'
55+
exclude 'META-INF/NOTICE'
56+
exclude 'META-INF/LICENSE'
57+
}
5158
5259
For more information on installation, such as Installing in Eclipse and common installation errors, visit this Wiki page: [Installation Instructions](https://github.com/happyfoxinc/helpstack-android/wiki/Installation-Instructions)
5360

@@ -146,8 +153,18 @@ HelpStack depends on the following libraries:
146153
'com.android.support:appcompat-v7:23.0.0'
147154
'com.google.code.gson:gson:2.3'
148155
'org.apache.httpcomponents:httpmime:4.2.6'
149-
'com.mcxiaoke.volley:library:1.0.5'
156+
'com.mcxiaoke.volley:library:1.0.19'
150157

158+
## Proguard (Optional)
159+
160+
If you have Proguard enabled, please add this snippet to your proguard rules file (eg proguard-rules.pro, proguard.cfg or others):
161+
162+
# helpstack
163+
-dontwarn com.polites.**
164+
-dontwarn com.tenmiles.helpstack.**
165+
-dontwarn org.apache.commons.**
166+
-keep class org.apache.http.** { *; }
167+
-dontwarn org.apache.http.**
151168

152169
## Video
153170

helpstack/src/com/tenmiles/helpstack/gears/HSDeskGear.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public void onResponse(JSONObject responseObject) {
158158

159159
int emailsArrayLength = emailsArray.length();
160160
for (int j = 0; j < emailsArrayLength; j++) {
161-
JSONObject emailDetails = couldBeValidUsersArray.getJSONObject(j);
161+
JSONObject emailDetails = emailsArray.getJSONObject(j);
162162

163163
if (emailDetails.getString("value").equals(user.getEmail())) {
164164
validUserDetail = couldBeValidUserDetail;

0 commit comments

Comments
 (0)