Skip to content

Commit

Permalink
chore: new releases will happen via SPM
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofzablocki committed Feb 13, 2021
1 parent 6a9fbab commit 8b4eb65
Show file tree
Hide file tree
Showing 6 changed files with 1,566 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

## Build generated
build/
bin/Sourcery.app
bin/sourcery
DerivedData/

## Various settings
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
- `Self` reference is resolved to correct type. [Enchancement Request](https://github.com/krzysztofzablocki/Sourcery/issues/900)
- Sourcery will now attempt to resolve local type names across modules when it can be done without ambiguity. Previously we only supported fully qualified names. [Enchancement Request](https://github.com/krzysztofzablocki/Sourcery/issues/899)

## Internal Changes
- Sourcery is now always distributed via SPM, this creates much nicer diffs when using CocoaPods distribution.

## 1.1.1

- Updates StencilSwiftKit to 2.8.0
Expand Down
33 changes: 30 additions & 3 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@
"version": "0.9.1"
}
},
{
"package": "Komondor",
"repositoryURL": "https://github.com/shibapm/Komondor.git",
"state": {
"branch": null,
"revision": "855c74f395a4dc9e02828f58d931be6920bcbf6f",
"version": "1.0.6"
}
},
{
"package": "Nimble",
"repositoryURL": "https://github.com/Quick/Nimble.git",
Expand All @@ -37,6 +46,15 @@
"version": "8.0.2"
}
},
{
"package": "PackageConfig",
"repositoryURL": "https://github.com/shibapm/PackageConfig.git",
"state": {
"branch": null,
"revision": "bf90dc69fa0792894b08a0b74cf34029694ae486",
"version": "0.13.0"
}
},
{
"package": "PathKit",
"repositoryURL": "https://github.com/kylef/PathKit.git",
Expand All @@ -55,6 +73,15 @@
"version": "2.1.0"
}
},
{
"package": "ShellOut",
"repositoryURL": "https://github.com/JohnSundell/ShellOut.git",
"state": {
"branch": null,
"revision": "e1577acf2b6e90086d01a6d5e2b8efdaae033568",
"version": "2.3.0"
}
},
{
"package": "SourceKitten",
"repositoryURL": "https://github.com/jpsim/SourceKitten.git",
Expand Down Expand Up @@ -86,9 +113,9 @@
"package": "StencilSwiftKit",
"repositoryURL": "https://github.com/SwiftGen/StencilSwiftKit.git",
"state": {
"branch": "stable",
"revision": "49b703b3c87ddd69647c42789dd3bc7fb7f40ac4",
"version": null
"branch": null,
"revision": "54cbedcdbb4334e03930adcff7343ffaf317bf0f",
"version": "2.8.0"
}
},
{
Expand Down
10 changes: 5 additions & 5 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@ end

task :build do
print_info "Building project"
xcrun %Q(xcodebuild -workspace Sourcery.xcworkspace -scheme Sourcery-Release -sdk macosx -derivedDataPath #{BUILD_DIR}tmp/)
sh %Q(rm -fr bin/Sourcery.app)
`mv #{BUILD_DIR}tmp/Build/Products/Release/Sourcery.app bin/`
sh %Q(rm -fr #{BUILD_DIR}tmp/)
xcrun %Q(swift build -c release --disable-sandbox --build-path #{BUILD_DIR})
sh %Q(rm -fr bin/sourcery)
`mv #{BUILD_DIR}release/sourcery bin/`
sh %Q(rm -fr #{BUILD_DIR})
end

## [ Code Generated ] ################################################

task :run_sourcery do
print_info "Generating internal boilerplate code"
sh "bin/sourcery --sources './Sources/' --templates './Sourcery/Templates/' --output './SourceryRuntime/Sources/'"
sh "bin/sourcery"
end

desc "Update internal boilerplate code"
Expand Down
Loading

0 comments on commit 8b4eb65

Please sign in to comment.