1 | # Android Development
|
2 |
|
3 | ## Android Studio Configuration
|
4 |
|
5 | ![Compound Configuration](https://i.imgur.com/woB4iiJh.png)
|
6 |
|
7 | ### Application Runner
|
8 |
|
9 | ![Run application with custom before launch step](https://i.imgur.com/zX7QIGIh.png)
|
10 |
|
11 | > Important! to set checkbox `Allow parallel run`.
|
12 |
|
13 | ```bash
|
14 | # cd react-native-keychain
|
15 | ./gradlew :android
|
16 | ```
|
17 |
|
18 | ### Unit Tests
|
19 |
|
20 | ![Configure Execution of all Unit Tests](https://i.imgur.com/vjDVPYhh.png)
|
21 |
|
22 | ```bash
|
23 | # cd react-native-keychain
|
24 | ./gradlew test
|
25 | ```
|
26 |
|
27 | ### Start React Native Metro Bundler
|
28 |
|
29 | ![React Native Start](https://i.imgur.com/nvLZ9Fph.png)
|
30 |
|
31 | ```bash
|
32 | # cd react-native-keychain/KeychainExample
|
33 | react-native start --reset-cache
|
34 | ```
|
35 |
|
36 | ```bash
|
37 | # set working dir to: 'react-native-keychain/KeychainExample'
|
38 | /usr/bin/env node node_modules/.bin/react-native start --reset-cache
|
39 | ```
|
40 |
|
41 | > Important! to set checkbox `Allow parallel run`.
|
42 |
|
43 | ### Create Automatic self-refreshed TCP ports binding
|
44 |
|
45 | ![ADB reverse tcp port 8081](https://i.imgur.com/IatGcsVh.png)
|
46 |
|
47 | ```bash
|
48 | # brew install watch
|
49 | /usr/local/bin/watch -n 5 "adb reverse tcp:8081 tcp:8081 && adb reverse tcp:8097 tcp:8097 && adb reverse --list"
|
50 | ```
|
51 |
|
52 | > Important! to set checkbox `Allow parallel run`.
|
53 |
|
54 | ### Source code synchronization task
|
55 |
|
56 | Needed for automatic re-publishing of changes source code for sample:
|
57 |
|
58 | ![Configure Source Code Synchronization Task Run](https://i.imgur.com/BqVWThh.png)
|
59 |
|
60 | The same results can be achieved by executing this command:
|
61 |
|
62 | ```bash
|
63 | # cd react-native-keychain/KeychainExample
|
64 | yarn --force
|
65 |
|
66 | # cd react-native-keychain
|
67 | ./gradlew updateLibrarySourcesInExample
|
68 | ```
|