Open Jananijann opened 2 years ago
Hi! 👋
Today I used patch-package to patch payu-non-seam-less-react@2.4.0 for the project I'm working on.
payu-non-seam-less-react@2.4.0
Here is the diff that solved my problem:
diff --git a/node_modules/payu-non-seam-less-react/android/build.gradle b/node_modules/payu-non-seam-less-react/android/build.gradle index 48563b2..b9f1f8f 100644 --- a/node_modules/payu-non-seam-less-react/android/build.gradle +++ b/node_modules/payu-non-seam-less-react/android/build.gradle @@ -20,7 +20,7 @@ def safeExtGet(prop, fallback) { } apply plugin: 'com.android.library' -apply plugin: 'maven' +apply plugin: 'maven-publish' buildscript { @@ -40,7 +40,7 @@ buildscript { } apply plugin: 'com.android.library' -apply plugin: 'maven' +apply plugin: 'maven-publish' def getVersionFromPackageJson() { // Read and parse package.json file from project root @@ -73,7 +73,7 @@ repositories { // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm url "$rootDir/../node_modules/react-native/android" } - maven { url "https://phonepe.bintray.com/PhonePeIntentSDK" } + maven {url "https://phonepe.mycloudrepo.io/public/repositories/phonepe-intentsdk-android"} maven { // Android JSC is installed from npm url "$rootDir/../node_modules/jsc-android/dist" @@ -87,7 +87,7 @@ repositories { dependencies { //noinspection GradleDynamicVersion - implementation 'com.facebook.react:react-native:+' // From node_modules + implementation 'com.facebook.react:react-native:0.67.3' // From node_modules implementation fileTree(include: ['*.aar'], dir: 'libs') implementation 'in.payu:payu-checkout-pro:1.8.4' implementation 'in.payu:olamoney:1.1.0' @@ -161,10 +161,10 @@ afterEvaluate { project -> task installArchives(type: Upload) { configuration = configurations.archives - repositories.mavenDeployer { + repositories.maven { // Deploy to react-native-event-bridge/maven, ready to publish to npm - repository url: "file://${projectDir}/../android/maven" - configureReactNativePom pom + url= "file://${projectDir}/../android/maven" + // configureReactNativePom pom } } } diff --git a/node_modules/payu-non-seam-less-react/andr
Hi! 👋
Today I used patch-package to patch
payu-non-seam-less-react@2.4.0
for the project I'm working on.Here is the diff that solved my problem: