Commit Graph

579 Commits

Author SHA1 Message Date
Hilal Alsibai
b40810080c Add support for multiple shared preference files
Summary: Adds the ability to view multiple shared preference files in Flipper

Reviewed By: danielbuechele

Differential Revision: D10181908

fbshipit-source-id: 723b71d7bd87c51c0fabc77204b5a26a2b7aa782
2018-10-06 11:41:34 -07:00
Alex Langenfeld
630982190b remove OculusDevice
Summary: Pretty sure this was meant to get removed before open sourcing, it isn't referenced anywhere.

Reviewed By: danielbuechele

Differential Revision: D10202081

fbshipit-source-id: 23d213b3a041acad85eb723d32b65f7da276003d
2018-10-06 11:18:18 -07:00
John Knox
4d50a5209c Skip failing test until oneworld is shipped
Summary:
The buck install command fails when xcode_dmg is used in sandcastle hosts, meaning xcode is mounted somewhere other than /Applications.
Skip the connection test for now. I'll get oneworld working with it instead.

Reviewed By: passy

Differential Revision: D10231097

fbshipit-source-id: 16e320070f8b3fd4f56ff919bdd3ec47355e342c
2018-10-06 06:12:51 -07:00
Pascal Hartig
6c3a6c0d66 Upgrade to Circle 2.1 (#289)
Summary:
Use CircleCI 2.1 for common executors and remove the common build step
as this is already done by Travis. Instead, focus on publishing either
snapshots or releases.
Pull Request resolved: https://github.com/facebook/flipper/pull/289

Reviewed By: jknoxville

Differential Revision: D10216413

Pulled By: passy

fbshipit-source-id: cfbc52c43187339ae6cb1c486d81e7c40216e86b
2018-10-05 07:59:19 -07:00
Jérémie Marguerie
145b94b47d Do not crash if there is no disk, just return nil instance
Summary: This should not affect prod as flipper (also called sonar) should only be an internal debug product but i needed to fix it to start the app.

Reviewed By: jknoxville

Differential Revision: D10156590

fbshipit-source-id: 84a76e5cbe2f4bbe89627895efcfb7e6cdadae13
2018-10-04 14:14:09 -07:00
Charles Dick
44fea6b9bc update metro to 0.47.1 to fix sourcemaps in plugins
Summary: Inline sourcemaps were broken in Metro until 0.47.1, so now we can debug flipper plugins again!

Reviewed By: passy

Differential Revision: D10200221

fbshipit-source-id: 919c1bc4f7aee720f25f2375ffbd8a786ebd0017
2018-10-04 12:13:46 -07:00
Pascal Hartig
d69fb9e6a1 Separate snapshot publish logic (#288)
Summary:
Snapshots should only ever be published off of master.
Pull Request resolved: https://github.com/facebook/flipper/pull/288

Reviewed By: danielbuechele

Differential Revision: D10161974

Pulled By: passy

fbshipit-source-id: dca8463ff80de9d407758405c24e6511bef534d1
2018-10-04 03:42:26 -07:00
Pascal Hartig
f39183b524 Skip yarn test for now (#287)
Summary:
This isn't working on Travis yet and will skip the subsequent steps
which do provide value if run right now.
Pull Request resolved: https://github.com/facebook/flipper/pull/287

Reviewed By: jknoxville

Differential Revision: D10161725

Pulled By: passy

fbshipit-source-id: 3502230e842c9451e8f33309b500a720cdaa5514
2018-10-04 02:17:08 -07:00
Hilal Alsibai
490f5e7f5a Fix Select onChange prop
Summary: Was passing in a Proxy instance before instead of a string. Now it passes the correct string that callers would expect.

Reviewed By: sjkirby

Differential Revision: D10181911

fbshipit-source-id: 8dfa677479a81de0f7b5be23f827ce7b52169931
2018-10-03 17:21:42 -07:00
Alex Langenfeld
a54b542d17 use portable SysStat.h
Summary: for Windows

Reviewed By: passy

Differential Revision: D9886244

fbshipit-source-id: d82b4a76efd1c200096bb6d3573b527ba058bf0b
2018-10-03 14:29:59 -07:00
Pascal Hartig
0a8eef466b Remove rename warning (#285)
Summary:
We're in a pretty good state now. Let's get rid of the big warning.
Pull Request resolved: https://github.com/facebook/flipper/pull/285

Reviewed By: jknoxville

Differential Revision: D10161261

Pulled By: passy

fbshipit-source-id: ef1fc03c289a0472916c67bf34c2f9e394c3fef2
2018-10-03 05:27:33 -07:00
Pascal Hartig
84384e523f Rename remaining tests
Summary: Something here must have conflicted upon landing. Redoing this again.

Reviewed By: danielbuechele

Differential Revision: D10145804

fbshipit-source-id: 1176167c7e3880055ff5e7b3d7f5723416f6131f
2018-10-03 03:44:20 -07:00
Pascal Hartig
8456a13ee6 Fix unit test setup
Summary:
There were still some tests with the internal test runner which
would fail in open source and with Gradle.

Reviewed By: priteshrnandgaonkar

Differential Revision: D10145759

fbshipit-source-id: 99915548441e426b88b1fa6ace1e852775e2a770
2018-10-02 09:29:37 -07:00
Pascal Hartig
b6445bb961 Update sonar reference in docs
Summary: Per title.

Reviewed By: danielbuechele

Differential Revision: D10114928

fbshipit-source-id: 80515b6df06939df3076fd75974cd9a044bce58b
2018-10-02 07:12:50 -07:00
John Knox
eebff1eb88 Run wilde on iOS emulator during electron tests
Summary:
Before running the test suite, build wilde and run it on a local emulator.

This takes about 15 mins on a lego-mac with a warm cache.
It's probably worth splitting out the normal unit tests into a separate job, so we get quicker feedback on them. I'll do that in a separate diff.

Lets run this for a while, and see how it goes, I'm wondering if it might get flaky because it will be building the master version of wilde, so potentially could be broken a lot, though it's passed evry time I've tried it so far.

If it's reliable, we can run the same thing with loads of other apps in parallel.

Reviewed By: passy

Differential Revision: D10110408

fbshipit-source-id: 61c549eb1b9d04729dcb5ed01271a484af4777f5
2018-10-02 06:57:38 -07:00
Pascal Hartig
344e6e7a04 Rename test classes
Summary: Take care of the test class names.

Reviewed By: danielbuechele

Differential Revision: D10113028

fbshipit-source-id: c8f0967fe2ae8c0f416e0f2f1eab30785fad01e8
2018-10-02 05:11:56 -07:00
Daniel Büchele
5aefb989e0 run jest tests
Summary:
Adding support for JS testing. Currently there are two environments tests can run in: node and electron. To select which environment to run a test in, name your test file accordingly `*.node.js` or `*.electron.js` and put it in a `__tests__` folder.

- `yarn test` to run node based tests
- `yarn test-electron` to run electron tests

A basic snapshot test of the empty app is added to make sure the app is rendering as expected. A test for the server is added to make sure when Flipper is started the two servers (secure and insecure) are started and ready to accept connections.

Reviewed By: passy

Differential Revision: D10050212

fbshipit-source-id: 8ef7f931339b43251d9d423886bcaca99ae691e4
2018-10-02 04:29:51 -07:00
Pascal Hartig
8c4e5ec647 Rename diagnostics AndroidManifest.xml
Summary:
The manifest is invalid without a package name and causes CI
to fail in some weird ways.

Reviewed By: jknoxville

Differential Revision: D10123737

fbshipit-source-id: d4adc84e6c1a4297fc1b30720f131fd06c22c4d3
2018-10-01 14:04:08 -07:00
Pascal Hartig
7c32e1163f Verbose snapshot building
Summary: Fails after 10 minutes of silence otherwise.

Reviewed By: danielbuechele

Differential Revision: D10123899

fbshipit-source-id: 5be9ae4cff7c72399d6d78d6248b710178953c22
2018-10-01 14:04:08 -07:00
Pascal Hartig
184d952a61 Update send-data Flipper references
Summary: Sonar -> Flipper

Reviewed By: danielbuechele

Differential Revision: D10114910

fbshipit-source-id: 28f5d6ac7a71ae645872adda820feea6adb21f73
2018-10-01 02:29:34 -07:00
Pascal Hartig
3e971775c3 Run unit tests in CI
Reviewed By: danielbuechele

Differential Revision: D10103229

fbshipit-source-id: 15f618bcd822588541de3b7c7988a1dec9c54e13
2018-09-30 04:13:56 -07:00
Pascal Hartig
e39b08cdbf Move test sonar package to flipper
Summary: This confused Android Studio real bad.

Reviewed By: danielbuechele

Differential Revision: D10103210

fbshipit-source-id: 20b28575942998fa0c646090e46a2f55983a26a6
2018-09-30 04:13:54 -07:00
Pascal Hartig
b756b5490f Set up unit test support in Gradle
Summary:
This works now:

```
./gradlew :android:testDebugUnitTest
BUILD SUCCESSFUL in 1s
39 actionable tasks: 39 up-to-date
```

Reviewed By: danielbuechele

Differential Revision: D10101985

fbshipit-source-id: e3d1f17b29652061498d50a9218a94aaebee67e2
2018-09-30 04:13:53 -07:00
Pascal Hartig
2a4df330b2 Fix robolectric test runner import
Summary: Can't use our internal test runner for this, d'uh.

Reviewed By: danielbuechele

Differential Revision: D10101984

fbshipit-source-id: 23f0af1c0b9e5d761de260643ef8d5546d9478eb
2018-09-30 04:13:53 -07:00
Daniel Büchele
9d2713cdc0 docs update
Summary: update docs to match new styling API and rename from Sonar to Flipper.

Reviewed By: passy

Differential Revision: D10107270

fbshipit-source-id: 75d7a06c88795aa1d3dce8f135f3a9c21d5d038d
2018-09-28 10:42:22 -07:00
Pascal Hartig
2ef79d1e94 Reenable Flipper snapshot releases
Summary: Will reenable the Circle CI job for automatic snapshot publishing.

Reviewed By: danielbuechele

Differential Revision: D10107227

fbshipit-source-id: 5c76287e71fa2328b4b2d33be14792d2fdb1d209
2018-09-28 10:27:19 -07:00
Pascal Hartig
cf1c0748e1 Remove unnecessary plugin sourceSet
Summary: This is from before we adopted the gradle standard layout.

Reviewed By: danielbuechele

Differential Revision: D10101917

fbshipit-source-id: f45ab06cbf4d56a70df1cac6cb1fd234148d2634
2018-09-28 10:14:46 -07:00
Daniel Büchele
9caddc2b8b Button icon variant
Summary: Allow setting the icon variant for icons on buttons

Reviewed By: jknoxville

Differential Revision: D10101603

fbshipit-source-id: 344afda2296479ffb8449a7ad8172b35f0dc95e4
2018-09-28 08:57:37 -07:00
Daniel Büchele
a455520ecb adding jest test setup
Summary:
Adds a test runner for jest test and adds three simple test cases:
- render the app
- start a server
- client connecting to the app

Test can be run using `yarn test`.

To make the test runner work, some changes needed to be made:
- remove the export of `init()` from `'flipper'`, because it was a cyclic dependency
- updating Button.js to the new ref-API

Reviewed By: jknoxville

Differential Revision: D10027078

fbshipit-source-id: 49107b0dd4dec666b92ecd841422fe7e6b3a7756
2018-09-28 06:42:08 -07:00
Daniel Büchele
af1ff7f039 electron 3 upgrade
Summary: Electron cache updated in D10051121

Reviewed By: passy

Differential Revision: D10051240

fbshipit-source-id: 858137397984d1d0260a4bff3d65f59d47f2931d
2018-09-28 06:42:08 -07:00
Pascal Hartig
fe0d1909cf Flipper Release: v0.8.1
Summary: Patch release to fix Android native library crashes.

Reviewed By: jknoxville

Differential Revision: D10084446

fbshipit-source-id: d40c47f91aa88d7a60b2d355ebdc7c14ffa77bbf
2018-09-27 08:27:08 -07:00
Pascal Hartig
28f390c540 Increase verbosity (#282)
Summary:
Apparently, `--quiet` is *too* quiet on "dumb" terminals,
staying quiet for longer than 10 minutes on Circle CI, causing
the jobs to fail.
Pull Request resolved: https://github.com/facebook/flipper/pull/282

Reviewed By: jknoxville

Differential Revision: D10083183

Pulled By: passy

fbshipit-source-id: 6d006ab8aa2954d72d545bcef5d9e2d863a9f6a3
2018-09-27 05:52:02 -07:00
Pritesh Nandgaonkar
349e26fe20 Rename sonarfb to flipperfb
Summary: Currently sample app instacrashes due to native lib renamed to flipperfb.

Reviewed By: passy

Differential Revision: D10051573

fbshipit-source-id: a739a6f354c2ef2b5576c1e82728a5db2714ace2
2018-09-26 11:33:28 -07:00
Pascal Hartig
59f762cac9 Fix failing tests
Summary: Previous diffs fixed all compilation issues, this one makes them actually pass again.

Reviewed By: danielbuechele

Differential Revision: D10050632

fbshipit-source-id: 7e9f30c51d192b9f7e43abec8a19b2f1eef997df
2018-09-26 10:32:14 -07:00
Pascal Hartig
86d32758e3 Fix InspectorSonarPluginTest
Summary: Fix compilation issues in InspectorSonarPluginTest.

Reviewed By: danielbuechele

Differential Revision: D10050477

fbshipit-source-id: 556f48ca80f8091c34319b5ada26874eb5ac1e40
2018-09-26 10:32:13 -07:00
Pascal Hartig
038a2dbe82 Fix DescriptorMappingTest
Summary: Fixing broken tests one-by-one. This was an interface addition that wasn't implemented here.

Reviewed By: danielbuechele

Differential Revision: D10050418

fbshipit-source-id: 5e157ccbe414c6cacca1feba3e6460bbf1593abf
2018-09-26 10:32:13 -07:00
John Knox
3118814ddc Add iOS client hang test
Summary: Check that it never hangs or crashes during startup

Reviewed By: priteshrnandgaonkar

Differential Revision: D10034630

fbshipit-source-id: b69ce9e6f91a5499a084c4d7328e6934ec92ece4
2018-09-26 07:26:54 -07:00
Pritesh Nandgaonkar
7e296467d2 Flipper Release: v0.8.0
Summary: New 0.8.0 release which includes name changes from sonar to flipper.

Reviewed By: passy, danielbuechele

Differential Revision: D10050160

fbshipit-source-id: 5394ea0d032cea39f40cc9ed8e0f054e506d4f04
2018-09-26 06:59:09 -07:00
Pritesh Nandgaonkar
ddcc74edb8 Update release script to accomodate name change
Summary: As per the title

Reviewed By: danielbuechele

Differential Revision: D10050043

fbshipit-source-id: 7e3744fd9d2224456515cfa7187faebbf1541fa6
2018-09-26 06:59:09 -07:00
Pritesh Nandgaonkar
3699a0667a Rename sonar to flipper in the docs
Summary: Sonar->Flipper

Reviewed By: passy

Differential Revision: D10032191

fbshipit-source-id: 5e5230a02e34b9d1c7c355701daef984dc779f35
2018-09-26 04:13:22 -07:00
Pritesh Nandgaonkar
588d61efc6 Rename SonarKitLayoutComponentkitsupport
Summary: Rename SonarKitLayoutComponentkitsupport

Reviewed By: passy

Differential Revision: D10029301

fbshipit-source-id: c87717d431ce2603e31bf3c25add40f90eb76609
2018-09-25 13:47:38 -07:00
Pritesh Nandgaonkar
706ef2a1c8 Rename FlipperCppWrapperPlugin
Summary: Renames FlipperCppWrapperPlugin

Reviewed By: passy

Differential Revision: D10028505

fbshipit-source-id: d4245a49e2c8cbc8d06ed17c93ee5cb28ce49838
2018-09-25 13:47:36 -07:00
Pritesh Nandgaonkar
e6aeb24fcc Rename SonarCppBridgingResponder
Summary: Renames SonarCppBridgingResponder

Reviewed By: passy

Differential Revision: D10028084

fbshipit-source-id: d45b50a659710fb6e535241780a335a124582a47
2018-09-25 13:47:35 -07:00
Pritesh Nandgaonkar
ccf47e75fd Rename podspec file
Summary: Rename podspec file

Reviewed By: passy

Differential Revision: D10027676

fbshipit-source-id: b5936f0e514f06d1ff3d68657d7fe5912cac233d
2018-09-25 13:47:35 -07:00
Pritesh Nandgaonkar
790296ae18 Rename SonarResponderMock
Summary: Renames SonarResponderMock

Reviewed By: passy

Differential Revision: D10027566

fbshipit-source-id: d0aea826641d2fd2b0f73daec01544766fd3848b
2018-09-25 13:08:13 -07:00
Pritesh Nandgaonkar
f7aef49d8a Rename SonarConnectionMock
Summary: Renames SonarConnectionMock

Reviewed By: jknoxville

Differential Revision: D10026707

fbshipit-source-id: eb1be0ad5fa53ab1fc6ca0c7e8482bb61521daeb
2018-09-25 13:08:13 -07:00
Pritesh Nandgaonkar
ef6ee6281f Rename SonarKit tests and testutils folder
Summary: Renames SonarKit tests and testutils folder

Reviewed By: passy

Differential Revision: D10017892

fbshipit-source-id: 0725e061ee2c6baa77a3d80af36375e08d9f415e
2018-09-25 13:08:13 -07:00
Pascal Hartig
632628e630 Update name references in java docs
Summary: Per title. Tried to only update the things I touched myself.

Reviewed By: jknoxville

Differential Revision: D10028023

fbshipit-source-id: 09b56ea9d19caa277a107e4ea970d3ebb28b2165
2018-09-25 08:58:15 -07:00
John Knox
a19862d7a2 Cleanup "sonar" from logs
Summary: Flipper logs already get "Flipper" prepended.

Reviewed By: passy

Differential Revision: D10028565

fbshipit-source-id: d3e84bba64044275da0145db6e804dc8eb3a44b7
2018-09-25 07:57:34 -07:00
Pascal Hartig
f18802e373 Rename internal android references
Summary: sonar -> Flipper

Reviewed By: jknoxville

Differential Revision: D10028004

fbshipit-source-id: 33a32b4aaca9c97ce8db7da3bccb7ee6515a6104
2018-09-25 06:57:31 -07:00