Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Swiftgen prototype and example #1367

Draft
wants to merge 44 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
a6d03c7
Move swift2objc to its own pkgs directory
liamappelbe Jul 19, 2024
da9ffdd
infra changes
liamappelbe Jul 19, 2024
8e1d6e9
WIP: swiftgen
liamappelbe Jul 22, 2024
1be29d7
Merge branch 'main' into swiftgen2
liamappelbe Jul 22, 2024
eb2d7de
API update
liamappelbe Jul 23, 2024
594fe46
Merge branch 'main' into swiftgen2
liamappelbe Aug 1, 2024
ed41a08
Update to the new swift2objc API
liamappelbe Aug 1, 2024
52c0722
Add a test to invoke swift API from Dart
liamappelbe Aug 6, 2024
5ce671c
Merge branch 'main' into swiftgen2
liamappelbe Oct 14, 2024
9aabf5b
Update swiftgen
liamappelbe Oct 14, 2024
8740988
Bind AVFoundation
liamappelbe Oct 14, 2024
994aa26
Merge branch 'main' into swiftgen2
liamappelbe Oct 21, 2024
420ef68
Merge branch 'main' into swiftgen2
liamappelbe Nov 18, 2024
0e0c0dd
Merge branch 'main' into swiftgen2
liamappelbe Nov 18, 2024
a31dbc6
Fix the module config command
liamappelbe Nov 18, 2024
bef6811
Prevent hashValue method from being generated
liamappelbe Nov 18, 2024
42b5031
Dedupe methods by ID, and omit obsolete APIs
liamappelbe Nov 18, 2024
b086254
Also dedupe methods by their full name
liamappelbe Nov 18, 2024
dd8efab
wip
liamappelbe Nov 18, 2024
c6dc762
Merge branch 'main' into swiftgen2
liamappelbe Nov 18, 2024
3a28d55
Support globals with explicit getters/setters
liamappelbe Nov 18, 2024
ba91b43
Support failable initializers
liamappelbe Nov 19, 2024
111674e
Merge branch 'main' into swiftgen2
liamappelbe Nov 20, 2024
5dce7e3
Merge cruft
liamappelbe Nov 20, 2024
10f53c3
WIP
liamappelbe Nov 21, 2024
0b76a18
WIP
liamappelbe Nov 21, 2024
5f7d9b5
Handle initializers and clean up
liamappelbe Nov 22, 2024
d8477c0
clean up
liamappelbe Nov 22, 2024
7a23adf
More tests
liamappelbe Nov 22, 2024
f50b367
clean up
liamappelbe Nov 22, 2024
8778acb
Merge branch 'optionals' into swiftgen2
liamappelbe Nov 22, 2024
9d2c9a5
Merge branch 'main' into swiftgen2
liamappelbe Nov 25, 2024
4777c5b
[swift2objc] Support nested declarations
liamappelbe Nov 26, 2024
24d05cb
[swift2objc] Support nested declarations
liamappelbe Nov 26, 2024
5c69aea
Fix analysis and add another test
liamappelbe Nov 26, 2024
5d25277
Merge branch 'nested' into swiftgen2
liamappelbe Nov 26, 2024
1534f60
wip
liamappelbe Nov 26, 2024
bc9969a
Support unlabeled parameters
liamappelbe Nov 27, 2024
1deb83b
wip
liamappelbe Nov 27, 2024
e536420
Merge branch 'main' into swiftgen2
liamappelbe Dec 1, 2024
75eb0f4
got it working
liamappelbe Dec 2, 2024
95177db
Clean up
liamappelbe Dec 3, 2024
d02eb07
Merge branch 'main' into swiftgen2
liamappelbe Dec 4, 2024
73bd69a
Clean up
liamappelbe Dec 4, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import '../../_core/interfaces/objc_annotatable.dart';
/// Describes a built-in Swift type (e.g Int, String, etc).
enum BuiltInDeclaration implements Declaration, ObjCAnnotatable {
swiftNSObject(id: 'c:objc(cs)NSObject', name: 'NSObject'),
swiftURL(id: 's:10Foundation3URLV', name: 'URL'), // HACK
swiftTimeInterval(id: 'c:@T@NSTimeInterval', name: 'TimeInterval'), // HACK
swiftString(id: 's:SS', name: 'String'),
swiftInt(id: 's:Si', name: 'Int'),
swiftFloat(id: 's:Sf', name: 'Float'),
Expand Down
1 change: 1 addition & 0 deletions pkgs/swiftgen/example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
temp/
646 changes: 646 additions & 0 deletions pkgs/swiftgen/example/avf_audio_bindings.dart

Large diffs are not rendered by default.

Loading
Loading