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

Commit

Permalink
Initial commit of swift-create-xcframework
Browse files Browse the repository at this point in the history
  • Loading branch information
bok- committed May 14, 2020
0 parents commit 11db67f
Show file tree
Hide file tree
Showing 25 changed files with 1,283 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: 🐛 Bug Report
about: Something isn't working as expected
---

<!--
Thanks for contributing to swift-create-xcframework!
Before you submit your issue, please replace each paragraph
below with the relevant details for your bug, and complete
the steps in the checklist by placing an 'x' in each box:
- [x] I've completed this task
- [ ] This task isn't completed
-->

Replace this paragraph with a short description of the incorrect incorrect behavior. If this is a regression, please note the last version that the behavior was correct in addition to your current version. Please also include any information you have about the environment as this tool is very sensitive to Xcode and SDK versions.

**swift-create-xcframework version:** `0.1.0` or the `master` branch, for example.
**Swift version:** Paste the output of `swift --version` here.
**Environment:** Xcode and macOS versions as appropriate

### Checklist
- [ ] If possible, I've reproduced the issue using the `master` branch of this package
- [ ] I've searched for [existing GitHub issues](https://github.com/unsignedapps/swift-create-xcframework/issues)

### Steps to Reproduce

Replace this paragraph with an explanation of how to reproduce the incorrect behavior. This could include a code listing for a reduced version of your command, or a link to the code that is exhibiting the issue.

### Expected behavior

Describe what you expect to happen.

### Actual behavior

Describe or copy/paste the behavior you observe.
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: 💡 Feature Request
about: A suggestion for a new feature
---

<!--
Thanks for contributing to swift-create-xcframework!
Before you submit your issue, please replace the paragraph
below with information about your proposed feature.
-->

Replace this paragraph with a description of your proposed feature. Code samples that show what's missing, or what new capabilities will be possible, are very helpful! Provide links to existing issues or external references/discussions, if appropriate.
42 changes: 42 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE/NEW.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<!--
Thanks for contributing to swift-create-xcframework!
Before you submit your request, please replace each paragraph
below with the relevant details, and complete the steps in the
checklist by placing an 'x' in each box:
- [x] I've completed this task
- [ ] This task isn't completed
-->

### Description

Replace this paragraph with a description of your changes and rationale. Provide links to an existing issue or external references/discussions, if appropriate.

### Detailed Design

Include any additional information about the design here. At minimum, show any new API:

```swift
/// The new feature implemented by this pull request.
struct NewFeature {}
```

### Documentation Plan

How has the new feature been documented? Have the relevant portions of the guide been updated in addition to symbol-level documentation?

### Test Plan

How is the new feature tested?

### Source Impact

What is the impact of this change on existing users? Does it deprecate or remove any existing API?

### Checklist

- [ ] I've added at least one test that validates that my change is working, if appropriate
- [ ] I've followed the code style of the rest of the project
- [ ] I've read the [Contribution Guidelines](CONTRIBUTING.md)
- [ ] I've updated the documentation if necessary
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
/.build
/.swiftpm
/Packages
/*.xcodeproj
xcuserdata/
51 changes: 51 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Contributor Code of Conduct

As contributors and maintainers of this project, and in the interest of
fostering an open and welcoming community, we pledge to respect all people who
contribute through reporting issues, posting feature requests, updating
documentation, submitting pull requests or patches, and other activities.

We are committed to making participation in this project a harassment-free
experience for everyone, regardless of level of experience, gender, gender
identity and expression, sexual orientation, disability, personal appearance,
body size, race, ethnicity, age, religion, or nationality.

Examples of unacceptable behaviour by participants include:

- The use of sexualised language or imagery
- Personal attacks
- Trolling or insulting/derogatory comments
- Public or private harassment
- Publishing other's private information, such as physical or electronic
addresses, without explicit permission
- Other unethical or unprofessional conduct

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviours that they deem inappropriate,
threatening, offensive, or harmful.

By adopting this Code of Conduct, project maintainers commit themselves to
fairly and consistently applying these principles to every aspect of managing
this project. Project maintainers who do not follow or enforce the Code of
Conduct may be permanently removed from the project team.

This code of conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community.

Instances of abusive, harassing, or otherwise unacceptable behaviour may be
reported by contacting a project maintainer at [[email protected]][email].

All complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. Maintainers are
obligated to maintain confidentiality with regard to the reporter of an
incident.

This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 1.3.0, available at
[http://contributor-covenant.org/version/1/3/0/][version]

[email]: mailto:[email protected]
[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/3/0/
31 changes: 31 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Contributing


**Thank you for coming!**

We welcome everyone to swift-create-xcframework and provide this guide for anyone interested in contributing.


### Report Bugs

Please make sure the bug is not already reported by searching existing [issues].

If you're unable to find an existing issue addressing the problem, [open a new one][new-issue]. Be sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behaviour that is not occurring.


### Suggest an Enhancement

Feel free to contact [@bok_][twitter] on Twitter, or [open a new issue][new-issue].


### Submit a Pull Request

Discuss your idea first, so that your changes have a good chance of being merged in.

Submit your pull request against the `master` branch.

Pull requests that include tests for modified and new functionalities, inline documentation, and relevant updates to the main README.md are merged faster, because you won't have to wait for somebody else to complete your contribution.

[issues]: https://github.com/unsignedapps/swift-create-xcframework/issues
[new-issue]: https://github.com/unsignedapps/swift-create-xcframework/issues/new
[twitter]: http://twitter.com/bok
19 changes: 19 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2020 Unsigned Apps <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
36 changes: 36 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#
# Makefile
# swift-create-xcframework
#
# Created by Rob Amos on 7/5/20.
#

PRODUCT := swift-create-xcframework
INSTALL_DIR := /usr/local/bin

# Override this on the command line if you need to
BUILD_FLAGS :=

.PHONY: build build-release install install-debug

default: build
build: build-debug

# Release Builds

build-release: $(wildcard Sources/*/*.swift)
swift build $(BUILD_FLAGS) --configuration release

install: build-release
cp .build/release/swift-create-xcframework $(INSTALL_DIR)/$(PRODUCT)
touch -c $(INSTALL_DIR)/$(PRODUCT)

# Debug builds

build-debug: $(wildcard Sources/*/*.swift)
swift build $(BUILD_FLAGS) --configuration debug

install-debug: build-debug
cp .build/debug/swift-create-xcframework $(INSTALL_DIR)/$(PRODUCT)
touch -c $(INSTALL_DIR)/$(PRODUCT)

43 changes: 43 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"object": {
"pins": [
{
"package": "swift-argument-parser",
"repositoryURL": "https://github.com/apple/swift-argument-parser.git",
"state": {
"branch": null,
"revision": "9f04d1ff1afbccd02279338a2c91e5f27c45e93a",
"version": "0.0.5"
}
},
{
"package": "llbuild",
"repositoryURL": "https://github.com/apple/swift-llbuild.git",
"state": {
"branch": "swift-5.2-branch",
"revision": "d6dd04202d509f91d61aef89236db0da8f27d356",
"version": null
}
},
{
"package": "SwiftPM",
"repositoryURL": "https://github.com/apple/swift-package-manager.git",
"state": {
"branch": "swift-5.2.3-RELEASE",
"revision": "b38b1cb61325a9d0e287d1ad9ffb5cfae38e7a22",
"version": null
}
},
{
"package": "swift-tools-support-core",
"repositoryURL": "https://github.com/apple/swift-tools-support-core.git",
"state": {
"branch": "swift-5.2-branch",
"revision": "7ecf17a83eab20cbd700d7e45d66c03409bc72d0",
"version": null
}
}
]
},
"version": 1
}
32 changes: 32 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// swift-tools-version:5.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "swift-create-xcframework",

// TODO: Add Linux / Windows support
platforms: [
.macOS(.v10_10),
],

products: [
.executable(name: "swift-create-xcframework", targets: [ "CreateXCFramework" ]),
],

dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser.git", from: "0.0.5"),
.package(name: "SwiftPM", url: "https://github.com/apple/swift-package-manager.git", .revision("swift-5.2.3-RELEASE")),
.package(url: "https://github.com/apple/swift-tools-support-core.git", from: "0.1.3"),
],

targets: [
.target(name: "CreateXCFramework", dependencies: [
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "SwiftPM-auto", package: "SwiftPM"),
.product(name: "SwiftToolsSupport-auto", package: "swift-tools-support-core"),
]),
.testTarget(name: "CreateXCFrameworkTests", dependencies: [ "CreateXCFramework" ]),
]
)
Loading

0 comments on commit 11db67f

Please sign in to comment.