Commit 1706d80
authored
refactor: drop old arch and cpp templates (#818)
## Summarry
The large number of templates makes it difficult to maintain and test.
so this reduces the number of templates:
- Drop old architecture templates - users can use codegen or older
version of crnl
- Drop cpp templates - our cpp template isn't a pure cpp template, we
should eventually have it
## Test plan
Tested building each template: turbo module, fabric view, nitro module
and ran the example app for Android & iOS to verify it works.
- Nitro fails locally on iOS due to this
mrousavy/nitro#422, so had to force the iOS
version to make it work
- Turbo module works fine locally on iOS but fails on CI
Both of them seem related to XCode 16 and not this change.1 parent 688e53f commit 1706d80
File tree
29 files changed
+86
-517
lines changed- .github/workflows
- docs/pages
- packages/create-react-native-library
- src
- exampleApp
- templates
- common-local
- common
- cpp-library
- android
- cpp
- example-module-legacy/example/src
- kotlin-library-legacy/android/src/main/java/com/{%- project.package_dir %}
- kotlin-view-legacy/android/src/main/java/com/{%- project.package_dir %}
- native-common
- android
- native-library-legacy/src
- native-view-legacy/src
- objc-library/ios
- objc-view-legacy/ios
- swift-library-legacy/ios
- swift-view-legacy/ios
29 files changed
+86
-517
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 33 | + | |
52 | 34 | | |
53 | | - | |
54 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
55 | 39 | | |
56 | 40 | | |
57 | | - | |
58 | | - | |
| 41 | + | |
| 42 | + | |
59 | 43 | | |
60 | 44 | | |
61 | | - | |
| 45 | + | |
62 | 46 | | |
63 | 47 | | |
64 | 48 | | |
| |||
76 | 60 | | |
77 | 61 | | |
78 | 62 | | |
79 | | - | |
| 63 | + | |
80 | 64 | | |
81 | 65 | | |
82 | 66 | | |
| |||
88 | 72 | | |
89 | 73 | | |
90 | 74 | | |
91 | | - | |
92 | | - | |
93 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
94 | 78 | | |
95 | 79 | | |
96 | 80 | | |
| |||
135 | 119 | | |
136 | 120 | | |
137 | 121 | | |
138 | | - | |
| 122 | + | |
139 | 123 | | |
140 | 124 | | |
141 | 125 | | |
142 | 126 | | |
143 | 127 | | |
144 | 128 | | |
145 | | - | |
| 129 | + | |
146 | 130 | | |
147 | 131 | | |
148 | 132 | | |
| |||
153 | 137 | | |
154 | 138 | | |
155 | 139 | | |
156 | | - | |
| 140 | + | |
157 | 141 | | |
158 | | - | |
| 142 | + | |
159 | 143 | | |
160 | 144 | | |
161 | 145 | | |
| |||
194 | 178 | | |
195 | 179 | | |
196 | 180 | | |
197 | | - | |
| 181 | + | |
198 | 182 | | |
199 | 183 | | |
200 | 184 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
Lines changed: 25 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
272 | 271 | | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
277 | 276 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
297 | 291 | | |
298 | 292 | | |
299 | 293 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
| |||
36 | 34 | | |
37 | 35 | | |
38 | 36 | | |
39 | | - | |
| 37 | + | |
40 | 38 | | |
41 | 39 | | |
42 | 40 | | |
43 | 41 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
| 42 | + | |
50 | 43 | | |
51 | 44 | | |
52 | 45 | | |
| |||
101 | 94 | | |
102 | 95 | | |
103 | 96 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 97 | | |
115 | 98 | | |
116 | 99 | | |
| |||
167 | 150 | | |
168 | 151 | | |
169 | 152 | | |
170 | | - | |
171 | 153 | | |
172 | 154 | | |
173 | 155 | | |
| |||
0 commit comments