-
-
Notifications
You must be signed in to change notification settings - Fork 14
Create project structure #1
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| name: Feature request | ||
| about: Suggest an idea for this project | ||
| title: '' | ||
| labels: enhancement | ||
| assignees: '' | ||
|
|
||
| --- | ||
|
|
||
| **Goals** | ||
| What do you want this feature to accomplish? What are the effects of your change? | ||
|
|
||
| **Non-Goals** | ||
| What aren’t you trying to accomplish? What are the boundaries of the proposed work? | ||
|
|
||
| **Investigations** | ||
| What other solutions (if any) did you investigate? Why didn’t you choose them? | ||
|
|
||
| **Design** | ||
| What are you proposing? What are the details of your chosen design? Include an API overview, technical details, and (potentially) some example headers, along with anything else you think will be useful. This is where you sell the design to yourself and project maintainers. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| # TODO: Uncomment pod-lint once we bump Cococapods. | ||
| # We need a release with https://github.com/CocoaPods/CocoaPods/pull/11660 | ||
| # pod-lint: | ||
| # name: Pod Lint | ||
| # runs-on: macOS-12 | ||
| # steps: | ||
| # - uses: actions/setup-ruby@v1 | ||
| # with: | ||
| # ruby-version: '2.7.6' | ||
| # - name: Checkout Repo | ||
| # uses: actions/checkout@v3 | ||
| # - name: Bundle Install | ||
| # run: bundle install | ||
| # - name: Select Xcode Version | ||
| # run: sudo xcode-select --switch /Applications/Xcode_14.1.0.app/Contents/Developer | ||
| # - name: Lint Podspec | ||
| # run: bundle exec pod lib lint --verbose --fail-fast --swift-version=5.7 | ||
| spm-14: | ||
| name: Build Xcode 14 | ||
| runs-on: macOS-12 | ||
| strategy: | ||
| matrix: | ||
| platforms: [ | ||
| 'iOS_16,watchOS_9', | ||
| 'macOS_13,tvOS_16', | ||
| ] | ||
| fail-fast: false | ||
| steps: | ||
| - uses: actions/setup-ruby@v1 | ||
| with: | ||
| ruby-version: '2.7.6' | ||
| - name: Checkout Repo | ||
| uses: actions/checkout@v3 | ||
| - name: Bundle Install | ||
| run: bundle install | ||
| - name: Select Xcode Version | ||
| run: sudo xcode-select --switch /Applications/Xcode_14.1.0.app/Contents/Developer | ||
| - name: Build and Test Framework | ||
| run: Scripts/build.swift ${{ matrix.platforms }} | ||
| - name: Prepare Coverage Reports | ||
| run: ./Scripts/prepare-coverage-reports.sh | ||
| - name: Upload Coverage Reports | ||
| if: success() | ||
| uses: codecov/codecov-action@v3 | ||
| spm-14-swift: | ||
| name: Swift Build Xcode 14 | ||
| runs-on: macOS-12 | ||
| steps: | ||
| - uses: actions/setup-ruby@v1 | ||
| with: | ||
| ruby-version: '2.7.6' | ||
| - name: Checkout Repo | ||
| uses: actions/checkout@v3 | ||
| - name: Bundle Install | ||
| run: bundle install | ||
| - name: Select Xcode Version | ||
| run: sudo xcode-select --switch /Applications/Xcode_14.1.0.app/Contents/Developer | ||
| - name: Build and Test Framework | ||
| run: xcrun swift test -c release -Xswiftc -enable-testing | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,90 +1,5 @@ | ||
| # Xcode | ||
| # | ||
| # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | ||
|
|
||
| ## User settings | ||
| .DS_Store | ||
| xcuserdata/ | ||
|
|
||
| ## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) | ||
| *.xcscmblueprint | ||
| *.xccheckout | ||
|
|
||
| ## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) | ||
| build/ | ||
| DerivedData/ | ||
| *.moved-aside | ||
| *.pbxuser | ||
| !default.pbxuser | ||
| *.mode1v3 | ||
| !default.mode1v3 | ||
| *.mode2v3 | ||
| !default.mode2v3 | ||
| *.perspectivev3 | ||
| !default.perspectivev3 | ||
|
|
||
| ## Obj-C/Swift specific | ||
| *.hmap | ||
|
|
||
| ## App packaging | ||
| *.ipa | ||
| *.dSYM.zip | ||
| *.dSYM | ||
|
|
||
| ## Playgrounds | ||
| timeline.xctimeline | ||
| playground.xcworkspace | ||
|
|
||
| # Swift Package Manager | ||
| # | ||
| # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. | ||
| # Packages/ | ||
| # Package.pins | ||
| # Package.resolved | ||
| # *.xcodeproj | ||
| # | ||
| # Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata | ||
| # hence it is not needed unless you have added a package configuration file to your project | ||
| # .swiftpm | ||
|
|
||
| .swiftpm | ||
| .build/ | ||
|
|
||
| # CocoaPods | ||
| # | ||
| # We recommend against adding the Pods directory to your .gitignore. However | ||
| # you should judge for yourself, the pros and cons are mentioned at: | ||
| # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control | ||
| # | ||
| # Pods/ | ||
| # | ||
| # Add this line if you want to avoid checking in source code from the Xcode workspace | ||
| # *.xcworkspace | ||
|
|
||
| # Carthage | ||
| # | ||
| # Add this line if you want to avoid checking in source code from Carthage dependencies. | ||
| # Carthage/Checkouts | ||
|
|
||
| Carthage/Build/ | ||
|
|
||
| # Accio dependency management | ||
| Dependencies/ | ||
| .accio/ | ||
|
|
||
| # fastlane | ||
| # | ||
| # It is recommended to not store the screenshots in the git repo. | ||
| # Instead, use fastlane to re-generate the screenshots whenever they are needed. | ||
| # For more information about the recommended setup visit: | ||
| # https://docs.fastlane.tools/best-practices/source-control/#source-control | ||
|
|
||
| fastlane/report.xml | ||
| fastlane/Preview.html | ||
| fastlane/screenshots/**/*.png | ||
| fastlane/test_output | ||
|
|
||
| # Code Injection | ||
| # | ||
| # After new code Injection tools there's a generated folder /iOSInjectionProject | ||
| # https://github.com/johnno1962/injectionforxcode | ||
|
|
||
| iOSInjectionProject/ | ||
| generated/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 2.7.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| Pod::Spec.new do |s| | ||
| s.name = 'AsyncQueue' | ||
| s.version = '0.0.1' | ||
| s.license = 'MIT' | ||
| s.summary = 'A queue that enables ordered sending of events from synchronous to asynchronous code.' | ||
| s.homepage = 'https://github.com/dfed/swift-async-queue' | ||
| s.authors = 'Dan Federman' | ||
| s.source = { :git => 'https://github.com/dfed/swift-async-queue.git', :tag => s.version } | ||
| s.swift_version = '5.7' | ||
| s.source_files = 'Sources/**/*.{swift}' | ||
| s.ios.deployment_target = '13.0' | ||
| s.tvos.deployment_target = '13.0' | ||
| s.watchos.deployment_target = '6.0' | ||
| s.macos.deployment_target = '10.15' | ||
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| ### One issue or bug per Pull Request | ||
|
|
||
| Keep your Pull Requests small. Small PRs are easier to reason about which makes them significantly more likely to get merged. | ||
|
|
||
| ### Issues before features | ||
|
|
||
| If you want to add a feature, please file an [Issue](../../issues) first. An Issue gives us the opportunity to discuss the requirements and implications of a feature with you before you start writing code. | ||
|
|
||
| ### Backwards compatibility | ||
|
|
||
| Respect the minimum deployment target. If you are adding code that uses new APIs, make sure to prevent older clients from crashing or misbehaving. Our CI runs against our minimum deployment targets, so you will not get a green build unless your code is backwards compatible. | ||
|
|
||
| ### Forwards compatibility | ||
|
|
||
| Please do not write new code using deprecated APIs. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| ruby '2.7.6' | ||
|
|
||
| source 'https://rubygems.org' | ||
|
|
||
| gem 'cocoapods', '~> 1.11.0' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| GEM | ||
| remote: https://rubygems.org/ | ||
| specs: | ||
| CFPropertyList (3.0.5) | ||
| rexml | ||
| activesupport (6.1.6.1) | ||
| concurrent-ruby (~> 1.0, >= 1.0.2) | ||
| i18n (>= 1.6, < 2) | ||
| minitest (>= 5.1) | ||
| tzinfo (~> 2.0) | ||
| zeitwerk (~> 2.3) | ||
| addressable (2.8.1) | ||
| public_suffix (>= 2.0.2, < 6.0) | ||
| algoliasearch (1.27.5) | ||
| httpclient (~> 2.8, >= 2.8.3) | ||
| json (>= 1.5.1) | ||
| atomos (0.1.3) | ||
| claide (1.1.0) | ||
| cocoapods (1.11.3) | ||
| addressable (~> 2.8) | ||
| claide (>= 1.0.2, < 2.0) | ||
| cocoapods-core (= 1.11.3) | ||
| cocoapods-deintegrate (>= 1.0.3, < 2.0) | ||
| cocoapods-downloader (>= 1.4.0, < 2.0) | ||
| cocoapods-plugins (>= 1.0.0, < 2.0) | ||
| cocoapods-search (>= 1.0.0, < 2.0) | ||
| cocoapods-trunk (>= 1.4.0, < 2.0) | ||
| cocoapods-try (>= 1.1.0, < 2.0) | ||
| colored2 (~> 3.1) | ||
| escape (~> 0.0.4) | ||
| fourflusher (>= 2.3.0, < 3.0) | ||
| gh_inspector (~> 1.0) | ||
| molinillo (~> 0.8.0) | ||
| nap (~> 1.0) | ||
| ruby-macho (>= 1.0, < 3.0) | ||
| xcodeproj (>= 1.21.0, < 2.0) | ||
| cocoapods-core (1.11.3) | ||
| activesupport (>= 5.0, < 7) | ||
| addressable (~> 2.8) | ||
| algoliasearch (~> 1.0) | ||
| concurrent-ruby (~> 1.1) | ||
| fuzzy_match (~> 2.0.4) | ||
| nap (~> 1.0) | ||
| netrc (~> 0.11) | ||
| public_suffix (~> 4.0) | ||
| typhoeus (~> 1.0) | ||
| cocoapods-deintegrate (1.0.5) | ||
| cocoapods-downloader (1.6.3) | ||
| cocoapods-plugins (1.0.0) | ||
| nap | ||
| cocoapods-search (1.0.1) | ||
| cocoapods-trunk (1.6.0) | ||
| nap (>= 0.8, < 2.0) | ||
| netrc (~> 0.11) | ||
| cocoapods-try (1.2.0) | ||
| colored2 (3.1.2) | ||
| concurrent-ruby (1.1.10) | ||
| escape (0.0.4) | ||
| ethon (0.15.0) | ||
| ffi (>= 1.15.0) | ||
| ffi (1.15.5) | ||
| fourflusher (2.3.1) | ||
| fuzzy_match (2.0.4) | ||
| gh_inspector (1.1.3) | ||
| httpclient (2.8.3) | ||
| i18n (1.12.0) | ||
| concurrent-ruby (~> 1.0) | ||
| json (2.6.2) | ||
| minitest (5.16.3) | ||
| molinillo (0.8.0) | ||
| nanaimo (0.3.0) | ||
| nap (1.1.0) | ||
| netrc (0.11.0) | ||
| public_suffix (4.0.7) | ||
| rexml (3.2.5) | ||
| ruby-macho (2.5.1) | ||
| typhoeus (1.4.0) | ||
| ethon (>= 0.9.0) | ||
| tzinfo (2.0.5) | ||
| concurrent-ruby (~> 1.0) | ||
| xcodeproj (1.22.0) | ||
| CFPropertyList (>= 2.3.3, < 4.0) | ||
| atomos (~> 0.1.3) | ||
| claide (>= 1.0.2, < 2.0) | ||
| colored2 (~> 3.1) | ||
| nanaimo (~> 0.3.0) | ||
| rexml (~> 3.2.4) | ||
| zeitwerk (2.6.0) | ||
|
|
||
| PLATFORMS | ||
| ruby | ||
|
|
||
| DEPENDENCIES | ||
| cocoapods (~> 1.11.0) | ||
|
|
||
| RUBY VERSION | ||
| ruby 2.7.6p219 | ||
|
|
||
| BUNDLED WITH | ||
| 2.3.15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // swift-tools-version: 5.7 | ||
| // The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
|
||
| import PackageDescription | ||
|
|
||
| let package = Package( | ||
| name: "swift-async-queue", | ||
| platforms: [ | ||
| .macOS(.v10_15), | ||
| .iOS(.v13), | ||
| .tvOS(.v13), | ||
| .watchOS(.v6), | ||
|
Comment on lines
+9
to
+12
Owner
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're only running CI on the latest supported versions right now. I don't want to support Xcode versions prior to 14.1. |
||
| ], | ||
| products: [ | ||
| .library( | ||
| name: "AsyncQueue", | ||
| targets: ["AsyncQueue"]), | ||
| ], | ||
| targets: [ | ||
| .target( | ||
| name: "AsyncQueue", | ||
| dependencies: []), | ||
| .testTarget( | ||
| name: "AsyncQueueTests", | ||
| dependencies: ["AsyncQueue"]), | ||
| ] | ||
| ) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,42 @@ | ||
| # swift-async-queue | ||
| A queue that enables ordered sending of events from synchronous to asynchronous code | ||
|
|
||
| ## Requirements | ||
|
|
||
| * Xcode 14.1 or later. | ||
| * iOS 13 or later. | ||
| * tvOS 13 or later. | ||
| * watchOS 6 or later. | ||
| * macOS 10.15 or later. | ||
| * Swift 5.7 or later. | ||
|
|
||
| ## Installation | ||
|
|
||
| ### Swift Package Manager | ||
|
|
||
| To install swift-async-queue in your iOS project with [Swift Package Manager](https://github.com/apple/swift-package-manager), the following lines can be added to your `Package.swift` file: | ||
|
|
||
| ```swift | ||
| dependencies: [ | ||
| .package(url: "https://github.com/dfed/swift-async-queue", from: "0.0.1"), | ||
| ] | ||
| ``` | ||
|
|
||
| ### CocoaPods | ||
|
|
||
| To install swift-async-queue in your iOS project with [CocoaPods](http://cocoapods.org), add the following to your `Podfile`: | ||
|
|
||
| ``` | ||
| platform :ios, '13.0' | ||
| pod 'AsyncQueue', '~> 0.1' | ||
| ``` | ||
|
|
||
| ## Contributing | ||
|
|
||
| I’m glad you’re interested in swift-async-queue, and I’d love to see where you take it. Please read the [contributing guidelines](Contributing.md) prior to submitting a Pull Request. | ||
|
|
||
| Thanks, and happy queueing! | ||
|
|
||
| ## Developing | ||
|
|
||
| Double-click on `Package.swift` in the root of the repository to open the project in Xcode. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm surprised we're not yet getting any code coverage posts just yet, but we also have nearly zero code in the repo. I may put in a pin in this and hope it gets fixed by adding code or running this code on
main. I'll fix this if either of the prior do not work.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's working! #2 (comment)