@callstack/brownie 0.0.3 → 3.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -54,7 +54,6 @@ Like the project? ⚛️ [Join the team](https://callstack.com/careers/?utm_camp
54
54
  [prs-welcome]: http://makeapullrequest.com
55
55
  [coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
56
56
  [coc]: https://github.com/callstack/react-native-brownfield/blob/master/CODE_OF_CONDUCT.md
57
- [all-contributors-badge]: https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square
58
57
  [chat-badge]: https://img.shields.io/discord/613446453762719798.svg?style=flat-square&colorB=758ED3
59
58
  [chat]: https://discord.gg/2SR9Mua
60
59
  [tweet-badge]: https://img.shields.io/badge/tweet-%23reactnativebrownfield-blue.svg?style=flat-square&colorB=1DA1F2&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAYAAACXtf2DAAAAAXNSR0IArs4c6QAAAaRJREFUOBGtlM8rBGEYx3cWtRHJRaKcuMtBSitxkCQ3LtzkP9iUUu5ODspRHLhRLtq0FxeicEBC2cOivcge%2FMgan3fNM8bbzL4zm6c%2BPT%2Fe7%2FO8887svrFYBWbbtgWzsAt3sAcpqJFxxF1QV8oJFqFPFst5dLWQAT87oTgPB7DtziFRT1EA4yZolsFkhwjGYFRO8Op0KD8HVe7unoB6PRTBZG8IctAmG1xrHcfkQ2B55sfI%2ByGMXSBqV71xZ8CWdxBxN6ThFuECDEAL%2Bc9HIzDYumVZ966GZnX0SzCZvEqTbkaGywkyFE6hKAsBPhFQ18uPUqh2ggJ%2BUor%2F4M%2F%2FzOC8g6YzR1i%2F8g4vvSI%2ByD7FFNjexQrjHd8%2BnjABI3AU4Wl16TuF1qANGll81jsi5qu%2Bw6XIsCn4ijhU5FmCJpkV6BGNw410hfSf6JKBQ%2FUFxHGYBnWnmOwDwYQ%2BwzdHqO75HtiAMJfaC7ph32FSRJCENUhDHsLaJkL%2FX4wMF4%2BwA5bgAcrZE4sr0Cu9Jq9fxyrvBHWbNkMD5CEHWTjjT2m6r5D92jfmbbKJEWuMMAAAAABJRU5ErkJggg%3D%3D
@@ -0,0 +1,42 @@
1
+ // This file was generated from JSON Schema using quicktype, do not modify it directly.
2
+ // To parse the JSON, add this file to your project and do:
3
+ //
4
+ // let brownfieldStore = try? JSONDecoder().decode(BrownfieldStore.self, from: jsonData)
5
+
6
+ //
7
+ // Hashable or Equatable:
8
+ // The compiler will not be able to synthesize the implementation of Hashable or Equatable
9
+ // for types that require the use of JSONAny, nor will the implementation of Hashable be
10
+ // synthesized for types that have collections (such as arrays or dictionaries).
11
+
12
+ import Foundation
13
+
14
+ // MARK: - BrownfieldStore
15
+ public struct BrownfieldStore: Codable, Equatable {
16
+ public var counter: Double
17
+ public var user: User
18
+
19
+ public init(counter: Double, user: User) {
20
+ self.counter = counter
21
+ self.user = user
22
+ }
23
+ }
24
+
25
+ //
26
+ // Hashable or Equatable:
27
+ // The compiler will not be able to synthesize the implementation of Hashable or Equatable
28
+ // for types that require the use of JSONAny, nor will the implementation of Hashable be
29
+ // synthesized for types that have collections (such as arrays or dictionaries).
30
+
31
+ // MARK: - User
32
+ public struct User: Codable, Equatable {
33
+ public var name: String
34
+
35
+ public init(name: String) {
36
+ self.name = name
37
+ }
38
+ }
39
+
40
+ extension BrownfieldStore: BrownieStoreProtocol {
41
+ public static let storeName = "BrownfieldStore"
42
+ }
@@ -0,0 +1,33 @@
1
+ // This file was generated from JSON Schema using quicktype, do not modify it directly.
2
+ // To parse the JSON, add this file to your project and do:
3
+ //
4
+ // let settingsStore = try? JSONDecoder().decode(SettingsStore.self, from: jsonData)
5
+
6
+ //
7
+ // Hashable or Equatable:
8
+ // The compiler will not be able to synthesize the implementation of Hashable or Equatable
9
+ // for types that require the use of JSONAny, nor will the implementation of Hashable be
10
+ // synthesized for types that have collections (such as arrays or dictionaries).
11
+
12
+ import Foundation
13
+
14
+ // MARK: - SettingsStore
15
+ public struct SettingsStore: Codable, Equatable {
16
+ public var notificationsEnabled, privacyMode: Bool
17
+ public var theme: Theme
18
+
19
+ public init(notificationsEnabled: Bool, privacyMode: Bool, theme: Theme) {
20
+ self.notificationsEnabled = notificationsEnabled
21
+ self.privacyMode = privacyMode
22
+ self.theme = theme
23
+ }
24
+ }
25
+
26
+ public enum Theme: String, Codable, Equatable {
27
+ case dark = "dark"
28
+ case light = "light"
29
+ }
30
+
31
+ extension SettingsStore: BrownieStoreProtocol {
32
+ public static let storeName = "SettingsStore"
33
+ }
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@callstack/brownie",
3
- "version": "0.0.3",
3
+ "version": "3.0.0-rc.2",
4
4
  "license": "MIT",
5
5
  "author": "Oskar Kwaśniewski <oskarkwasniewski@icloud.com>",
6
6
  "bin": {
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "homepage": "https://github.com/callstack/react-native-brownfield",
14
14
  "repository": {
15
- "url": "https://github.com/callstack/react-native-brownfield"
15
+ "url": "git+https://github.com/callstack/react-native-brownfield.git"
16
16
  },
17
17
  "description": "Shared state management between React Native and Native apps",
18
18
  "main": "lib/commonjs/index",
@@ -69,9 +69,7 @@
69
69
  "react-native": "*"
70
70
  },
71
71
  "dependencies": {
72
- "@callstack/brownfield-cli": "^1.0.2",
73
- "quicktype-core": "^23.2.6",
74
- "quicktype-typescript-input": "^23.2.6",
72
+ "@callstack/brownfield-cli": "workspace:^",
75
73
  "ts-morph": "^27.0.2"
76
74
  },
77
75
  "devDependencies": {
@@ -87,7 +85,6 @@
87
85
  "globals": "^16.2.0",
88
86
  "import": "^0.0.6",
89
87
  "nodemon": "^3.1.11",
90
- "react": "19.1.1",
91
88
  "react-native": "0.82.1",
92
89
  "react-native-builder-bob": "^0.40.17",
93
90
  "typescript": "5.9.3"
@@ -103,4 +100,4 @@
103
100
  "engines": {
104
101
  "node": ">=20"
105
102
  }
106
- }
103
+ }
package/CHANGELOG.md DELETED
@@ -1,19 +0,0 @@
1
- # @callstack/brownie
2
-
3
- ## 0.0.3
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [[`2a8563f`](https://github.com/callstack/react-native-brownfield/commit/2a8563f65ed152054ad1290caf963791a368ee9a)]:
8
- - @callstack/brownfield-cli@1.0.2
9
-
10
- ## 0.0.2
11
-
12
- ### Patch Changes
13
-
14
- - [#197](https://github.com/callstack/react-native-brownfield/pull/197) [`af95d9c`](https://github.com/callstack/react-native-brownfield/commit/af95d9ce3b380f4bd4cc554de31fa4acff030515) Thanks [@okwasniewski](https://github.com/okwasniewski)! - fix: add cpp dir to published files
15
-
16
- - [#198](https://github.com/callstack/react-native-brownfield/pull/198) [`c8c903d`](https://github.com/callstack/react-native-brownfield/commit/c8c903d0d2b78a8c06a41213dfbe781a2daf3d25) Thanks [@artus9033](https://github.com/artus9033)! - docs: added README files to all packages
17
-
18
- - Updated dependencies [[`c8c903d`](https://github.com/callstack/react-native-brownfield/commit/c8c903d0d2b78a8c06a41213dfbe781a2daf3d25)]:
19
- - @callstack/brownfield-cli@1.0.1