You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only building with Android Studio is supported. CMake is not used directly. Instead, Gradle
41
+
is used for building and CMake is automatically invocated for building the native part.
42
+
An `.apk` that can be executed on your device or simulator is the output.
43
+
44
+
45
+
First, download the latest release of Ninja, extract the binary, and add it to your system path.
46
+
47
+
Once you have Android Studio downloaded, you need to set up an Android emulator if you do not have a physical Android device. You can do this by selecting `Tools` -> `Device Manager` and then selecting a device. (We are using Pixel 2 API 27).
48
+
49
+
Open the project located at
50
+
`JsRuntimeHost\Tests\UnitTests\Android` with Android Studio. Note that this can take a while to load. (The bottom right corner of the Android Studio window shows you what is currently being loaded.)
51
+
52
+
53
+
Then in the LEFT PANE, right click on `app`, and select `Run 'All Tests'`, as displayed in the image below.
54
+
55
+

56
+
57
+
If you don't have an Android device plugged in or no Android image in the Android emulator, that option will be greyed and inaccessible.
58
+
59
+
**Troubleshooting:**
60
+
If the `app\cpp` folder on the left navigation pane is empty, select `File` -> `Sync Project with Gradle Files` and try to re-run the project by selecting `Run` -> `Run 'All Tests'`.
61
+
62
+
Sometimes, you may need to clean the build. To do that, delete the `Debug` folder located at `JsRuntimeHost\Build\Android\Debug`.
63
+
10
64
## Contributing
11
65
12
66
Please read [CONTRIBUTING.md](./CONTRIBUTING.md) for details on our code of conduct, and
@@ -19,4 +73,4 @@ Security Response Center (MSRC) at [[email protected]](mailto:secure@microsof
19
73
You should receive a response within 24 hours. If for some reason you do not, please
20
74
follow up via email to ensure we received your original message. Further information,
21
75
including the [MSRC PGP](https://technet.microsoft.com/en-us/security/dn606155) key, can
22
-
be found in the [Security TechCenter](https://technet.microsoft.com/en-us/security/default).
76
+
be found in the [Security TechCenter](https://technet.microsoft.com/en-us/security/default).
0 commit comments