Commit 28b77bc
feat: expo config plugin (#223)
* chore: bootstrapped demo Expo app
* chore: use expo config plugin in expo demo app
* chore: reset Expo project
* chore: use workspace specifier for monorepo deps
* fix: do not toss up source sets in Gradle plugin
* feat: base implementation for brownfield Expo config plugin
* chore: update lock files
* chore: update app.json in ExpoApp
* chore: enable debug logging in app.json in ExpoApp
* feat: use new logging system in the plugin
* feat: templates engine for project modifications
* feat: patch for Expo SDK pre v55, fix source file paths
* feat: implemented Android brownfield plugin
* chore: update ExpoApp scripts
* fix: dedent gradle script insertion
* fix: depend on Material in AndroidApp; fix typo in gradle scripting comments
* fix: package name in ExpoApp
* chore: use debug signing config for AndroidApp release variant - for testing purposes
* chore: missing indent in gradleHelpers insertion
* fix: add missing expo modifications to template build.gradle.kts
* chore: use the Expo classes in template ReactNativeHostManager.kt
* fix: iOS xcode project processing of target UUID
* fix: make Android Expo config explicitly specify versions of RN Android deps to be properly resolved by Gradle when consumed
* fix: running package:ios again
* chore: udpate rock to 0.12.8
* chore: make nodemon watch template files in dev script for brownfield package
* chore: reformat files, extract capitalized string helper, suppress unchecked cast compilation warnings
* chore: deintegrate isExpo gradle plugin prop in favor of auto-detection
* chore: typo in Android native demo app theme name
* feat: config Maven publishing for part of the core expo modules
* fix: correct artifact, group and version discovery for manually whitelisted publishable projects
* feat: inject transitive dependencies into POM publication files
* feat: instead of publishing, inject proper POM and Gradle Module JSON metadata with Expo transitive deps
* feat: functional Expo demo in AndroidApp
* chore: re-enable signing of gradle plugin
* chore: use 0.0.1-snapshot by default in Expo plugin on Android
* fix: filter out remaining expo transitive dependencies, add version mediation mechanisms
* feat: seamless integration of Expo features into the brownfield CLI
* refactor: restructure RNApp sources
* feat: reuse RNApp sources in ExpoApp
* feat: set up flavors for AndroidApp to consume expo or vanilla artifacts
* ci: update CI to account for AndroidApp flavors
* chore: remove obsolete comment
* fix: monorepo-prone expo detection in CLI
* feat: proper code sharing for RN demo apps
* fix: make ReactNativeHostManager singatures match across flavors, properly initialize React Native
* fix: restore .brownie.ts files in each project for codegen to work properly
* feat: added an image view to the demo app
* chore: strip obsolete comment
* fix: proper module name in ios script
* fix: brownie not to crash on Android
* fix: handle brownie no stores in project in the CLI
* feat: demo apps reorganized, pulled in clean template for expo app
* feat: integrate brownie store with Expo demo app
* docs: update docs
* feat: temporarily deintegrate brownie from expo demo before android is implemented in brownie
* chore: rename expo app project
* chore: re-enable signing of the gradle plugin
* chore: add changesets
* refactor: format files
* fix(ci): path to RN project in androidapp-road-test
* refactor: format files to comply with detekt
* chore: revert changes to brownie
* fix: paths in packageIos in RN projects
* ci: update workflow for Apple apps
* feat: demo iOS app supporting interchanging brownfield artifacts
* fix: patchExpoPre55.sh
* fix: reorder build phases in iOS to first run patching after expo configure
* wip: reorder build script phases PoC for Expo config plugin
* chore: reorder code properly
* chore: use SNAPSHOT for CI and local
* chore: add plugin publish and patch scripts for local maven
* chore: fix appleapp-road-test ci
* chore: use macos runner for appleapp CI
* fix(ci): update maven path for expo flavor
* fix(ci): expo android
* feat: ensure build phase correct order using post_integrate
* feat: add ReactNativeHostManager to source files
* fix: use the bundleURL in loadView
* feat: present Expo RN UI in Apple App
* chore: use latest version for brownfield-gradle-plugin
* feat: add source files to PBXSourcesBuildPhase
* feat: allow entry points other than main
* feat: add configuration for vanilla and expo to AppleApp
* fix: add info.plist to AppleApp
* fix: bundle reference
* fix(ci): add guard to only run pods for vanilla
* docs: update ExpoApp usages
* feat: remove coil dependency from plugin to the lib
* refactor: remove TODO comments
* feat: guard script reordering against expo version
* feat: separate brownie usage by platform
* chore: build android app with release variant
* docs: add Expo Integration section
* chore: bump versions
* fix: remove color prop
* Update docs/docs/docs/getting-started/expo.mdx
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
* Update docs/docs/docs/getting-started/expo.mdx
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
* docs: remove images
* refactor: fix indentation
* chore: remove changeset bump
* chore(bump): react-native-brownfield and brownfield-cli for manual RC
* feat: set default names
* feat: use the default plugin config
* docs: add plugin options
* Update docs/docs/docs/getting-started/introduction.mdx
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
---------
Co-authored-by: Michał Pierzchała <thymikee@gmail.com>
Co-authored-by: Hur Ali <hurali97@gmail.com>1 parent 41c8105 commit 28b77bc
File tree
164 files changed
+8483
-727
lines changed- .changeset
- .github
- actions
- androidapp-road-test
- appleapp-road-test
- workflows
- apps
- AndroidApp
- app
- src
- expo/java/com/callstack/brownfield/android/example
- main
- java/com/callstack/brownfield/android/example
- res/values
- vanilla/java/com/callstack/brownfield/android/example
- gradle
- AppleApp
- Brownfield Apple App.xcodeproj
- Brownfield Apple App
- ExpoApp
- app
- (tabs)
- assets/images
- components
- counter
- ui
- constants
- hooks
- scripts
- RNApp
- android
- BrownfieldLib
- ios
- src
- components/counter
- TesterIntegrated
- docs/docs/docs
- getting-started
- guides
- gradle-plugins
- react
- brownfield
- src/main/kotlin/com/callstack/react/brownfield
- artifacts
- expo
- utils
- plugin
- processors
- utils
- gradle
- packages
- brownie
- cli
- src
- brownfield
- commands
- utils
- brownie
- commands
- errors
- helpers
- react-native-brownfield
- src/expo-config-plugin
- android
- errors
- ios
- template
- android
- ios
- types
- android
- ios
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
164 files changed
+8483
-727
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
| 86 | + | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 95 | + | |
| 96 | + | |
103 | 97 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
122 | 101 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
128 | 106 | | |
129 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
130 | 110 | | |
131 | | - | |
132 | | - | |
133 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
134 | 117 | | |
135 | 118 | | |
136 | 119 | | |
137 | 120 | | |
138 | 121 | | |
139 | 122 | | |
140 | | - | |
| 123 | + | |
141 | 124 | | |
142 | 125 | | |
143 | 126 | | |
| |||
203 | 186 | | |
204 | 187 | | |
205 | 188 | | |
206 | | - | |
207 | | - | |
| 189 | + | |
| 190 | + | |
208 | 191 | | |
209 | 192 | | |
210 | 193 | | |
211 | | - | |
212 | | - | |
213 | 194 | | |
214 | 195 | | |
215 | 196 | | |
216 | 197 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
| 198 | + | |
| 199 | + | |
231 | 200 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
| 201 | + | |
| 202 | + | |
253 | 203 | | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
272 | 208 | | |
273 | | - | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
274 | 212 | | |
275 | | - | |
276 | | - | |
| 213 | + | |
| 214 | + | |
277 | 215 | | |
278 | | - | |
| 216 | + | |
| 217 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
| 22 | + | |
22 | 23 | | |
23 | | - | |
24 | | - | |
| 24 | + | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | | - | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | | - | |
34 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
0 commit comments