Skip to content

Commit

Permalink
Create directory structure for SwiftGen and Swift2ObjC (#1121)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamappelbe committed May 6, 2024
1 parent b2b0e32 commit 8ec4f77
Show file tree
Hide file tree
Showing 7 changed files with 66 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ building and bundling.
| [objective_c](pkgs/objective_c/) | A library to access Objective C from Flutter that acts as a support library for package:ffigen. | [![pub package](https://img.shields.io/pub/v/objective_c.svg)](https://pub.dev/packages/objective_c) |
| [jni](pkgs/jni/) | A library to access JNI from Dart and Flutter that acts as a support library for `package:jnigen`. | [![pub package](https://img.shields.io/pub/v/jni.svg)](https://pub.dev/packages/jni) |
| [jnigen](pkgs/jnigen/) | A Dart bindings generator for Java and Kotlin that uses JNI under the hood to interop with Java virtual machine. | [![pub package](https://img.shields.io/pub/v/jnigen.svg)](https://pub.dev/packages/jnigen) |
| [swiftgen](pkgs/swiftgen/) | A Dart bindings generator for Swift. | [![pub package](https://img.shields.io/pub/v/swiftgen.svg)](https://pub.dev/packages/swiftgen) |
| [native_assets_builder](pkgs/native_assets_builder/) | This package is the backend that invokes build hooks. | [![pub package](https://img.shields.io/pub/v/native_assets_builder.svg)](https://pub.dev/packages/native_assets_builder) |
| [native_assets_cli](pkgs/native_assets_cli/) | A library that contains the argument and file formats for implementing a native assets CLI. | [![pub package](https://img.shields.io/pub/v/native_assets_cli.svg)](https://pub.dev/packages/native_assets_cli) |
| [native_toolchain_c](pkgs/native_toolchain_c/) | A library to invoke the native C compiler installed on the host machine. | [![pub package](https://img.shields.io/pub/v/native_toolchain_c.svg)](https://pub.dev/packages/native_toolchain_c) |
Expand Down
1 change: 1 addition & 0 deletions pkgs/swiftgen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## 0.0.1-wip
27 changes: 27 additions & 0 deletions pkgs/swiftgen/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
Copyright 2024, the Dart project authors.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of Google LLC nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4 changes: 4 additions & 0 deletions pkgs/swiftgen/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Swiftgen

An experimental tool for generating bindings that allow interop between Dart and
Swift code.
28 changes: 28 additions & 0 deletions pkgs/swiftgen/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
# 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.

name: swiftgen
description: "A tool for generating bindings that allow interop between Dart and Swift code."
version: 0.0.1-wip
repository: https://github.com/dart-lang/native/tree/main/pkgs/swiftgen

topics:
- interop
- ffi
- swift
- codegen

environment:
sdk: '>=3.3.0 <4.0.0'

dependencies:
ffi: ^2.1.0

dev_dependencies:
ffigen: ^11.0.0
test: ^1.21.1

dependency_overrides:
ffigen:
path: ../ffigen/
1 change: 1 addition & 0 deletions pkgs/swiftgen/swift2objc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## 0.0.1-wip
4 changes: 4 additions & 0 deletions pkgs/swiftgen/swift2objc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Swift2ObjC

An experimental tool for generating bindings that allow interop between ObjC and
Swift code.

0 comments on commit 8ec4f77

Please sign in to comment.