Commit e837120
authored
fix(Android): Android build artifacts pollute installation folder (#176)
Android build artifacts are currently output under
`node_modules/react-native-test-app/android`. In a
[monorepo](https://github.com/microsoft/react-native-test-app/wiki#folder-structures),
multiple packages can share the same installation if it was hoisted,
e.g.:
```
my-monorepo
├── node_modules
│ └── react-native-test-app
│ └── android # Used by both packages
├── package.json
└── packages
├── my-awesome-component-android
│ ├── build.gradle
│ ├── package.json
│ ├── settings.gradle
│ └── src
└── my-second-awesome-component-android
├── build.gradle
├── package.json
├── settings.gradle
└── src
```
In this example, `node_modules/react-native-test-app/android` may
contain build artifacts from both `my-awesome-component-android` and
`my-second-awesome-component-android`.1 parent 6073906 commit e837120
2 files changed
Lines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
| |||
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | | - | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | | - | |
| 101 | + | |
100 | 102 | | |
101 | | - | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
0 commit comments