Commit Graph

9282 Commits

Author SHA1 Message Date
Pritesh Nandgaonkar
7405cd268a Merge branch 'master' of https://github.com/facebook/Sonar into Fix-Android 2018-06-19 14:13:59 +01:00
Pritesh Nandgaonkar
ffa6e744c2 update 2018-06-19 14:08:12 +01:00
Pascal Hartig
2076fc8fd1 Fix Android getting started docs
Summary:
`SoLoader.init(Context, int)` isn't what we want as it can raise an `IOException` (checked) and implies exo-package. I suppose this was meant to be
`(Context, boolean)`.

Reviewed By: jknoxville

Differential Revision: D8512345

fbshipit-source-id: 7fad2a3788e64149fc02e3446db2c71412ccb43d
2018-06-19 06:03:22 -07:00
Pascal Hartig
0768c9a43a Add Electron link to README
Summary:
Resubmit D8378726. Previous import stalled.

Closes #18

Original Author: alexeykuzmin

Reviewed By: jknoxville

Differential Revision: D8510131

fbshipit-source-id: 732318b919f00d16c2f7fc2385bae7bf11411085
2018-06-19 04:45:39 -07:00
Daniel Büchele
e70ebc4c59 check android emulator names
Summary: maliciously named Android emulators could execute arbitrary commands. This checks makes sure the emulator name only has valid characters and puts them in quotes to prevent executing other commands.

Reviewed By: jknoxville

Differential Revision: D8489024

fbshipit-source-id: d91011ceaa8abf0ac53a308089cbdd0b0db03b54
2018-06-19 04:02:20 -07:00
Daniel Büchele
7406af9c3a old version check
Summary:
Remove old version number check. `AutoUpdateVersion` is used instead for macOS, we currently do not support auto-updates on other platforms.
This also removes the leaked Intern Graph secret.

Reviewed By: emilsjolander

Differential Revision: D8488849

fbshipit-source-id: 0853e8f868137972f718847c49038304525e1e06
2018-06-18 11:07:16 -07:00
Hilal Alsibai
51ac6a1f8f Ignore yarn error log (#54)
Summary:
No need to include this in commits.
Closes https://github.com/facebook/Sonar/pull/54

Differential Revision: D8466428

Pulled By: xiphirx

fbshipit-source-id: f24c4afe30dd74a17dbf42535ba92e7467c9e33a
2018-06-18 10:48:24 -07:00
Pritesh Nandgaonkar
88ecb9b494 app builds but not with sonarfb 2018-06-18 18:45:37 +01:00
Pascal Hartig
16a3e2fa27 Rename isInternalComponent to canResolve
Summary:
I'm sure there's a better way to describe what this does in the Javadoc, but I
can't really come up with one.

Also inlined one method which made another call which is now redundant.

I'd also really like to make this call entirely unnecessary by moving the logic
to `resolve()` so that overriding it automatically implies `canResolve` but the
edge cases for commonProps and treeProps make this rather unpleasant.

Reviewed By: IanChilds

Differential Revision: D8476911

fbshipit-source-id: 33c6a20da03e50cd1c1d4994e64ef8b43b2c68bc
2018-06-18 07:32:26 -07:00
John Knox
8b2a2b12a3 Add LibreSSL support (and other openssl implementations)
Summary:
Common Name extraction by regex was failing on LibreSSL.
Now using RFC2253 to unamiguously format distinguished name subject strings.

Reviewed By: emilsjolander

Differential Revision: D8452825

fbshipit-source-id: a18d4162a7aed3b5bd8c2996ff3832877dac90db
2018-06-18 03:47:21 -07:00
Igor Randjelovic
0984103696 Add screenshot to the readme (#46)
Summary:
To make it more appealing for people landing on the GitHub page - seeing a nice screenshot is always a plus!
Closes https://github.com/facebook/Sonar/pull/46

Differential Revision: D8476809

Pulled By: danielbuechele

fbshipit-source-id: d26b10069ab5745342156669ff627dd4fdad2fdb
2018-06-18 03:32:10 -07:00
Yossi Elkrief
6cf1c0d173 Update getting-started.md (#61)
Summary:
Using debugImplementation instead of deprecated debugCompile
Closes https://github.com/facebook/Sonar/pull/61

Differential Revision: D8466425

Pulled By: passy

fbshipit-source-id: b3dd4185b307933c0781a798385a66ab128b43f2
2018-06-16 08:17:39 -07:00
Pascal Hartig
e820beba83 Centralize sample dependencies (#77)
Summary:
The support libraries where out of sync between the projects, causing
the sample build to fail with

```
> Android dependency 'com.android.support:appcompat-v7' has different version for the compile (26.1.0) and runtime (27.1.1) classpath. You should manually set the same version via DependencyResolution
```

This makes sure that the sample submodule uses the top-level
dependencies and same versions.
Closes https://github.com/facebook/Sonar/pull/77

Reviewed By: emilsjolander

Differential Revision: D8447186

Pulled By: passy

fbshipit-source-id: e391501edd97fdbe6456b32cd7305d8be26e20db
2018-06-15 09:40:22 -07:00
Pritesh Nandgaonkar
85731a2f5f refer dependencies from central place 2018-06-15 17:12:29 +01:00
Pritesh Nandgaonkar
4cbaeb3e32 Android target and sample builds 👏 2018-06-15 16:53:58 +01:00
Pritesh Nandgaonkar
72045da4be Use the latest fbjni 2018-06-15 15:55:10 +01:00
Pritesh Nandgaonkar
f4b76a3688 commit changes in fbjni 2018-06-15 11:53:38 +01:00
Daniel Buchele
6f95ad512f fbshipit-source-id: b14273e883aba6de7b817801a1b04e54a29a6366 2018-06-15 02:23:48 -07:00
Pritesh Nandgaonkar
c179078acd Updated fbjni since its outdated 2018-06-14 22:23:11 +01:00
Pritesh Nandgaonkar
51c36cf2bd RSicket builds 2018-06-14 21:45:45 +01:00
Pritesh Nandgaonkar
ff7dc5cb37 Added Rsocket 2018-06-14 19:55:29 +01:00
Pritesh Nandgaonkar
a63b661327 Update gradle of sonar cpp 2018-06-14 18:22:46 +01:00
Pritesh Nandgaonkar
e50122dc85 Folly builds 2018-06-14 17:59:24 +01:00
Pritesh Nandgaonkar
04784186df Update folly gradle 2018-06-14 13:53:39 +01:00
Pritesh Nandgaonkar
e35206fde7 Libevent referenced thru pre built libraries 2018-06-14 13:48:42 +01:00
Daniel Buchele
c6dd46db99 fbshipit-source-id: a574ddc54305d43600bfc4dcf282e2dc13d5a522 2018-06-14 02:31:15 -07:00
Pritesh Nandgaonkar
d80b063fa0 changes in cmake of libevent 2018-06-13 21:41:37 +01:00
Daniel Buchele
5bd6869aeb fbshipit-source-id: d0f4b1833968aae403b114119f4e8cda184361c9 2018-06-13 11:17:05 -07:00
Pritesh Nandgaonkar
02161dc06b Add openssl as a dependency to Folly 2018-06-13 18:49:01 +01:00
Daniel Büchele
50490b9435 Linux and Windows builds
Summary:
Adds windows and linux builds to Sandcastle

allow-large-files

Reviewed By: jknoxville

Differential Revision: D8379581

fbshipit-source-id: 94c80fc91c69f43b7dc0c7eb8b2ee5ace4daf888
2018-06-13 09:04:04 -07:00
Pritesh Nandgaonkar
c2b1f09c84 OpenSSL builds successfully 2018-06-13 16:37:15 +01:00
svcscm
32382b2999 Updating submodules
Reviewed By: cdelahousse

fbshipit-source-id: 461c869dec1bbe6683f3ae0fe3298bc1bcde1600
2018-06-13 08:32:10 -07:00
Pritesh Nandgaonkar
8db609ab9b Folly will track master
Summary: OSS used an older release and our code base got updated to some new folly api which was added few days back, so it broke OSS. So this diff will track Folly to master

Reviewed By: danielbuechele

Differential Revision: D8385398

fbshipit-source-id: 9be9a1313b1488fa8b1ca1f681010d0ff7819414
2018-06-13 04:17:10 -07:00
Pritesh Nandgaonkar
a887a87a8d Added OpenSSL 2018-06-13 11:36:51 +01:00
Daniel Buchele
7cbeaa5c7b fbshipit-source-id: 632f0ef2f5b776665dc1fd82fe0402a6008022a0 2018-06-13 03:34:18 -07:00
Pritesh Nandgaonkar
5c25aaeac0 commit folly podspec changes 2018-06-12 23:04:54 +01:00
Pritesh Nandgaonkar
2a3ebe95cb Track master of folly 2018-06-12 22:24:24 +01:00
Michael Evans
5c779b9176 Remove hardcoded path to Android SDK directory
Summary: Closes https://github.com/facebook/Sonar/pull/19

Differential Revision: D8383484

Pulled By: danielbuechele

fbshipit-source-id: cabf6daed9c0919c186f88eb154d201818723ed6
2018-06-12 12:33:09 -07:00
Daniel Buchele
28be3c7cd8 fbshipit-source-id: cad5f527363fe09c2eea5b05ce1f3f2ecb86941b 2018-06-12 11:42:02 -07:00
Pritesh Nandgaonkar
cac31016b6 Include .h file as well 2018-06-12 16:33:53 +01:00
Andrei Verdes
1edffabd05 Fix GH-22 wrong method for Android docs (#23)
Summary:
As per GH-14 comment, the docs were pointing to an internal `private` method to check if `Sonar` should be enabled
Closes https://github.com/facebook/Sonar/pull/23

Reviewed By: danielbuechele

Differential Revision: D8379336

Pulled By: jknoxville

fbshipit-source-id: bc580dc40a1994a2f4a30544d77f86b60e9353f6
2018-06-12 06:32:36 -07:00
Jay Newstrom
2f6508ca03 Fix typo in stetho documentation.
Summary: Closes https://github.com/facebook/Sonar/pull/17

Differential Revision: D8379391

Pulled By: danielbuechele

fbshipit-source-id: 3eef14299f64b590c0e68624b17468f45111921c
2018-06-12 06:27:42 -07:00
Romain Le Quellec
521cca5e47 docs: rename communicating filename (#44)
Summary:
Just a small typo in the filename
Closes https://github.com/facebook/Sonar/pull/44

Differential Revision: D8379387

Pulled By: danielbuechele

fbshipit-source-id: ae855068098360805c8ec56a1544a3cbea22f2c0
2018-06-12 06:27:42 -07:00
sungjk
1fa0eb3ad2 Fix typo in reducers (#34)
Summary:
Fixed typos in reducers
Closes https://github.com/facebook/Sonar/pull/34

Differential Revision: D8379211

Pulled By: danielbuechele

fbshipit-source-id: d1dc6ff80963b931a3d8b1e4abe0f40ade3ba67f
2018-06-12 06:27:42 -07:00
Michael Evans
dba07a33c7 Fix typo in ui-components docs
Summary: Closes https://github.com/facebook/Sonar/pull/26

Differential Revision: D8379209

Pulled By: danielbuechele

fbshipit-source-id: b5f2fe8de84e48a9cd43bb8cd3e79e21e6be470f
2018-06-12 05:49:01 -07:00
Michael Evans
86d266e75c Fix yarn lint failures
Summary: Closes https://github.com/facebook/Sonar/pull/20

Reviewed By: jknoxville

Differential Revision: D8378657

Pulled By: danielbuechele

fbshipit-source-id: 51dcc4621d657dee089949caf3ebf1961eb3dd6d
2018-06-12 05:10:35 -07:00
John Knox
4fbe638adf Silence expected error logs
Summary:
When an app with sonar is run for the first time, the necessary files don't exist.
This is expected, so don't output an error, only error if they do exist but there's some other problem.

Reviewed By: emilsjolander

Differential Revision: D8350995

fbshipit-source-id: ff0a4f0e7a73848f6172c6108a0caee6efb43553
2018-06-12 04:11:47 -07:00
John Knox
8af2af6558 Never reuse CSR files
Summary:
If the app has an old CSR with data that is incompatible with sonar, we can't use it.
An example of this happening is when we moved the package name from organisation to common name in the certificate subject.
To get around this, always create a new one to guarantee it contains what we expect.

Reviewed By: emilsjolander

Differential Revision: D8350247

fbshipit-source-id: e53148fcddc47aa60e3daef5bbf36ce330a3b4e9
2018-06-12 04:11:47 -07:00
Pascal Hartig
8e5647725a Replace test runner in sample
Summary: WithDefaultsTestRunner is FB-specific. Let's replace that with its base class.

Reviewed By: danielbuechele

Differential Revision: D8355145

fbshipit-source-id: 4d87ad00a82d1e2d5b536289f247910c6139df07
2018-06-12 04:11:47 -07:00
Daniel Buchele
f7d487dd76 fbshipit-source-id: 2cd940396d650342920b28835f6e672febe6b55c 2018-06-12 03:39:09 -07:00