dependabot[bot] 71503308f0 Bump robolectric from 4.5.1 to 4.8 (#3679)
Summary:
Bumps [robolectric](https://github.com/robolectric/robolectric) from 4.5.1 to 4.8.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/robolectric/robolectric/releases">robolectric's releases</a>.</em></p>
<blockquote>
<p>Robolectric 4.8 adds support for Android S V2 (API level 32). It also contains many bug fixes and API enhancements.</p>
<h2>What's Changed</h2>
<ul>
<li>Turn off Gradle's fs watching during tests by <a href="https://github.com/hoisie"><code>@​hoisie</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6849">robolectric/robolectric#6849</a></li>
<li>Remove unused resources.arsc file by <a href="https://github.com/hoisie"><code>@​hoisie</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6855">robolectric/robolectric#6855</a></li>
<li>Fix name for macOS tasks to rename and upload binary files by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6856">robolectric/robolectric#6856</a></li>
<li>Shadow Build.VERSION#MEDIA_PERFORMANCE_CLASS in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6836">robolectric/robolectric#6836</a></li>
<li>Support overriding Icon loading executor from Icon#loadDrawableAsync. in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6828">robolectric/robolectric#6828</a></li>
<li>Update Android code search link to the public version in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6850">robolectric/robolectric#6850</a></li>
<li>Remove unnecessary TimePickerDialog constructor shadow in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6838">robolectric/robolectric#6838</a></li>
<li>Remove inaccessible Google issue tracker links in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6854">robolectric/robolectric#6854</a></li>
<li>Use Activity's member Instrumentation in ActivityController in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6860">robolectric/robolectric#6860</a></li>
<li>Fix UnsupportedOperationException if a leaked Activity.recreate is called in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6862">robolectric/robolectric#6862</a></li>
<li>Add ActivityController.close that transitions Activity to destroyed state in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6864">robolectric/robolectric#6864</a></li>
<li>Fix SDK version check for onPageFinished() call. It should be available for all SDK versions instead. See <a href="https://developer.android.com/reference/android/webkit/WebViewClient#onPageFinished(android.webkit.WebView,%20java.lang.String)">https://developer.android.com/reference/android/webkit/WebViewClient#onPageFinished(android.webkit.WebView,%20java.lang.String)</a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6865">robolectric/robolectric#6865</a></li>
<li>Limit instrumentation on interfaces in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6866">robolectric/robolectric#6866</a></li>
<li>Bump to version 3 of preinstrumented jars by <a href="https://github.com/hoisie"><code>@​hoisie</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6867">robolectric/robolectric#6867</a></li>
<li>Migrate ShadowAccessibilityNodeInfo to reflector in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6868">robolectric/robolectric#6868</a></li>
<li>Add perf stat for applying styles in binary resources in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6869">robolectric/robolectric#6869</a></li>
<li>Refine methods: getYear(), getMonthOfYear(), getDayOfMonth() and getOnDateSetListenerCallback(). in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6841">robolectric/robolectric#6841</a></li>
<li>Add onConnectionEvent() to ShadowInCallService. in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6870">robolectric/robolectric#6870</a></li>
<li>Fix theme native object collection in Android S in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6873">robolectric/robolectric#6873</a></li>
<li>Use a self-hosted Mac M1 runner for the build_nativeruntime task by <a href="https://github.com/hoisie"><code>@​hoisie</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6871">robolectric/robolectric#6871</a></li>
<li>Use 'processResources' task instead of 'jar' task for nativeruntime by <a href="https://github.com/hoisie"><code>@​hoisie</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6874">robolectric/robolectric#6874</a></li>
<li>Remove unused Exception from test methods for dependency-on-stubs by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6876">robolectric/robolectric#6876</a></li>
<li>Add solution log for unhandled PNG file by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6829">robolectric/robolectric#6829</a></li>
<li>Remove instrumentedPackages workaround by <a href="https://github.com/hoisie"><code>@​hoisie</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6875">robolectric/robolectric#6875</a></li>
<li>Remove unused org.robolectric.annotation.Config imports by <a href="https://github.com/hoisie"><code>@​hoisie</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6879">robolectric/robolectric#6879</a></li>
<li>Only using AttributionSource for compile sdk 31 and above by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6884">robolectric/robolectric#6884</a></li>
<li>Clear InputMethodManager.sInstance for SDK &gt; P in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6880">robolectric/robolectric#6880</a></li>
<li>Adding VcnManagementService to ShadowSystemServices for VCN-related tests. in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6881">robolectric/robolectric#6881</a></li>
<li>Check Window flags when selecting root view in LocalUiController. <a href="https://github-redirect.dependabot.com/robolectric/robolectric/issues/6741">#6741</a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6745">robolectric/robolectric#6745</a></li>
<li>Cleanup of AndroidManifest Activity references. in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6878">robolectric/robolectric#6878</a></li>
<li>Fix broken GitHub CI when running tests by <a href="https://github.com/hoisie"><code>@​hoisie</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6893">robolectric/robolectric#6893</a></li>
<li>Fix some lint errors in Target29CompatibilityTest by <a href="https://github.com/hoisie"><code>@​hoisie</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6891">robolectric/robolectric#6891</a></li>
<li>Avoid re-running ICU ./configure if Makefile exists by <a href="https://github.com/hoisie"><code>@​hoisie</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6889">robolectric/robolectric#6889</a></li>
<li>Remove redundant SKIP_ICU_BUILD environment variable by <a href="https://github.com/hoisie"><code>@​hoisie</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6890">robolectric/robolectric#6890</a></li>
<li>Remove unnecessary DatePickerDialog constructor shadow in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6897">robolectric/robolectric#6897</a></li>
<li>Add matrix computation support to ShadowRenderNode implementations in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6775">robolectric/robolectric#6775</a></li>
<li>Add support for building Robolectric's nativeruntime with gcc/g++ in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6900">robolectric/robolectric#6900</a></li>
<li>Switch to Ninja for building the native runtime in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6904">robolectric/robolectric#6904</a></li>
<li>Close android.database.Cursor objects in tests in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6905">robolectric/robolectric#6905</a></li>
<li>Fix remaining CloseGuard warnings in Robolectric tests in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6906">robolectric/robolectric#6906</a></li>
<li>
<ol>
<li>Adds <code>ShadowVibrator#addSupportedPrimitives</code> to enable in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6907">robolectric/robolectric#6907</a></li>
</ol>
</li>
<li>Use real Android code for ContentProviderClient.release in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6908">robolectric/robolectric#6908</a></li>
<li>Update platformStrError to work in Windows in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6910">robolectric/robolectric#6910</a></li>
<li>Add setIsUniqueDeviceAttestationSupported and isUniqueDeviceAttestationSupported support to ShadowDevicePolicyManager in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6909">robolectric/robolectric#6909</a></li>
<li>Add custom JNI_INCLUDE_DIRS for Windows only by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6914">robolectric/robolectric#6914</a></li>
<li>Use runner.arch when calculating ICU cache keys by <a href="https://github.com/hoisie"><code>@​hoisie</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6894">robolectric/robolectric#6894</a></li>
<li>Add test ShadowPackageManagerTest#packageInstallerAndGetPackageInfo by <a href="https://github.com/utzcoz"><code>@​utzcoz</code></a> in <a href="https://github-redirect.dependabot.com/robolectric/robolectric/pull/6898">robolectric/robolectric#6898</a></li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="fd36481e8a"><code>fd36481</code></a> Bump version to 4.8.</li>
<li><a href="c27e767826"><code>c27e767</code></a> Merge branch 'google' into 'master'</li>
<li><a href="18b8fc2b15"><code>18b8fc2</code></a> Fixes <a href="https://github-redirect.dependabot.com/robolectric/robolectric/issues/7266">#7266</a> touch event disallow propagation.</li>
<li><a href="3a000a62bc"><code>3a000a6</code></a> Implement methods: ShadowBluetoothA2dp#getDynamicBufferSupport</li>
<li><a href="20bbb6998e"><code>20bbb69</code></a> Make ShadowPendingIntent implement is___ methods of PendingIntent</li>
<li><a href="fec23a57fc"><code>fec23a5</code></a> Fix a race condition causing a thread leak in BackdropFrameRenderer</li>
<li><a href="859eec94c6"><code>859eec9</code></a> Implement a shadow for Context.bindService(Intent, int, Executor, ServiceConn...</li>
<li><a href="569058402a"><code>5690584</code></a> No critical exposure</li>
<li><a href="905a8adb92"><code>905a8ad</code></a> ShadowBitmap#asShared should return an immutable Bitmap instance</li>
<li><a href="4f04e894f7"><code>4f04e89</code></a> Suppress a benign error log.</li>
<li>Additional commits viewable in <a href="https://github.com/robolectric/robolectric/compare/robolectric-4.5.1...robolectric-4.8">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.robolectric:robolectric&package-manager=gradle&previous-version=4.5.1&new-version=4.8)](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/3679

Reviewed By: lblasa

Differential Revision: D36127817

Pulled By: passy

fbshipit-source-id: 08f872239d4e11da78a7fd57d1e1c6832bc1f16a
2022-05-04 04:55:29 -07:00
2022-02-25 02:02:24 -08:00
2022-05-04 04:03:19 -07:00
2022-05-03 09:02:00 -07:00
2022-05-04 04:36:52 -07:00
2022-04-27 08:38:20 -07:00
2020-07-08 07:10:46 -07:00
2020-11-09 08:24:28 -08:00
2020-03-26 05:53:53 -07:00
2021-06-29 13:02:05 -07:00
2019-09-30 06:41:57 -07:00
2018-06-01 11:03:58 +01:00
2020-04-14 09:21:58 -07:00
2018-07-31 08:15:12 -07:00
2019-08-29 23:21:14 -07:00
2020-11-09 08:24:28 -08:00
2022-02-16 08:22:09 -08:00
2022-02-16 08:22:09 -08:00
2022-01-04 09:06:15 -08:00
2022-02-25 02:33:22 -08:00
2020-08-10 08:47:32 -07:00

logo

Flipper

Android Maven Badge iOS

Flipper (formerly Sonar) is a platform for debugging mobile apps on iOS and Android and, recently, even 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.

Flipper

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)
  • 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

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.

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.

Description
No description provided
Readme 106 MiB
Languages
TypeScript 61.2%
Java 9.9%
Objective-C 7%
Kotlin 5.8%
C++ 4.8%
Other 11.2%