From 939df8a01da09fd18baa4e66e2babd438db0ea8d Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Wed, 29 Jan 2020 06:27:41 -0800 Subject: [PATCH] Upgrade Flipper version (#27837) Summary: Depends on https://github.com/facebook/react-native/issues/27833. Updates the Flipper version to the most recent release. ## Changelog [Android] [Changed] - Upgrade Flipper version in default template Pull Request resolved: https://github.com/facebook/react-native/pull/27837 Test Plan: This is a bit annoying, but I can't test this against the 0.62-rc.0 version. I tried patching it by running `react-native init --version 0.62.0-rc.0 testproj`, which would fail because of a missing androidx dep. After adding `implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.0.0'` to the deps, that was fixed but now after updating, `libfbjni.so` is missing because my PR https://github.com/facebook/react-native/issues/27729 isn't part of the RN dependency yet. Given that this mirrors the RNTester app, I'm pretty confident that the change here is otherwise correct and will work on top of master with the most recent template changes. Differential Revision: D19619365 Pulled By: passy fbshipit-source-id: 5723bd105ab3ab86b7f00e1a26e29e1e9dc58290 --- template/android/app/build.gradle | 12 +++++++++--- template/android/gradle.properties | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/template/android/app/build.gradle b/template/android/app/build.gradle index 03fcdf3196c..c3799278155 100644 --- a/template/android/app/build.gradle +++ b/template/android/app/build.gradle @@ -193,9 +193,15 @@ dependencies { implementation "com.facebook.react:react-native:+" // From node_modules debugImplementation("com.facebook.flipper:flipper:${FLIPPER_VERSION}") { - exclude group:'com.facebook.yoga' - exclude group:'com.facebook.flipper', module: 'fbjni' - exclude group:'com.facebook.litho', module: 'litho-annotations' + exclude group:'com.facebook.fbjni' + } + + debugImplementation("com.facebook.flipper:flipper-network-plugin:${FLIPPER_VERSION}") { + exclude group:'com.facebook.flipper' + } + + debugImplementation("com.facebook.flipper:flipper-fresco-plugin:${FLIPPER_VERSION}") { + exclude group:'com.facebook.flipper' } if (enableHermes) { diff --git a/template/android/gradle.properties b/template/android/gradle.properties index 1ac72128ef5..06a2e7b32d1 100644 --- a/template/android/gradle.properties +++ b/template/android/gradle.properties @@ -25,4 +25,4 @@ android.useAndroidX=true android.enableJetifier=true # Version of flipper SDK to use with React Native -FLIPPER_VERSION=0.23.4 +FLIPPER_VERSION=0.30.2