Closed damithg-dev closed 3 years ago
Dear @damithg-dev,
The hosting service for the PayHere Android SDK used internally by the ReactNative SDK is no longer available via bintray.com as it is being shutdown by owner, JFrog.
Our Android team is working on releasing an update soon. Once it is released, the React-Native SDK will receive an update as well.
Until then, please bare with us. We apologize for the inconvenience caused.
Dear @damithg-dev,
Please update to the latest version of the PayHere React Native SDK and try again. An updated version has been released fixing these issues.
{
"dependencies": {
"@payhere/payhere-mobilesdk-reactnative": "1.0.10"
}
}
Further, note that you will need to modify your Android project's outer-most build.gradle
file to switch to the new PayHere Android SDK's Repo (these changes are also mentioned in the 2. Android Pre-requisites section).
Open up the (outermost) build.gradle file in your Android project and add the repository.
allprojects {
repositories {
mavenLocal()
maven {
// New URL and credentials section.
url 'https://maven.pkg.github.com/PayHereLK/payhere-mobilesdk-android'
credentials {
username = 'PayHereDevs'
password = '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'
}
}
}
}
If you have any further issues, please let us know within a few days so we can make quick changes. Once more, thank you for bringing issue to our attention.
Hello @damithg-dev,
Please note there has been a small patch fix. The new version is as follows.
{
"dependencies": {
"@payhere/payhere-mobilesdk-reactnative": "1.0.11"
}
}
We migrated from GitHub Packages and the SDK is now hosted at a new repository. So you won't need the "credentials" section anymore. Please update the main build.gradle file as follows.
allprojects {
repositories {
mavenLocal()
maven {
// New URL.
url 'https://repo.repsy.io/mvn/payhere/payhere-mobilesdk-android/'
}
}
}
@PayHereDevs the second solution was to resolve my issues. Thank you attend the issue imdietaly.
As below, when running the android build, it got failed.
`
version: "payhere/payhere-mobilesdk-reactnative": "1.0.8",