Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Add ffigen schema and refer them in example config yaml using modeline #586

Merged
merged 49 commits into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from 29 commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
e22584d
Add ffigen schema and refer them in example config yaml using modeline
mannprerak2 Jun 3, 2023
04c137b
Add basic Schema Design API
mannprerak2 Jun 17, 2023
a3d5af5
rename
mannprerak2 Jun 17, 2023
3828ef6
Complete basic sample
mannprerak2 Jun 17, 2023
0067874
Fix DynamicMapSceham , add IntegerSchema
mannprerak2 Jun 17, 2023
915d56e
Add EnumSchema
mannprerak2 Jun 17, 2023
a55b859
Handle severe logs for OneOfSchema
mannprerak2 Jun 17, 2023
1b086b0
Add comments & minor fixes
mannprerak2 Jun 18, 2023
9b11a0b
Add default value handling
mannprerak2 Jun 18, 2023
5b20b9f
Add more comments, minor changes
mannprerak2 Jun 18, 2023
b8198ce
nit
mannprerak2 Jun 18, 2023
8fac11b
Add rawValue to SchemaNode
mannprerak2 Jun 18, 2023
1e7071d
Fix transformOrThis not using transformed result type
mannprerak2 Jun 18, 2023
72b9297
Create and use rough schema in config provider
mannprerak2 Jun 18, 2023
dc035eb
TEMP: comment old specs code for analyzer
mannprerak2 Jun 18, 2023
478167f
Fix config
mannprerak2 Jun 18, 2023
b3963ee
Fix function->varArg config
mannprerak2 Jun 18, 2023
0a24556
Remove null from structs->Pack
mannprerak2 Jun 18, 2023
27e2ea8
Generate Json Schema from config, Add test to check its value.
mannprerak2 Jun 18, 2023
06a73a9
Remove most old dead code, add TODOs
mannprerak2 Jun 18, 2023
f948c38
Update config and remove mode unused code
mannprerak2 Jun 18, 2023
82bb1eb
Change indent level for ffigen schema
mannprerak2 Jun 18, 2023
cdf956e
Handle carriage return on windows
mannprerak2 Jun 18, 2023
ffaa507
Handle clrf while reading file in test instead
mannprerak2 Jun 18, 2023
01dc683
Handle TODOs, refactor
mannprerak2 Jun 19, 2023
a3f6d97
Refactor code, move defaultValue to FixMapKeys instead
mannprerak2 Jun 19, 2023
2eb7de2
Remove dead code, add extends dynamic to all Schema types
mannprerak2 Jun 19, 2023
7425ee2
nit
mannprerak2 Jun 19, 2023
bf262db
Add and use customValidation for libraryImports
mannprerak2 Jun 19, 2023
0a60ad2
Update config private constructor
mannprerak2 Jun 22, 2023
e723ec8
nit
mannprerak2 Jun 22, 2023
fca0c1e
Remove dead code, updateDeclarationConfigExtractor
mannprerak2 Jun 22, 2023
b59e03d
Update file package constraints for pub score
mannprerak2 Jun 24, 2023
22ea932
Add unknownProperties flag in FixedMapSchema
mannprerak2 Jun 25, 2023
7643d39
Refactoring
mannprerak2 Jun 25, 2023
23ca8e2
Add tests
mannprerak2 Jun 25, 2023
a524ccb
Update major version and changelog
mannprerak2 Jun 25, 2023
901435d
nit
mannprerak2 Jun 25, 2023
7f47c60
Refactoring 1
mannprerak2 Jun 26, 2023
ac018da
Refactor 2
mannprerak2 Jun 26, 2023
9a2f785
sort directives
mannprerak2 Jun 26, 2023
26e7025
Add more generic type
mannprerak2 Jun 27, 2023
1623bd1
nit
mannprerak2 Jun 27, 2023
b5e0cca
Remove generic parameter from FixedMapEntry since lamdba type is eras…
mannprerak2 Jun 27, 2023
9143c0f
Add comments
mannprerak2 Jun 27, 2023
ea3504b
Change additionalProperties from bool to enum
mannprerak2 Jun 29, 2023
71babc9
Rename Schema -> ConfigSpec everywhere
mannprerak2 Jul 10, 2023
7899e49
Rename ConfigSpecNode -> ConfigValue, minor changes
mannprerak2 Jul 10, 2023
b8728e6
More renaming
mannprerak2 Jul 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions example/c_json/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=../../ffigen.schema.json

output: 'cjson_generated_bindings.dart'
name: 'CJson'
description: 'Holds bindings to cJSON.'
Expand Down
4 changes: 3 additions & 1 deletion example/ffinative/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=../../ffigen.schema.json

name: NativeLibrary
ffi-native:
# asset: 'assetname' # (optional)
Expand All @@ -7,4 +9,4 @@ headers:
entry-points:
- 'headers/example.h'
preamble: |
// ignore_for_file: deprecated_member_use
// ignore_for_file: deprecated_member_use
2 changes: 2 additions & 0 deletions example/libclang-example/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=../../ffigen.schema.json

output: 'generated_bindings.dart'

# This will sort the bindings alphabetically.
Expand Down
2 changes: 2 additions & 0 deletions example/objective_c/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=../../ffigen.schema.json

name: AVFAudio
description: Bindings for AVFAudio.
language: objc
Expand Down
2 changes: 2 additions & 0 deletions example/shared_bindings/ffigen_configs/a.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.

# yaml-language-server: $schema=../../../ffigen.schema.json

name: NativeLibraryA
description: Bindings to `headers/a.h`.
output: '../lib/generated/a_gen.dart'
Expand Down
2 changes: 2 additions & 0 deletions example/shared_bindings/ffigen_configs/a_shared_base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.

# yaml-language-server: $schema=../../../ffigen.schema.json

name: NativeLibraryASharedB
description: Bindings to `headers/a.h` with shared definitions from `headers/base.h`.
output: '../lib/generated/a_shared_b_gen.dart'
Expand Down
2 changes: 2 additions & 0 deletions example/shared_bindings/ffigen_configs/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.

# yaml-language-server: $schema=../../../ffigen.schema.json

name: NativeLibraryBase
description: Bindings to `headers/base.h`.
output:
Expand Down
2 changes: 2 additions & 0 deletions example/simple/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=../../ffigen.schema.json

name: NativeLibrary
description: Bindings to `headers/example.h`.
output: 'generated_bindings.dart'
Expand Down
2 changes: 2 additions & 0 deletions example/swift/config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# yaml-language-server: $schema=../../ffigen.schema.json

name: SwiftLibrary
description: Bindings for swift_api.
language: objc
Expand Down
Loading