• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Sonar-Facebook: Sonar 是一个用于调试 iOS 和 Android 移动应用的平台,通过一个简 ...

原作者: [db:作者] 来自: 网络 收藏 邀请

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 iOSand Android. Therefore, we provide a bunch of useful tools, including a logviewer, 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 mobileapps. Flipper takes care of sending data back and forth, calling functions, andlistening for events on the mobile app.

Contributing to Flipper

Both Flipper's desktop app, native mobile SDKs, JS SDKs are open-source and MITlicensed. 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 tosee 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 ourGetting Started guide to setup 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.gitcd flipper/desktopyarnyarn start

NOTE: If you're on Windows, you need to use Yarn 1.5.1 untilthis issue is resolved.

Building standalone application

Provide either --mac, --win, --linux or any combination of them toyarn 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/Samplerm -f Podfile.lockpod install --repo-updateopen Sample.xcworkspace<Run app from xcode>

You can omit --repo-update to speed up the installation, but watch out as youmay 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/ReactNativeFlipperExampleyarnyarn 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 runpod install --repo-update from thereact-native/ReactNativeFlipperExample/ios folder.

JS SDK + Sample React app

cd js/react-flipper-exampleyarnyarn start

Troubleshooting

Older yarn versions might show an error / hang with the message 'Waiting for theother yarn instance to finish'. If that happens, run the command yarn firstseparately in the directory react-native/react-native-flipper.

Documentation

Find the full documentation for this project atfbflipper.com.

Our documentation is built with Docusaurus. You canbuild it locally by running this:

cd websiteyarnyarn start

Contributing

See the CONTRIBUTING file for how to help out.

License

Flipper is MIT licensed, as found in the LICENSE file.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
simple: simple 是一个在线 debug 平台发布时间:2022-02-13
下一篇:
mockserver: 基于giiwa框架Mockserver模块,http://giiwa.org发布时间:2022-02-13
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap