Skip to content

Conversation

@bharat
Copy link

@bharat bharat commented Mar 29, 2017

Using two forks temporarily.

Using bharat/SwiftCharts because we need the extension safe commits from
master, but don't want the rest of the master branch yet.

Using bharat/LoopKit because we want the warning fixes from
LoopKit/LoopKit#111 which is not yet merged into
LoopKit/dev

Using two forks temporarily.

Using bharat/SwiftCharts because we need the extension safe commits from
master, but don't want the rest of the master branch yet.

Using bharat/LoopKit because we want the warning fixes from
LoopKit/LoopKit#111 which is not yet merged into
LoopKit/dev
@bharat
Copy link
Author

bharat commented Mar 29, 2017

new-overlords-i-for-one-welcome-our-new-swift-31-overlords

@ps2
Copy link
Collaborator

ps2 commented Mar 29, 2017

I kicked the build, and I think it passed? But it's not showing up as passing here yet for some reason.

return [
"## ShareClientManager",
"latestBackfill: \(latestBackfill)",
"latestBackfill: \(latestBackfill.debugDescription)",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's preferable to call String(reflecting: x) vs calling .debugDescription directly because that works with any instances, including those cases when the runtime will synthesize the string representation for you.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will fix everywhere.

@ps2
Copy link
Collaborator

ps2 commented Mar 29, 2017

The frameworks in here need to be built from a LoopKit release tag.

Bharat Mediratta added 4 commits March 29, 2017 10:41
1. Change all explicit calls to .debugDescription over to
   String(describing:). This preserves existing behavior which was
   happening implicitly before swift 3.1

2. Use CGFloat.pi instead of CGFloat(Double.pi), and fix an issue where
   I accidentally negated one of the values in an earlier commit
Fix Swift 3.1 warnings from G4ShareSpy, ShareClient
@bharat
Copy link
Author

bharat commented Mar 29, 2017

@ps2 when you say the frameworks in here need to be built from a LoopKit release tag I assume that you mean that the Cartfile should contain a line like this:

github "LoopKit/LoopKit" ~> 1.2.0

happy to do that, but I wasn't sure which release tag for LoopKit would cover this commit:
LoopKit/LoopKit@b480b45

not sure how carthage grabs those version numbers and I don't see a commit in LoopKit/dev that bumps the version up. can you advise?

@bharat
Copy link
Author

bharat commented Mar 29, 2017

Ok - at this point I'm assuming that this is blocked on LoopKit/LoopKit#110 - once that's in master, then I can update the Cartfile to point to LoopKit 1.2.1 and we should be good to go. yes?

also, unclear to me why Travis is failing - all tests run clean in my repo.

@ps2
Copy link
Collaborator

ps2 commented Mar 29, 2017

The LoopKit warnings are not preventing a carthage build, right? We can merge this for people to run with Xcode 8.3, even still pointing to the LoopKit with warnings.

@bharat
Copy link
Author

bharat commented Mar 29, 2017

I think so, but let me verify by going back to LoopKit 1.2.0 and see.

@bharat
Copy link
Author

bharat commented Mar 29, 2017

seems to be fine.

@bharat
Copy link
Author

bharat commented Mar 29, 2017

I take it back - that won't compile because I've already updated the various APIs to track what's in LoopKit/dev. Reverted the revert - this PR is now pegged to LoopKit/dev again.

@ps2
Copy link
Collaborator

ps2 commented Mar 30, 2017

For the sake of keeping things organized, and more easily revertible, please split this into at least two PRs; one for purpose of updating Loop to Swift 3.1, which includes fixing the warnings, and recompiling frameworks, without updating those frameworks. Updates to external frameworks, and in particular, those that bring in new functionality, like the LoopKit v1.2.1 change, should be done separately.

@bharat
Copy link
Author

bharat commented Mar 30, 2017

ok - so to be clear - you want:

  1. one PR that doesn't change the Cartfile but compiles with swift 3.1
  2. one PR that updates the Cartfile (LoopKit 1.2.1,dexcom-share-client-swift 0.2.1, G4ShareSpy 0.3.2)

is that right? happy to oblige.

@ps2
Copy link
Collaborator

ps2 commented Mar 30, 2017

Since LoopKit 1.2.1 has functionality changes in it, and requires functional changes in Loop, that seems like it should be its own thing too. Are dexcom-share-client-swift 0.2.1, G4ShareSpy 0.3.2 just swift updates? They can maybe be postponed until we need them.

@bharat
Copy link
Author

bharat commented Mar 30, 2017

The updates in G4ShareSpy and dexcom-share-client-swift are relatively minor compatibility changes - no API changes. I'll roll up a separate PR for those two - should be fine to do them together.

@bharat
Copy link
Author

bharat commented Mar 30, 2017

ok, here's what we have now:

  1. Swift 3.1 - rebuild all frameworks, clean up all swift warnings #421 - rebuild all frameworks with swift 3.1 and clean up warnings including moving off of using some deprecated APIs
  2. Swift 3.1 - update dexcom-share-client-swift and G4ShareSpy frameworks #422 - update dexcom-share-client-swift and G4ShareSpy frameworks to new swift 3.1 clean versions
  3. Swift 3.1 - update LoopKit to 1.2.1 #423 - update LoopKit to v1.2.1

I believe I've accounted for everything - but wouldn't be surprised if I missed something in there. Will close this PR as those three supercede it.

@bharat bharat closed this Mar 30, 2017
@bharat bharat deleted the dev-frameworks-swift3.1 branch April 1, 2017 17:02
ps2 pushed a commit that referenced this pull request Jul 15, 2021
* LOOP-3646: Alert when CA or Notification permissions disabled

* Add persistence so we only notify once

* PR Feedback

* Split Notifications and Critical Alerts Permissions Alerts

* More splitting, added Feature Flags
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