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

fix release folder #11

Merged
merged 33 commits into from
May 30, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a23a62a
support for enviroment variables for other connections
SalehAlbuga Nov 29, 2019
1e44e09
add missing double quotations
SalehAlbuga Nov 29, 2019
9285096
bug fix
SalehAlbuga Nov 29, 2019
a9f1017
test type
SalehAlbuga Nov 29, 2019
8f08f72
add service bus overload
SalehAlbuga Nov 29, 2019
aaa3d75
optionally convert json in string messages to Dictionaries
SalehAlbuga Nov 29, 2019
5e7d71f
change function code error handling
SalehAlbuga Nov 29, 2019
513c6f8
localized error description
SalehAlbuga Nov 29, 2019
6875190
implement RpcException
SalehAlbuga Nov 29, 2019
e9035d9
cast error as NSError
SalehAlbuga Nov 29, 2019
3c95d55
sb string message
SalehAlbuga Nov 30, 2019
fbc1621
testing sb probs
SalehAlbuga Nov 30, 2019
fe39c9c
remove extra log statements
SalehAlbuga Nov 30, 2019
91d443e
Refactor messages results
SalehAlbuga Nov 30, 2019
fee0a64
allow running with unregistered functions in debug
SalehAlbuga Nov 30, 2019
1260321
typo
SalehAlbuga Nov 30, 2019
154110e
typo
SalehAlbuga Nov 30, 2019
b353e77
internal names refactor
SalehAlbuga Nov 30, 2019
c6bd2b0
resolve conflicts
SalehAlbuga Nov 30, 2019
24595aa
fixing access modifier for inputBindings & outputBindings in Context
SalehAlbuga Nov 30, 2019
8c257f9
try stream instead of bytes for Data
SalehAlbuga Nov 30, 2019
db5b78e
fixing binding mapping issue
SalehAlbuga Dec 7, 2019
195a798
auto-generating HttpResponse binding if it does not exist. Defaulting to
SalehAlbuga Dec 7, 2019
1e8a214
Merge branch 'master' into dev
SalehAlbuga Dec 7, 2019
4cd5a19
Blob properties conversion fix
SalehAlbuga Dec 26, 2019
dca4002
Adding Examples
SalehAlbuga Dec 26, 2019
a4ba2b0
Remove package.resolved from samples
SalehAlbuga Dec 26, 2019
cb96304
correct comment typo
SalehAlbuga Dec 26, 2019
2009730
Merge branch 'dev' of https://github.com/SalehAlbuga/azure-functions-…
SalehAlbuga Dec 26, 2019
648a8a9
Merge branch 'master' into dev
SalehAlbuga Dec 26, 2019
6d60a76
http sample syntax
SalehAlbuga Apr 15, 2020
6e5a718
readme typo
SalehAlbuga Apr 15, 2020
bd1a235
fix release folder
SalehAlbuga May 30, 2020
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
2 changes: 1 addition & 1 deletion Examples/http/Sources/http/functions/simpleHttp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class simpleHttp: Function {
let res = HttpResponse()
var name: String?

if let data = request.body, let bodyObj: [String: Any] = try? JSONSerialization.jsonObject(with: data, options: .init(rawValue: 0)) as? [String: Any] {
if let data = request.body, let bodyObj: [String: Any] = try? JSONSerialization.jsonObject(with: data, options: []) as? [String: Any] {
name = bodyObj["name"] as? String
} else {
name = request.query["name"]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ Currently the following are supported by Swift Functions. More bindings will be
| ServiceBusMessage | Service Bus Output Message | out |
| ServiceBusMessage | Service Bus Trigger | in |

The trigger, inputs and output of a Function is set in its constructor. Azure Functions in Swift must inherit the **Function** class from the framework.
Currently, the trigger, inputs and output of a Function are set in its constructor. Azure Functions in Swift must inherit the **Function** class from the framework.

```swift
import AzureFunctions
Expand Down
8 changes: 1 addition & 7 deletions Sources/AzureFunctions/CodeGen.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,7 @@ internal struct CodeGen {
let workerFile = try swiftFolder.createFile(named: "worker.config.json")
try workerFile.write(workerRes)

#if os(Linux)
let releaseFolder = "x86_64-unknown-linux"
#else
let releaseFolder = "x86_64-apple-macosx"
#endif

try File.init(path: "\(sourceDir)/.build/\(releaseFolder)/release/functions").copy(to: swiftFolder)
try File.init(path: "\(sourceDir)/.build/release/functions").copy(to: swiftFolder)


for file in try Folder(path: "\(sourceDir)/Sources/\(projectName)/functions").files {
Expand Down