Skip to content

Commit f56dd74

Browse files
Hotfix/Class wrongly cast (#103)
* preventing java null pointer exception upon receiving event triggered from outside Xendit * fix json conversion * handle unbundled case * update readme * bug fixed * fix wrong casting bug * merging conflict
1 parent c461ead commit f56dd74

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

Diff for: CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# CHANGELOG
22

3+
## 3.8.4 (2023-05-03)
4+
- Bug Fix: Fix Wrong Casting Bug
5+
36
## 3.8.3 (2023-05-03)
47
- Bug Fix: Redeploy
58

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ Maven:
3131
<dependency>
3232
<groupId>com.xendit</groupId>
3333
<artifactId>xendit-android</artifactId>
34-
<version>3.8.3</version>
34+
<version>3.8.4</version>
3535
<type>pom</type>
3636
</dependency>
3737
```
3838

3939
Gradle:
4040
```
41-
compile 'com.xendit:xendit-android:3.8.3'
41+
compile 'com.xendit:xendit-android:3.8.4'
4242
```
4343

4444
Ivy:
4545
```
46-
<dependency org='com.xendit' name='xendit-android' rev='3.8.3'>
46+
<dependency org='com.xendit' name='xendit-android' rev='3.8.4'>
4747
<artifact name='xendit-android' ext='pom' ></artifact>
4848
</dependency>
4949
```

Diff for: xendit-android/build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'maven-publish'
33
apply plugin: 'com.jfrog.bintray'
44

55
group 'com.xendit'
6-
version '3.8.3'
6+
version '3.8.4'
77

88
ext {
99
bintrayOrg = 'xendit'
@@ -36,7 +36,7 @@ android {
3636
minSdkVersion 21
3737
targetSdkVersion 30
3838
versionCode 1
39-
versionName '3.8.3'
39+
versionName '3.8.4'
4040
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
4141
}
4242
buildTypes {

Diff for: xendit-android/src/main/java/com/xendit/TokenBroadcastReceiver.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import com.google.gson.Gson;
88
import com.google.gson.JsonSyntaxException;
99
import com.google.gson.reflect.TypeToken;
10+
import com.xendit.Models.AuthenticatedToken;
1011
import com.xendit.Models.Authentication;
1112
import com.xendit.Models.Token;
1213
import com.xendit.Models.XenditError;
@@ -46,7 +47,7 @@ public void onReceive(Context context, Intent intent) {
4647
} else {
4748
if (is3DSResultEventFromXendit(message)){
4849
Gson gson = new Gson();
49-
Authentication authentication = gson.fromJson(message, Authentication.class);
50+
AuthenticatedToken authentication = gson.fromJson(message, AuthenticatedToken.class);
5051
if (authentication.getStatus().equals("VERIFIED")) {
5152
tokenCallback.onSuccess(new Token(authentication));
5253
} else {

0 commit comments

Comments
 (0)