Commit Graph

71 Commits

Author SHA1 Message Date
Pascal Hartig
c7f6893cb4 Rename network plugin
Summary: Sonar -> Flipper. Class names only for now.

Reviewed By: priteshrnandgaonkar

Differential Revision: D9991029

fbshipit-source-id: b96dbab7acc89586c1ee67b64bef1c9490b560b5
2018-09-22 16:43:26 -07:00
Pascal Hartig
52fb0fc1b8 Rename LithoFlipperDescriptors
Summary:
As titled.
The controller you requested could not be found.

Reviewed By: priteshrnandgaonkar

Differential Revision: D9990862

fbshipit-source-id: 459420adf400fd4504035fc36b14c5595f431f6a
2018-09-22 09:38:43 -07:00
Pascal Hartig
bd27a624cd Rename LeakCanarySonarPlugin to LeakCanaryFlipperPlugin
Summary: As before.

Reviewed By: priteshrnandgaonkar

Differential Revision: D9990841

fbshipit-source-id: 4517d6949c3eb408b86b2b520d369134b006cf4f
2018-09-22 09:38:43 -07:00
Pascal Hartig
470ac6f6f7 AndroidSonarClient -> AndroidFlipperClient
Summary:
Per title.

The controller you requested could not be found.

Reviewed By: priteshrnandgaonkar

Differential Revision: D9966768

fbshipit-source-id: 224ff9d02d6a01a6f7ee28788ddd9167d15aafee
2018-09-21 17:37:12 -07:00
Pascal Hartig
8780cff8ca Rename SonarDiagnosticActivity to FlipperDiagnosticActivity
Summary: Per title.

Reviewed By: danielbuechele

Differential Revision: D9966619

fbshipit-source-id: 52934813903f1d48c1ee35938848320b54a50a0f
2018-09-21 11:45:28 -07:00
John Knox
9889df3f3c Rename SonarConnection to FlipperConnection
Summary: Part of Sonar -> Flipper rename

Reviewed By: passy

Differential Revision: D9907353

fbshipit-source-id: 01f7bb84da1c27fd68d608151f437a18b6eaaa4e
2018-09-20 17:06:54 -07:00
John Knox
df8763e697 Move xplat/sonar/xplat/Sonar* to Flipper*
Summary:
Part of the Sonar -> Flipper rename
Intentionally left externally visible buck target as Sonar for now to minimize diff size.

Reviewed By: passy

Differential Revision: D9871684

fbshipit-source-id: 6926eb62c578a05cd895745c75ed7da3cfe965b5
2018-09-20 15:39:57 -07:00
Pritesh Nandgaonkar
ba7b43a547 Rename SonarKitLayoutPlugin to FlipperKitLayoutPlugin
Summary: Renames SonarKitLayoutPlugin to FlipperKitLayoutPlugin

Reviewed By: passy

Differential Revision: D9949785

fbshipit-source-id: 8cfde4dfad3e34038d2f66f0ce4393db9d83ef60
2018-09-20 04:45:35 -07:00
Pascal Hartig
0e753e684f Rename skip_view_traversal setting
Summary: Sonar -> Flipper. 'nuff said.

Reviewed By: danielbuechele

Differential Revision: D9940670

fbshipit-source-id: ed9c8267c0c32952ac2069dc25bdb5359a438ce5
2018-09-19 13:09:57 -07:00
John Knox
9d9fa17134 Rename all The c++ JNI classes
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/272

Reviewed By: passy

Differential Revision: D9861432

Pulled By: jknoxville

fbshipit-source-id: 523b8fc28541b922bbcc0939514f4ddd0a3fc1b0
2018-09-18 07:27:28 -07:00
John Knox
a480be90a2 Rename facebook::sonar namespace
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/271

Reviewed By: passy

Differential Revision: D9861393

Pulled By: jknoxville

fbshipit-source-id: d65f751c35028748915023f33f273d6ec45863c8
2018-09-18 07:27:28 -07:00
Daniel Büchele
159ce69bc8 Docs
Summary: renaming flipper in docs

Reviewed By: passy

Differential Revision: D9871491

fbshipit-source-id: 7a7dcc8421229f3a253efc6a49202dad5c7315d0
2018-09-18 07:01:17 -07:00
Daniel Büchele
3bea3c88e6 flipper-plugin-*
Summary: rename plugin packages from `sonar-plugin-*` to `flipper-plugin-*`.

Reviewed By: passy

Differential Revision: D9851211

fbshipit-source-id: bdac568ede0a4a9308138a6c3d60728bb6195a72
2018-09-18 07:01:16 -07:00
Pritesh Nandgaonkar
bc3ccfce5d Flipper Release: v0.7.2
Summary: New Flipper Release

Reviewed By: passy

Differential Revision: D9850680

fbshipit-source-id: 50a8251fd2ddc2c6ca57f8a87ee1943f46f7559d
2018-09-17 05:57:32 -07:00
Pritesh Nandgaonkar
0ac03b74cc Flipper Release: v0.7.1
Summary: Flipper Release: v0.7.1

Reviewed By: jknoxville

Differential Revision: D9829332

fbshipit-source-id: fb8099a16d6bc3e68be7d0e69fdeb69281492ea6
2018-09-14 05:41:58 -07:00
John Knox
01dc8ed6fd Add troubleshooting page
Summary: Adds a bunch of steps to take if you're having trouble.

Reviewed By: danielbuechele

Differential Revision: D9811295

fbshipit-source-id: 6802108e98850ab11764081491a528eb939d2224
2018-09-14 05:01:51 -07:00
Pritesh Nandgaonkar
27cbf7f995 Flipper Release: v0.7.0
Summary: New release

Reviewed By: passy

Differential Revision: D9789625

fbshipit-source-id: 799206eafa0db54bdcb67de3854dba395326de7c
2018-09-12 09:13:35 -07:00
Pascal Hartig
38bcb75d9b Document Litho integration
Summary: Per title.

Reviewed By: danielbuechele

Differential Revision: D9769482

fbshipit-source-id: d8c0b1dc4c6f6ed5bd5709d7abf209ff51cb8854
2018-09-11 09:59:14 -07:00
Pascal Hartig
36975a5d8e Add getting-started section about snapshots
Summary:
Mention the snapshot releases we now publish and how
to use them.

Reviewed By: jknoxville

Differential Revision: D9654559

fbshipit-source-id: 0b4721a29f93d92a27cc1833bfc98b5642461d94
2018-09-05 08:13:31 -07:00
Pascal Hartig
9bb898c846 Add language indicator to code guards
Summary: Just to help out the markdown renderer.

Reviewed By: jknoxville

Differential Revision: D9654370

fbshipit-source-id: bde7afa290a735b77a093221b33a6ca8e12599fc
2018-09-05 08:13:31 -07:00
Daniel Büchele
f7606c8d59 rename ~/.sonar to ~/.flipper
Summary: renames config folder from sonar to flipper

Reviewed By: jknoxville

Differential Revision: D9541803

fbshipit-source-id: ef378c46fcbb14e76e99fb0743a99f24c536a434
2018-08-29 02:43:00 -07:00
Pascal Hartig
a75b3f22ea Android v0.6.18
Summary: New Android release to include Litho descriptors.

Reviewed By: priteshrnandgaonkar

Differential Revision: D9528706

fbshipit-source-id: 993ebc8377c1c50015553bd3459e13d4298100ec
2018-08-28 06:57:58 -07:00
Sara Valderrama
7852a3886b Accessibility Inspector open-sourcing move and documentation
Summary: Replaces AXElementsInpector with normal inspector implementation, removes gating from external builds. Adds documentation to https://fbflipper.com/docs/layout-plugin.html.

Reviewed By: passy

Differential Revision: D9438713

fbshipit-source-id: 18616c6cbab339bf474d116cac128e1d4a5fc2be
2018-08-22 14:57:44 -07:00
John Knox
d82fa3c2b5 Add SonarDiagnosticActivity to getting-started (#250)
Summary:
Sonar isn't yet opening this activity remotely, but it's worth getting users to add it early, so that when it does, it will work.
Pull Request resolved: https://github.com/facebook/flipper/pull/250

Reviewed By: passy

Differential Revision: D9455599

Pulled By: jknoxville

fbshipit-source-id: 252f7e7f89751b188665ece4ab9f815fd90fe500
2018-08-22 09:26:05 -07:00
John Knox
839a579a17 Remove MySonarPlugin from getting-started (#240)
Summary:
I think the getting-started page should be a no-nonsense quick set of steps to get you up and running so you can try out flipper.

With it referencing the non existent "MySonarPlugin", you can't just follow the steps for it to work. You'd have to either write a plugin which would take a while, or look at the sample apps on your own to see how to add a real plugin. I think it will be far more helpful just to give a working example.
Pull Request resolved: https://github.com/facebook/flipper/pull/240

Reviewed By: passy

Differential Revision: D9378196

Pulled By: jknoxville

fbshipit-source-id: 18ae4a39d09c7baa17adb7f7a71fd766e9bc8e51
2018-08-17 07:27:38 -07:00
Pascal Hartig
00847365ef Android v0.6.17
Summary: Published new android artifacts.

Reviewed By: danielbuechele

Differential Revision: D9295871

fbshipit-source-id: 7809d947622138192b3b931c6739570c11d050a8
2018-08-13 12:11:42 -07:00
John Knox
ed67ce527d Docs corrections in establishing-a-connection (#220)
Summary:
The title gets taken from the header, so is duplicated.
Pull Request resolved: https://github.com/facebook/flipper/pull/220

Reviewed By: passy

Differential Revision: D9244730

Pulled By: jknoxville

fbshipit-source-id: d4701cb4af6f551a35cfa02c9ff43aef495f1da0
2018-08-13 03:58:53 -07:00
Noah Gilmore
e3d243e23e Remove an extraneous comments from the iOS setup docs (#207)
Summary:
This comment was left there from the default cocoapods-generated Podfile, so it can now be removed.
Pull Request resolved: https://github.com/facebook/flipper/pull/207

Differential Revision: D9242957

Pulled By: passy

fbshipit-source-id: f3e6d0ebd61962410367bb0a0aa6209b31c4ef01
2018-08-09 10:56:51 -07:00
John Knox
9c0d426673 Add establishing a connection to website sidebar
Summary: Pull Request resolved: https://github.com/facebook/flipper/pull/218

Reviewed By: passy

Differential Revision: D9239480

Pulled By: jknoxville

fbshipit-source-id: 34b909a28af0c15d524926419ff47b8381163075
2018-08-09 07:27:50 -07:00
Pascal Hartig
b22f02510c Fix docs inconsistencies (#214)
Summary:
When referring to the project, we usually capitalize Flipper, but don't
do this super consistently. This fixes a few cases and some other
grammar issues.
Pull Request resolved: https://github.com/facebook/flipper/pull/214

Reviewed By: jknoxville

Differential Revision: D9219587

Pulled By: passy

fbshipit-source-id: 4c2a30730b8719ea4c058ad3c6cc262cbbdf6266
2018-08-08 13:43:17 -07:00
Pritesh Nandgaonkar
ae0b8f6b53 Release 0.6.16 for iOS
Summary: Releases a new iOS version 0.6.16. After landing this I will release 0.6.16 tag on github

Reviewed By: danielbuechele

Differential Revision: D9194965

fbshipit-source-id: 13d5e346d6d34a7bf7b6dfb568ca622d97660132
2018-08-07 08:28:55 -07:00
Pascal Hartig
565d9e964c Update Maven reference
Summary: We're now on JCenter with the new package name.

Reviewed By: danielbuechele

Differential Revision: D9195254

fbshipit-source-id: 948f1abe557746de349cd4138fa98658e43184d0
2018-08-07 06:57:04 -07:00
Daniel Büchele
134a0d96c5 renaming app to Flipper
Summary: rename all visible references of Sonar to Flipper. Changes endpoint URLs to the new repo address.

Reviewed By: passy

Differential Revision: D9082100

fbshipit-source-id: 2ab8b680a19c23d80050e8e768379c29d66acfca
2018-08-06 10:44:33 -07:00
Pritesh Nandgaonkar
3d66b1c9d0 Fix for iOS Cocoapods default config (#205)
Summary:
Solves #203

- [x] Sample Objc and Swift apps now have default configs(i.e non-recursive header search paths)
- [x] Fix for the cocoapods default config by adding FBMacros.h file in `Core` subspec
- [x] Updated the Spec(0.6.15) so that 0.6.15 works for default configs
- [x] Updated the doc
Pull Request resolved: https://github.com/facebook/flipper/pull/205

Reviewed By: passy

Differential Revision: D9148358

Pulled By: priteshrnandgaonkar

fbshipit-source-id: e6d32d9cde7b100573bd9a9996f0ec850b269d28
2018-08-03 07:12:47 -07:00
Benjamin Pankow
1008dbb283 Create open source LeakCanary plugin
Summary: Adds a new plugin to support [LeakCanary](https://github.com/square/leakcanary), displaying memory leaks as they are detected. Each leak shows a hierarchical path from the GC root to the leaked object, and allows inspection of these objects' fields.

Reviewed By: jknoxville

Differential Revision: D8865149

fbshipit-source-id: 99bcf216578b9d6660ead7d48b9bafe0d20a6c08
2018-08-02 10:27:11 -07:00
Pritesh Nandgaonkar
8db555b259 Replace sonar with flipper in docs
Summary: Replaces sonar with flipper in the docs of a website

Reviewed By: passy

Differential Revision: D9046564

fbshipit-source-id: 55d03d787489406571ea0b4ac0adbc0daaa95cd4
2018-07-31 14:02:58 -07:00
Pritesh Nandgaonkar
d931a563d1 Version bump to 0.6.14
Summary: Version bump 0.6.14

Reviewed By: passy

Differential Revision: D9081956

fbshipit-source-id: 165f051bb762b00080a3447ac336031bdae01d39
2018-07-31 09:56:15 -07:00
John Knox
4fd89f6402 Create establishing-a-connection.md (#188)
Summary:
Start documenting the connection establishment mechanism
Pull Request resolved: https://github.com/facebook/Sonar/pull/188

Reviewed By: passy

Differential Revision: D8997270

Pulled By: jknoxville

fbshipit-source-id: 28379f008ea833b826192800b890fc87bb755136
2018-07-26 05:47:42 -07:00
Pascal Hartig
6a7a580db3 Import "Fix some typos (it's vs its)" (#175)
Summary:
Original author: noahsark769

Closes https://github.com/facebook/Sonar/pull/175

Reviewed By: jknoxville

Differential Revision: D8989724

fbshipit-source-id: 8e1c09196b0c6c0d0fb0446a2a4a595d09f21652
2018-07-25 07:18:54 -07:00
Pascal Hartig
c7ccff117f v0.6.13
Summary: Already released, linked against new versions of SoLoader.

Reviewed By: priteshrnandgaonkar

Differential Revision: D8931240

fbshipit-source-id: b525f5596778341a016808d3c61a3f5a382e4c79
2018-07-20 08:20:50 -07:00
Noah Gilmore
8177675465 Initial support for using Sonar in Swift projects (#106)
Summary:
This PR adds support for using SonarKit clients in Swift apps. Fixes #13, fixes #87

1. Swift can't import Obj-C modules which have C++ headers. For this reason, we use SonarKit as an Obj-C++ wrapper around Sonar, which is written in C++. Due to search path misconfiguration, trying to import SonarKit into a Swift project would import `xplat/Sonar/SonarPlugin.h` instead of `iOS/SonarKit/SonarPlugin.h`, which caused `file not found` errors for C++ stdlib imports like #28 because new projects don't have their search paths set up correctly.
2. The network and layout plugins have C++ definitions (struct methods, classes) in some of their headers. This causes the compiler to get confused for Swift projects, because it only supports importing Objective-C files in umbrella headers, meaning that the `SonarKit` won't build.

1. I updated the `HEADER_SEARCH_PATHS` of SonarKit.podspec's build configuration to include `${PODS_ROOT}/Headers/Private/SonarKit/**` first, which alleviates the search path issue. The Obj-C `Sample` project seems to have worked around this by including a hardcoded `${PODS_ROOT}/SonarKit/**` search path in the pbxproj, which is why Sample works but new projects (like those referenced in #28) don't. I removed this since it's no longer necessary.
2. I added a `SampleSwift` app to demonstrate using Sonar with a Swift project.
3. Because the Podfiles for `Sample` and `SampleSwift` referenced podspecs using `:podspec` instead of a concrete version, Cocoapods wouldn't copy local header files (instead, it downloads them from the source). To enable local development of these sample apps using `:path`, I added a symlink to SonarKit.podspec in the root of the directory.
4. I changed SonarKit.podspec to use a tag-based `source`, since v0.0.1 pulls from the master branch of this repo.

The layout and network plugins still don't work with Swift - in order to fix this, we'll need to work on extracting the C++ out of their headers and writing Obj-C++ wrappers for them. I decided to push this off to a later PR since this one is quite large already.

This means that we need to be able to `import SonarKit` without importing all the network/layout plugin headers. In order to make this work, I made "SonarKit/Core" the spec's `default_subspecs`.

priteshrnandgaonkar, let me know if you have any thoughts on this implementation. You can verify that the SampleSwift app works by checking out this branch, `pod install`ing in the SampleSwift directory, and building it :)

![image](https://user-images.githubusercontent.com/1168853/41928625-ac195bd8-792a-11e8-82b8-65d6233a1fbb.png)
Pull Request resolved: https://github.com/facebook/Sonar/pull/106

Reviewed By: jknoxville

Differential Revision: D8890010

Pulled By: priteshrnandgaonkar

fbshipit-source-id: 449305bcc5cbeb5787c23f51b1ecb80a5cbdad32
2018-07-20 04:33:52 -07:00
Pritesh Nandgaonkar
322a79b394 Scripts for podspec updation and github tag release
Summary:
This diff adds the support to automate iOS releases. This diff adds two scripts, one for updating all the `podspecs`, and `podfiles` with updated version number. The script also updates the version used in sample and getting started doc file.
The second script publishes a github tag.

Following will be the process for iOS release:-

1. From `fbobjc/Libraries/SonarKit/Scripts` run `sh public-ios-podspec-update.sh`, it will update all the podspecs, podfiles and docs with updated version number. Commit it and land this
2. Once the above changes are landed and synced to github, run `sh push-new-github-tag.sh` from `fbobjc/Libraries/SonarKit/Scripts` to push the tag on github

As a follow up on this diff, ideally, we should trigger second script automatically when the 1st task changes are synced to github.

Reviewed By: jknoxville

Differential Revision: D8879958

fbshipit-source-id: 8f0dc9200e8f64578af33e1446629f09c16c43f2
2018-07-19 04:30:59 -07:00
Pascal Hartig
b28e96624d v0.6.12 (#160)
Summary:
Version bump for the Android release. Mostly for soloader upgrade.
Pull Request resolved: https://github.com/facebook/Sonar/pull/160

Reviewed By: priteshrnandgaonkar

Differential Revision: D8892812

Pulled By: passy

fbshipit-source-id: 1942366838625d4703b7623533e115ae19fda2ca
2018-07-18 09:04:30 -07:00
Chris Jenkins
3d0cd38f7a Grammar fix
Summary:
Noticed issues in https://fbsonar.com/docs/stetho.html - not sure if this will push there if accepted, but suggesting the changes in any case.

Created from Diffusion's 'Open in Editor' feature.

Reviewed By: jknoxville

Differential Revision: D8852241

fbshipit-source-id: 4a3e564e22ccb1edc43aa4cc335d3a8aeb916f3b
2018-07-16 10:26:10 -07:00
Pritesh Nandgaonkar
73c830fc1b Use tag in podspecs (#152)
Summary:
This diff uses `tag` instead of master branch and also updates the version number to the desktop sdk.
Pull Request resolved: https://github.com/facebook/Sonar/pull/152

Reviewed By: danielbuechele

Differential Revision: D8820016

Pulled By: priteshrnandgaonkar

fbshipit-source-id: ff2e554be55254b77c4e130b35b7299abbafa77d
2018-07-12 10:18:17 -07:00
John Knox
9a7017298c Add required permissions to android setup guide
Reviewed By: danielbuechele

Differential Revision: D8821115

fbshipit-source-id: 36949fc9ba5bdbd79d4e3e8349ef7daeebdaa074
2018-07-12 10:03:42 -07:00
Pascal Hartig
81e1b89b40 v0.6.11 (#150)
Summary:
Depends on #149.

Version bump for Android to bring it in line with the top-level version.
Pull Request resolved: https://github.com/facebook/Sonar/pull/150

Reviewed By: priteshrnandgaonkar

Differential Revision: D8804324

Pulled By: passy

fbshipit-source-id: 6c796f34cf064f117b6195b3c88d9b5c100f8dbb
2018-07-11 09:37:14 -07:00
Arvind Menon
dad05de943 Added docs for OkHttp integration (#144)
Summary:
This PR includes documentation for using the `SonarOkhttpInterceptor` for applications using the `OkHttp` network stack. The docs were modelled on the [Stetho docs](http://facebook.github.io/stetho/#enable-network-inspection)

Fixes #22.
Pull Request resolved: https://github.com/facebook/Sonar/pull/144

Differential Revision: D8780506

Pulled By: danielbuechele

fbshipit-source-id: fb2ddd4356b421c3baf0a80a410dd579ebc1bd8d
2018-07-10 03:32:16 -07:00
Hilal Alsibai
56cfe6600d Add Shared Preferences plugin docs
Summary: Moar docz

Reviewed By: danielbuechele

Differential Revision: D8752565

fbshipit-source-id: d7e4392e00dc06b0ffbebce491d5244b4b31a34d
2018-07-09 02:48:37 -07:00
Hilal Alsibai
3af57b1ad9 Fix minor typo in alt text for network plugin image
Summary: Typo

Reviewed By: danielbuechele

Differential Revision: D8751861

fbshipit-source-id: 26e89222a6e745dac4f114d62ad1fa6faebbecd6
2018-07-06 12:49:55 -07:00