Skip to content

Commit

Permalink
0.0.11
Browse files Browse the repository at this point in the history
  • Loading branch information
shadoWalker7 committed Apr 22, 2019
1 parent 5ed6c0d commit 90e343e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ayannetworking/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android {
minSdkVersion 16
targetSdkVersion 28
versionCode 1
versionName "0.0.10"
versionName "0.0.11"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import retrofit2.Response
import java.net.SocketTimeoutException
import java.net.UnknownHostException
import java.util.concurrent.TimeoutException
import com.google.gson.reflect.TypeToken



typealias ReCallApi = () -> Unit
typealias GetUserToken = () -> String
Expand Down Expand Up @@ -93,10 +96,8 @@ class AyanApi private constructor(
)
} catch (e: Exception) {
try {
parameters = Gson().fromJson<GenericOutput>(
jsonObject.getAsJsonArray("Parameters"),
GenericOutput::class.java
)
parameters = Gson().fromJson(jsonObject.getAsJsonArray("Parameters"), object : TypeToken<List<GenericOutput>>() {
}.type)
} catch (e: Exception) {
Log.d("AyanLog", "Parameters is null.")
}
Expand Down

0 comments on commit 90e343e

Please sign in to comment.