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

library: migrate public/feature layer of iOS library to Swift #188

Merged
merged 23 commits into from
Jul 8, 2019

Conversation

goaway
Copy link
Contributor

@goaway goaway commented Jun 26, 2019

Co-authored-by: Keith Smiley [email protected]
Signed-off-by: Mike Schore [email protected]

Description: We've decided to implement our public and platform-specific library layer primarily in Swift on iOS. Migrating to this has some repercussions for the build and for the time-being will require custom Bazel rules to compose the distributable static framework. This PR migrates the code to swift and introduces the build rules required. Note: this PR breaks objective-c. This is known and an issue has been filed #230.
Risk Level: Medium - moves pieces of the library to swift, and introduces new build rules.
Testing: CI

@goaway
Copy link
Contributor Author

goaway commented Jun 26, 2019

fixes #189

library/swift/Envoy.swift Outdated Show resolved Hide resolved
bazel/swift_static_framework.bzl Show resolved Hide resolved
@goaway
Copy link
Contributor Author

goaway commented Jul 1, 2019

rebased

Signed-off-by: Mike Schore <[email protected]>
goaway and others added 7 commits July 2, 2019 14:33
Signed-off-by: Mike Schore <[email protected]>
Signed-off-by: Mike Schore <[email protected]>
Signed-off-by: Mike Schore <[email protected]>
This handles the variables necessary to run the bazel wrappers that have
required env vars.

Signed-off-by: Keith Smiley <[email protected]>
Signed-off-by: Mike Schore <[email protected]>
@goaway goaway changed the title [wip] library: migrate public/feature layer of iOS library to Swift library: migrate public/feature layer of iOS library to Swift Jul 3, 2019
keith
keith previously approved these changes Jul 3, 2019
bazel/swift_static_framework.bzl Outdated Show resolved Hide resolved
bazel/swift_static_framework.bzl Show resolved Hide resolved
bazel/swift_static_framework.bzl Outdated Show resolved Hide resolved
Signed-off-by: Mike Schore <[email protected]>
Signed-off-by: Mike Schore <[email protected]>
@goaway
Copy link
Contributor Author

goaway commented Jul 3, 2019

This PR breaks the Objective-C example app, but per discussion in our Slack channel, we've decided to move forward. Will open and link tracking issue to fix.

goaway added 3 commits July 4, 2019 15:42
Signed-off-by: Mike Schore <[email protected]>
Signed-off-by: Mike Schore <[email protected]>
Signed-off-by: Mike Schore <[email protected]>
goaway and others added 3 commits July 5, 2019 11:48
Signed-off-by: Mike Schore <[email protected]>
Signed-off-by: Jose Nino <[email protected]>
Jose Nino added 2 commits July 8, 2019 10:42
Signed-off-by: Jose Nino <[email protected]>
@junr03
Copy link
Member

junr03 commented Jul 8, 2019

@keith @rebello95 I updated this PR to fix build errors, and documented the fact that this will break obj-c for the time being.

@goaway wanted to get this merged to unblock progress.

@junr03 junr03 merged commit 5e7e89b into master Jul 8, 2019
@junr03 junr03 deleted the ms/swift-lib branch July 8, 2019 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants