@@ -48,7 +48,6 @@ Add to your app's `package.json`:
4848``` json
4949{
5050 "brownie" : {
51- "swift" : " ./ios/Generated/" ,
5251 "kotlin" : " ./android/app/src/main/java/com/example/" ,
5352 "kotlinPackageName" : " com.example"
5453 }
@@ -57,11 +56,10 @@ Add to your app's `package.json`:
5756
5857| Field | Required | Description |
5958| ------------------- | -------- | ----------------------------------------- |
60- | ` swift ` | No\* | Output directory for Swift files |
61- | ` kotlin ` | No\* | Output directory for Kotlin files |
59+ | ` kotlin ` | No | Output directory for Kotlin files |
6260| ` kotlinPackageName ` | No | Kotlin package name (extracted from path) |
6361
64- \* At least one of ` swift ` or ` kotlin ` is required .
62+ ** Note: ** Swift files are always generated to ` node_modules/@callstack/brownie/ios/Generated/ ` . This path is auto-resolved and not configurable .
6563
6664### Store Definition
6765
@@ -110,16 +108,18 @@ declare module '@callstack/brownie' {
110108
111109### Generated Output
112110
113- ** Swift** (` Codable ` struct with mutable properties):
111+ ** Swift** (` Codable ` struct with public access and mutable properties):
114112
115113``` swift
116- struct BrownfieldStore : Codable {
117- var counter: Double
118- var isLoading: Bool
119- var user: String
114+ public struct BrownfieldStore : Codable {
115+ public var counter: Double
116+ public var isLoading: Bool
117+ public var user: String
120118}
121119```
122120
121+ Generated to: ` node_modules/@callstack/brownie/ios/Generated/BrownfieldStore.swift `
122+
123123** Kotlin** (data class):
124124
125125``` kotlin
@@ -185,7 +185,9 @@ packages/brownie/
185185├── ios/
186186│ ├── BrownieModule.h/.mm # TurboModule, installs JSI bindings
187187│ ├── BrownieStoreBridge.h/.mm # ObjC++ wrapper for Swift access
188- │ └── BrownieStore.swift # Swift Store<T>, StoreManager, @UseStore
188+ │ ├── BrownieFollyConvert.h # FollyConvert import compatibility header
189+ │ ├── BrownieStore.swift # Swift Store<T>, StoreManager, @UseStore
190+ │ └── Generated/ # Auto-generated Swift store types (codegen output)
189191```
190192
191193### C++ Core
@@ -216,6 +218,13 @@ packages/brownie/
216218
217219### iOS Bridge
218220
221+ ** BrownieFollyConvert.h** - Compatibility header for FollyConvert imports:
222+
223+ - Handles different import paths depending on CocoaPods configuration
224+ - Supports static libs with header maps (default)
225+ - Supports ` use_frameworks! :linkage => :static ` setups
226+ - Falls back to ` RCTFollyConvert.h ` when available
227+
219228** BrownieStoreBridge** (ObjC++) - Exposes C++ to Swift:
220229
221230- ` registerStore(withKey:) ` - Create C++ store, set up notification callback
0 commit comments