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

4.0 release, memory leaks fixes #158

Merged
merged 3 commits into from
Oct 20, 2017
Merged

Conversation

Kacper20
Copy link
Contributor

@Kacper20 Kacper20 commented Oct 18, 2017

Fixes #156 , final preparation for official 4.0 release

@Kacper20 Kacper20 requested a review from Cierpliwy October 18, 2017 10:36
return self.centralManager.retrieveConnectedPeripherals(withServices: serviceUUIDs)
let observable = Observable<[Peripheral]>.deferred { [weak self] in
guard let strongSelf = self else { throw BluetoothError.destroyed }
return strongSelf.centralManager.retrieveConnectedPeripherals(withServices: serviceUUIDs)
.map { (peripheralTable: [RxPeripheralType]) ->
Copy link
Contributor

Choose a reason for hiding this comment

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

strongSelf will be locked during retrieveConnectedPeripherals ??

.map { (peripheralTable: [RxPeripheralType]) ->
[Peripheral] in peripheralTable.map {
Peripheral(manager: self, peripheral: $0)
Peripheral(manager: strongSelf, peripheral: $0)
Copy link
Contributor

Choose a reason for hiding this comment

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

Same story here

@@ -20,5 +20,5 @@ Pod::Spec.new do |s|

s.source_files = 'Source/*.swift'
s.frameworks = 'CoreBluetooth'
s.dependency 'RxSwift', '4.0.0-rc.0'
s.dependency 'RxSwift', '4.0.0'

Choose a reason for hiding this comment

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

It seems like you'd much rather have a dependency like s.dependency 'RxSwift', '~> 4.0', instead of a hard dependency on 4.0.0.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's right, thank you!

@Kacper20 Kacper20 merged commit 6888ca4 into Polidea:swift4 Oct 20, 2017
@Kacper20 Kacper20 mentioned this pull request Oct 20, 2017
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