From f03137912980928b4cf45b19ffc1d09a34e1c9bd Mon Sep 17 00:00:00 2001 From: Matt Chowning Date: Mon, 20 Jan 2020 08:02:46 -0500 Subject: [PATCH] Hardcode Android RN version in react-native-gutenberg-bridge and react-native-aztec This is a temporary fix to get the Jitpack builds back to green while I work on a solution that doesn't use hardcoded values. --- react-native-aztec/android/build.gradle | 5 ++++- react-native-gutenberg-bridge/android/build.gradle | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/react-native-aztec/android/build.gradle b/react-native-aztec/android/build.gradle index 0eb930e11996e..2fb741dd82b7b 100644 --- a/react-native-aztec/android/build.gradle +++ b/react-native-aztec/android/build.gradle @@ -112,7 +112,10 @@ dependencies { if (rootProject.ext.buildGutenbergFromSource) { implementation "com.facebook.react:react-native:+" // From node_modules. } else { - def rnVersion = readReactNativeVersion('../package.json', 'peerDependencies') + + // FIXME Temporary fix to get Jitpack builds to green while I work on a solution without hardcoded values. + //def rnVersion = readReactNativeVersion('../package.json', 'peerDependencies') + def rnVersion = '0.60.0-patched' implementation "com.facebook.react:react-native:${rnVersion}" // From Maven repo } } diff --git a/react-native-gutenberg-bridge/android/build.gradle b/react-native-gutenberg-bridge/android/build.gradle index a832e936fe1ec..f8b57dfad0e8a 100644 --- a/react-native-gutenberg-bridge/android/build.gradle +++ b/react-native-gutenberg-bridge/android/build.gradle @@ -139,7 +139,9 @@ dependencies { implementation (waitJitpack('com.github.wordpress-mobile', 'react-native-video', readHashedVersion('../../package.json', 'react-native-video', 'dependencies'))) implementation (waitJitpack('com.github.wordpress-mobile', 'react-native-slider', readHashedVersion('../../package.json', '@react-native-community/slider', 'dependencies'))) - def rnVersion = readReactNativeVersion('../package.json', 'peerDependencies') + // FIXME Temporary fix to get Jitpack builds to green while I work on a solution without hardcoded values. + //def rnVersion = readReactNativeVersion('../package.json', 'peerDependencies') + def rnVersion = '0.60.0-patched' implementation "com.facebook.react:react-native:${rnVersion}" } }