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

MLIBZ-2343: adding Options for Client #264

Merged
merged 3 commits into from Feb 9, 2018

Conversation

heyzooi
Copy link
Contributor

@heyzooi heyzooi commented Feb 6, 2018

Description

Adding Options for Client constructor

Changes

  • Adding optional parameter in an existing constructor

Tests

  • Simple addition, no need for unit test

@heyzooi heyzooi self-assigned this Feb 6, 2018
@codecov-io
Copy link

codecov-io commented Feb 6, 2018

Codecov Report

Merging #264 into develop will increase coverage by 0.07%.
The diff coverage is 86.66%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #264      +/-   ##
===========================================
+ Coverage    87.69%   87.77%   +0.07%     
===========================================
  Files           68       68              
  Lines         8447     8562     +115     
===========================================
+ Hits          7408     7515     +107     
- Misses        1039     1047       +8
Flag Coverage Δ
#Mac 87.18% <86.66%> (+0.08%) ⬆️
#iOS 86.3% <86.66%> (+0.09%) ⬆️
Impacted Files Coverage Δ
Kinvey/Kinvey/Client.swift 75.57% <86.66%> (+0.45%) ⬆️
Kinvey/Kinvey/RealmCache.swift 90.41% <0%> (+0.74%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 86006b9...094d882. Read the comment docs.

validateInitialize(appKey: appKey, appSecret: appSecret)
self.encryptionKey = encryptionKey
self.schemaVersion = schema?.version ?? 0
self.options = options
if let timeout = options?.timeout {
Copy link
Contributor

Choose a reason for hiding this comment

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

If options.timeout is our preferred way to set global timeouts, let's deprecate Client.timeoutInterval.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, let me do this

Copy link
Contributor

@tejasranade tejasranade left a comment

Choose a reason for hiding this comment

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

One improvement, otherwise LGTM.
@heyzooi - make sure all our tests and docs point to this new API definition.

@heyzooi heyzooi merged commit 108a4e8 into develop Feb 9, 2018
@heyzooi heyzooi deleted the feature/MLIBZ-2343-client_options branch February 9, 2018 22:44
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.

None yet

3 participants