-
Notifications
You must be signed in to change notification settings - Fork 577
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2118224
commit 62edb6b
Showing
37 changed files
with
24,728 additions
and
19,490 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,7 +45,7 @@ Realm welcomes all contributions! The only requirement we have is that, like man | |
|
||
[Please submit your CLA electronically using our Google form](https://docs.google.com/forms/d/e/1FAIpQLSeQ9ROFaTu9pyrmPhXc-dEnLD84DbLuT_-tPNZDOL9J10tOKQ/viewform) so we can accept your submissions. The GitHub username you file there will need to match that of your Pull Requests. If you have any questions or cannot file the CLA electronically, you can email <[email protected]>. | ||
|
||
### How To: Add a new function | ||
### How To: Add a new function | ||
|
||
Adding new functionality to Realm JavaScript requires that you modify a few places in the repository. As an example, consider adding a function `crashOnStart()` to the class `Realm`. The subsections below guides you through where and what to add. | ||
|
||
|
@@ -89,7 +89,7 @@ In order to call the C++ implementation, the JavaScript engine has to know about | |
|
||
#### Update the RPC protocol | ||
|
||
This is required for the Chrome Debugger to work with React Native. If the method added is a pure Javascript function, | ||
This is required for the Chrome Debugger to work with React Native. If the method added is a pure Javascript function, | ||
you can skip this step as it will work automatically. If the method is a C++ method you will | ||
need to manually update the RPC protocol. | ||
|
||
|
@@ -101,7 +101,7 @@ If the method is static method you need to: | |
|
||
* Add function name to `lib/browser/index.js` or the relevant class under `lib/browser/`. It should forward the method | ||
call to an RPC method, e.g like: | ||
|
||
``` | ||
const Sync = { | ||
"_myMethod": function(arg) { | ||
|
@@ -110,7 +110,7 @@ const Sync = { | |
// ... | ||
}; | ||
``` | ||
|
||
* Add the RPC sender method to `/lib/browser/rpc.js`. | ||
* Add the RPC receiver endpoint in `/src/rpc.cpp`. | ||
|
||
|
@@ -198,3 +198,9 @@ Then run the following to log into the GitHub container registry, entering your | |
``` | ||
docker login ghcr.io | ||
``` | ||
|
||
### How to: Run the BaaS server locally | ||
|
||
It can be useful to run the BaaS server directly, rather than in the docker container, for example to use the latest version from a branch or for debugging. | ||
|
||
You can do this by running: `AWS_ACCESS_KEY_ID="???" AWS_SECRET_ACCESS_KEY="???" ./vendor/realm-core/evergreen/install_baas.sh -w ../baas-work-dir -b master` from the `realm-js` root directory. Logs can be accessed in `../baas-work-dir/baas_server.log` (the `baas-work-dir` is kept one level up from the `realm-js` repo). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
PACKAGE_NAME=realm-js | ||
VERSION=10.11.0 | ||
VERSION=10.12.0-beta.1 | ||
REALM_CORE_VERSION=11.8.0 | ||
NAPI_VERSION=4 | ||
OPENSSL_VERSION=1.1.1g | ||
MDBREALM_TEST_SERVER_TAG=2021-06-01 | ||
MDBREALM_TEST_SERVER_TAG=2022-01-11 |
Oops, something went wrong.