Summary: Bumps [org.mockito:mockito-core](https://github.com/mockito/mockito) from 5.2.0 to 5.3.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/mockito/mockito/releases">org.mockito:mockito-core's releases</a>.</em></p> <blockquote> <h2>v5.3.1</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>5.3.1</h4> <ul> <li>2023-04-21 - <a href="https://github.com/mockito/mockito/compare/v5.3.0...v5.3.1">2 commit(s)</a> by Rafael Winterhalter, jfrantzius</li> <li>Fixes 2972: Weakens visibility constraint [(<a href="https://redirect.github.com/mockito/mockito/issues/2983">https://github.com/facebook/flipper/issues/2983</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2983">mockito/mockito#2983</a>)</li> <li>Bugfix 2974 fix npe [(<a href="https://redirect.github.com/mockito/mockito/issues/2976">https://github.com/facebook/flipper/issues/2976</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2976">mockito/mockito#2976</a>)</li> <li>Fix for <a href="https://redirect.github.com/mockito/mockito/issues/2958">https://github.com/facebook/flipper/issues/2958</a> eliminates CCE but leads to NPE [(<a href="https://redirect.github.com/mockito/mockito/issues/2974">https://github.com/facebook/flipper/issues/2974</a>)](<a href="https://redirect.github.com/mockito/mockito/issues/2974">mockito/mockito#2974</a>)</li> <li>Spying objects not working properly since 5.3.0 [(<a href="https://redirect.github.com/mockito/mockito/issues/2972">https://github.com/facebook/flipper/issues/2972</a>)](<a href="https://redirect.github.com/mockito/mockito/issues/2972">mockito/mockito#2972</a>)</li> </ul> <h2>v5.3.0</h2> <p><!-- raw HTML omitted --><!-- raw HTML omitted --><em>Changelog generated by <a href="https://github.com/shipkit/shipkit-changelog">Shipkit Changelog Gradle Plugin</a></em><!-- raw HTML omitted --><!-- raw HTML omitted --></p> <h4>5.3.0</h4> <ul> <li>2023-04-11 - <a href="https://github.com/mockito/mockito/compare/v5.2.0...v5.3.0">14 commit(s)</a> by Krzysztof Krasoń, Maciej Walkowiak, Rafael Winterhalter, Wesley Tsai, dependabot[bot], jfrantzius</li> <li>Bump com.diffplug.spotless from 6.17.0 to 6.18.0 [(<a href="https://redirect.github.com/mockito/mockito/issues/2967">https://github.com/facebook/flipper/issues/2967</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2967">mockito/mockito#2967</a>)</li> <li>Bump versions.bytebuddy from 1.14.3 to 1.14.4 [(<a href="https://redirect.github.com/mockito/mockito/issues/2966">https://github.com/facebook/flipper/issues/2966</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2966">mockito/mockito#2966</a>)</li> <li>Adds <code>withoutAnnotations</code> parameter to <code>Mock</code> [(<a href="https://redirect.github.com/mockito/mockito/issues/2965">https://github.com/facebook/flipper/issues/2965</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2965">mockito/mockito#2965</a>)</li> <li>Fix ClassCastException [(<a href="https://redirect.github.com/mockito/mockito/issues/2962">https://github.com/facebook/flipper/issues/2962</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2962">mockito/mockito#2962</a>)</li> <li>Bump org.codehaus.groovy:groovy from 3.0.16 to 3.0.17 [(<a href="https://redirect.github.com/mockito/mockito/issues/2959">https://github.com/facebook/flipper/issues/2959</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2959">mockito/mockito#2959</a>)</li> <li>ClassCastException when combining InjectMocks with generified Mock field [(<a href="https://redirect.github.com/mockito/mockito/issues/2958">https://github.com/facebook/flipper/issues/2958</a>)](<a href="https://redirect.github.com/mockito/mockito/issues/2958">mockito/mockito#2958</a>)</li> <li>Bump versions.bytebuddy from 1.14.2 to 1.14.3 [(<a href="https://redirect.github.com/mockito/mockito/issues/2950">#2950</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2950">mockito/mockito#2950</a>)</li> <li>Add <code>ArgumentMatchers#assertArg</code> method. [(<a href="https://redirect.github.com/mockito/mockito/issues/2949">https://github.com/facebook/flipper/issues/2949</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2949">mockito/mockito#2949</a>)</li> <li>Fixes 2947: correct visibility check to respect nestmates [(<a href="https://redirect.github.com/mockito/mockito/issues/2948">https://github.com/facebook/flipper/issues/2948</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2948">mockito/mockito#2948</a>)</li> <li>spy does not initialize objects fully with InstrumentationMemberAccessor [(<a href="https://redirect.github.com/mockito/mockito/issues/2947">https://github.com/facebook/flipper/issues/2947</a>)](<a href="https://redirect.github.com/mockito/mockito/issues/2947">mockito/mockito#2947</a>)</li> <li>Fixes <a href="https://redirect.github.com/mockito/mockito/issues/2877">https://github.com/facebook/flipper/issues/2877</a>: removed mockito-inline as subproject and actual subproject [(<a href="https://redirect.github.com/mockito/mockito/issues/2945">https://github.com/facebook/flipper/issues/2945</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2945">mockito/mockito#2945</a>)</li> <li><a href="https://redirect.github.com/mockito/mockito/issues/2934">https://github.com/facebook/flipper/issues/2934</a> throw exception on multiple matches by type if cannot be reduce… [(<a href="https://redirect.github.com/mockito/mockito/issues/2942">https://github.com/facebook/flipper/issues/2942</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2942">mockito/mockito#2942</a>)</li> <li>Bump org.eclipse.platform:org.eclipse.osgi from 3.18.200 to 3.18.300 [(<a href="https://redirect.github.com/mockito/mockito/issues/2941">https://github.com/facebook/flipper/issues/2941</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2941">mockito/mockito#2941</a>)</li> <li>Bump com.diffplug.spotless from 6.16.0 to 6.17.0 [(<a href="https://redirect.github.com/mockito/mockito/issues/2940">https://github.com/facebook/flipper/issues/2940</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2940">mockito/mockito#2940</a>)</li> <li>Bump org.codehaus.groovy:groovy from 3.0.15 to 3.0.16 [(<a href="https://redirect.github.com/mockito/mockito/issues/2939">https://github.com/facebook/flipper/issues/2939</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2939">mockito/mockito#2939</a>)</li> <li>Bump versions.bytebuddy from 1.14.1 to 1.14.2 [(<a href="https://redirect.github.com/mockito/mockito/issues/2938">https://github.com/facebook/flipper/issues/2938</a>)](<a href="https://redirect.github.com/mockito/mockito/pull/2938">mockito/mockito#2938</a>)</li> <li>Feature suggestion: TerminalMockCandidateFilter should report error when more than one candidate left [(<a href="https://redirect.github.com/mockito/mockito/issues/2934">https://github.com/facebook/flipper/issues/2934</a>)](<a href="https://redirect.github.com/mockito/mockito/issues/2934">mockito/mockito#2934</a>)</li> <li>Mockito-inline dependency after upgrade 5.0.0 [(<a href="https://redirect.github.com/mockito/mockito/issues/2877">https://github.com/facebook/flipper/issues/2877</a>)](<a href="https://redirect.github.com/mockito/mockito/issues/2877">mockito/mockito#2877</a>)</li> <li>Assertions on parameters during verification [(<a href="https://redirect.github.com/mockito/mockito/issues/2285">https://github.com/facebook/flipper/issues/2285</a>)](<a href="https://redirect.github.com/mockito/mockito/issues/2285">mockito/mockito#2285</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="baf59c48ea"><code>baf59c4</code></a> Weakens visibility constraint for spy constructors (<a href="https://redirect.github.com/mockito/mockito/issues/2983">https://github.com/facebook/flipper/issues/2983</a>)</li> <li><a href="02b9634b74"><code>02b9634</code></a> Fix NPE for handling <code>Object</code> (<a href="https://redirect.github.com/mockito/mockito/issues/2976">https://github.com/facebook/flipper/issues/2976</a>)</li> <li><a href="6ffd23e1bf"><code>6ffd23e</code></a> Add <code>ArgumentMatchers#assertArg</code> method (<a href="https://redirect.github.com/mockito/mockito/issues/2949">https://github.com/facebook/flipper/issues/2949</a>)</li> <li><a href="203132db49"><code>203132d</code></a> Add <code>withoutAnnotations</code> parameter to <code>Mock</code> (<a href="https://redirect.github.com/mockito/mockito/issues/2965">https://github.com/facebook/flipper/issues/2965</a>)</li> <li><a href="84a5eee1ce"><code>84a5eee</code></a> Fix ClassCastException regression with parameterized types with InjectMocks (...</li> <li><a href="d65bba7e6a"><code>d65bba7</code></a> Bump versions.bytebuddy from 1.14.3 to 1.14.4 (<a href="https://redirect.github.com/mockito/mockito/issues/2966">https://github.com/facebook/flipper/issues/2966</a>)</li> <li><a href="600eaa06f4"><code>600eaa0</code></a> Bump com.diffplug.spotless from 6.17.0 to 6.18.0 (<a href="https://redirect.github.com/mockito/mockito/issues/2967">https://github.com/facebook/flipper/issues/2967</a>)</li> <li><a href="f9fbf50bd6"><code>f9fbf50</code></a> Bump org.codehaus.groovy:groovy from 3.0.16 to 3.0.17 (<a href="https://redirect.github.com/mockito/mockito/issues/2959">https://github.com/facebook/flipper/issues/2959</a>)</li> <li><a href="0b8685c37b"><code>0b8685c</code></a> Bump versions.bytebuddy from 1.14.2 to 1.14.3 (<a href="https://redirect.github.com/mockito/mockito/issues/2950">#2950</a>)</li> <li><a href="5486617f7a"><code>5486617</code></a> Correct visibility check to respect nestmates (<a href="https://redirect.github.com/mockito/mockito/issues/2948">https://github.com/facebook/flipper/issues/2948</a>)</li> <li>Additional commits viewable in <a href="https://github.com/mockito/mockito/compare/v5.2.0...v5.3.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `dependabot rebase` will rebase this PR - `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `dependabot merge` will merge this PR after your CI passes on it - `dependabot squash and merge` will squash and merge this PR after your CI passes on it - `dependabot cancel merge` will cancel a previously requested merge and block automerging - `dependabot reopen` will reopen this PR if it is closed - `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Pull Request resolved: https://github.com/facebook/flipper/pull/4685 Reviewed By: lblasa Differential Revision: D45350822 Pulled By: passy fbshipit-source-id: 964ade81d6f6bf6d01233428705ec8a24bc9101d
Flipper
Flipper (formerly Sonar) is a platform for debugging mobile apps on iOS and Android and JS apps in your browser or in Node.js. Visualize, inspect, and control your apps from a simple desktop interface. Use Flipper as is or extend it using the plugin API.
Table of Contents
Mobile development
Flipper aims to be your number one companion for mobile app development on iOS and Android. Therefore, we provide a bunch of useful tools, including a log viewer, interactive layout inspector, and network inspector.
Extending Flipper
Flipper is built as a platform. In addition to using the tools already included, you can create your own plugins to visualize and debug data from your mobile apps. Flipper takes care of sending data back and forth, calling functions, and listening for events on the mobile app.
Contributing to Flipper
Both Flipper's desktop app, native mobile SDKs, JS SDKs are open-source and MIT licensed. This enables you to see and understand how we are building plugins, and of course, join the community and help to improve Flipper. We are excited to see what you will build on this platform.
In this repo
This repository includes all parts of Flipper. This includes:
- Flipper's desktop app built using Electron
(
/desktop) - native Flipper SDKs for iOS (
/iOS) - native Flipper SDKs for Android (
/android) - React Native Flipper SDK (
/react-native) - JS Flipper SDK (
/js) - Plugins:
- Logs (
/desktop/plugins/public/logs) - Layout inspector (
/desktop/plugins/public/layout) - Network inspector (
/desktop/plugins/public/network) - Shared Preferences/NSUserDefaults inspector
(
/desktop/plugins/public/shared_preferences)
- Logs (
- website and documentation (
/website//docs)
Getting started
Please refer to our
Getting Started guide to set up
Flipper. Or, (still experimental) run npx flipper-server for a browser based
version of Flipper.
Requirements
- node >= 8
- yarn >= 1.5
- iOS developer tools (for developing iOS plugins)
- Android SDK and adb
Building from Source
Desktop
Running from source
git clone https://github.com/facebook/flipper.git
cd flipper/desktop
yarn
yarn start
NOTE: If you're on Windows, you need to use Yarn 1.5.1 until this issue is resolved.
Building standalone application
Provide either --mac, --win, --linux or any combination of them to
yarn build to build a release zip file for the given platform(s). E.g.
yarn build --mac --version $buildNumber
You can find the resulting artifact in the dist/ folder.
iOS SDK + Sample App
cd iOS/Sample
rm -f Podfile.lock
pod install --repo-update
open Sample.xcworkspace
<Run app from xcode>
You can omit --repo-update to speed up the installation, but watch out as you
may be building against outdated dependencies.
Android SDK + Sample app
Start up an android emulator and run the following in the project root:
./gradlew :sample:installDebug
React Native SDK + Sample app
Requires RN 0.69+!
cd react-native/ReactNativeFlipperExample
yarn
yarn android
Note that the first 2 steps need to be done only once.
Alternatively, the app can be started on iOS by running yarn ios.
If this is the first time running, you will also need to run
pod install --repo-update from the
react-native/ReactNativeFlipperExample/ios folder.
React Native Windows (Experimental)
An experimental version of Flipper for React Native Windows is available. The following steps prepare the React Native Flipper project:
cd react-native/react-native-flipper
vcpkg install openssl:x64-uwp openssl:arm-uwp
vcpkg integrate install
yarn install
cd windows
nuget install ReactNativeFlipper/packages.config
In a nutshell, vcpkg is used to install OpenSSL. Nuget is used to install Boost.
Then, the sample application can be built and run as follows:
cd ../../ReactNativeFlipperExample
yarn install
yarn relative-deps
npx react-native run-windows
At the moment there's no available package for React Native Flipper. This means that to integrate Flipper with any other existing applications, an explicit reference to the project needs to be added just as is done with the sample application.
JS SDK + Sample React app
cd js/react-flipper-example
yarn
yarn start
Troubleshooting
Older yarn versions might show an error / hang with the message 'Waiting for the
other yarn instance to finish'. If that happens, run the command yarn first
separately in the directory react-native/react-native-flipper.
Documentation
Find the full documentation for this project at fbflipper.com.
Our documentation is built with Docusaurus. You can build it locally by running this:
cd website
yarn
yarn start
Contributing
See the CONTRIBUTING file for how to help out.
License
Flipper is MIT licensed, as found in the LICENSE file.
