@callstack/brownie 0.0.5 → 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.
|
@@ -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
|
+
"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": "
|
|
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,35 +0,0 @@
|
|
|
1
|
-
# @callstack/brownie
|
|
2
|
-
|
|
3
|
-
## 0.0.5
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [#216](https://github.com/callstack/react-native-brownfield/pull/216) [`8ce3ea1`](https://github.com/callstack/react-native-brownfield/commit/8ce3ea10e0719adac7396dea8f171753e901b31d) Thanks [@thymikee](https://github.com/thymikee)! - chore: remove release-it
|
|
8
|
-
|
|
9
|
-
- Updated dependencies [[`8ce3ea1`](https://github.com/callstack/react-native-brownfield/commit/8ce3ea10e0719adac7396dea8f171753e901b31d)]:
|
|
10
|
-
- @callstack/brownfield-cli@1.0.4
|
|
11
|
-
|
|
12
|
-
## 0.0.4
|
|
13
|
-
|
|
14
|
-
### Patch Changes
|
|
15
|
-
|
|
16
|
-
- Updated dependencies [[`2347775`](https://github.com/callstack/react-native-brownfield/commit/23477753b16ee189b82c1aee3eac98a56c79f52a)]:
|
|
17
|
-
- @callstack/brownfield-cli@1.0.3
|
|
18
|
-
|
|
19
|
-
## 0.0.3
|
|
20
|
-
|
|
21
|
-
### Patch Changes
|
|
22
|
-
|
|
23
|
-
- Updated dependencies [[`2a8563f`](https://github.com/callstack/react-native-brownfield/commit/2a8563f65ed152054ad1290caf963791a368ee9a)]:
|
|
24
|
-
- @callstack/brownfield-cli@1.0.2
|
|
25
|
-
|
|
26
|
-
## 0.0.2
|
|
27
|
-
|
|
28
|
-
### Patch Changes
|
|
29
|
-
|
|
30
|
-
- [#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
|
|
31
|
-
|
|
32
|
-
- [#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
|
|
33
|
-
|
|
34
|
-
- Updated dependencies [[`c8c903d`](https://github.com/callstack/react-native-brownfield/commit/c8c903d0d2b78a8c06a41213dfbe781a2daf3d25)]:
|
|
35
|
-
- @callstack/brownfield-cli@1.0.1
|