Skip to content

Commit

Permalink
1.3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
plpt88 committed Jun 6, 2023
1 parent 10713a8 commit e97ce63
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions GenesisAndroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'kotlin-kapt'

ext {
PUBLISH_GROUP_ID = 'com.emerchantpay.gateway'
PUBLISH_VERSION = '1.3.7'
PUBLISH_VERSION = '1.3.8'
PUBLISH_ARTIFACT_ID = 'genesis-android'
PUBLISH_DESCRIPTION = 'Genesis Android SDK'
PUBLISH_URL = 'https://github.com/GenesisGateway/android_sdk'
Expand All @@ -27,7 +27,7 @@ android {
minSdkVersion 19
targetSdkVersion 33
versionCode 1
versionName "1.3.7"
versionName "1.3.8"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import com.emerchantpay.gateway.genesisandroid.api.internal.response.Response
import com.emerchantpay.gateway.genesisandroid.api.models.GenesisError
import com.emerchantpay.gateway.genesisandroid.api.network.HttpAsyncTask
import com.emerchantpay.gateway.genesisandroid.api.util.*
import java.util.concurrent.ExecutionException

open class GenesisClient : Request {

Expand Down Expand Up @@ -149,10 +148,8 @@ open class GenesisClient : Request {
&& consumerId.isNotEmpty() -> sharedPrefs.putString(context, SharedPrefConstants.CONSUMER_ID,
KeyStoreUtil(context).encryptData(result?.transaction?.consumerId))
}
} catch (e: InterruptedException) {
GenesisError(ErrorCodes.SYSTEM_ERROR.code, e.message.toString())
} catch (e: ExecutionException) {
GenesisError(ErrorCodes.SYSTEM_ERROR.code, e.message.toString())
} catch (e: Exception) {
GenesisError(ErrorCodes.SYSTEM_ERROR.code, e.message?: ErrorCodes.getErrorDescription(ErrorCodes.SYSTEM_ERROR.code?: 1))
}

return this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ class HttpAsyncTask(private val configuration: Configuration?) : AsyncTask<Any,
if (requestMethod == RequestMethod.DELETE) {
return null
}
} catch (e: IOException) {
GenesisError(connection?.responseCode, e.message.toString())
} catch (e: Exception) {
GenesisError(connection?.responseCode, e.message?: ErrorMessages.UNEXPECTED_HTTP_ERROR)
} finally {
connection?.disconnect()
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cd GenesisAndroid
* Add the dependency in your build.gradle:
```
dependencies {
implementation 'com.emerchantpay.gateway:genesis-android:1.3.7'
implementation 'com.emerchantpay.gateway:genesis-android:1.3.8'
}
```

Expand Down

0 comments on commit e97ce63

Please sign in to comment.