Skip to content

Commit

Permalink
Updated changelog for 0.4.1 release, updated readme docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nikola-mladenovic committed Oct 31, 2016
1 parent 6875533 commit 3d6a1e3
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,25 @@
All changes to this project will be documented in this file.

#### 0.x Releases
- `0.4.x` Releases - [0.4.0](#040)
- `0.4.x` Releases - [0.4.0](#040) | [0.4.1](#041)
- `0.3.x` Releases - [0.3.0](#030)
- `0.2.x` Releases - [0.2.0](#020)
- `0.1.x` Releases - [0.1.0](#010)
- `0.0.x` Releases - [0.0.1](#001) | [0.0.2](#002) | [0.0.3](#003)

---

## [0.4.1](https://github.com/commercetools/commercetools-ios-sdk/releases/tag/0.4.1)
Released on 2016-10-31.

#### Added
- Support for carts and orders migration on successful log in or sign up, if using an anonymous session.
- Centralized customer authorization methods.

#### Removed
- Direct access to `AuthManager` `login` and `logut` method. From now on, `Commercetools.loginCustomer` and `Commercetools.logoutCustomer` should be used.
- Direct access to `Customer` `signUp` method. From now on, `Commercetools.signUpCustomer` should be used.

## [0.4.0](https://github.com/commercetools/commercetools-ios-sdk/releases/tag/0.4.0)
Released on 2016-10-25.

Expand Down
4 changes: 2 additions & 2 deletions Commercetools.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Commercetools"
s.version = "0.4.0"
s.version = "0.4.1"
s.summary = "The e-commerce iOS SDK from commercetools"
s.homepage = "https://github.com/commercetools/commercetools-ios-sdk"
s.license = { :type => "Apache License, Version 2.0", :file => "LICENSE" }
Expand All @@ -11,6 +11,6 @@ Pod::Spec.new do |s|
s.source_files = 'Source/**/*.swift'

s.dependency 'Alamofire', '~> 4.0'
s.dependency 'ObjectMapper', '~> 2.0'
s.dependency 'ObjectMapper', '~> 2.2'

end
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use_frameworks!

def common_pods
pod 'Alamofire', '~> 4.0'
pod 'ObjectMapper', '~> 2.0'
pod 'ObjectMapper', '~> 2.2'
end

target 'Commercetools' do
Expand Down
4 changes: 2 additions & 2 deletions Source/AuthManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ open class AuthManager {
- parameter password: The user's password.
- parameter completionHandler: The code to be executed once the token fetching completes.
*/
open func loginCustomer(username: String, password: String, completionHandler: @escaping (Error?) -> Void) {
func loginCustomer(username: String, password: String, completionHandler: @escaping (Error?) -> Void) {
// Process all token requests using private serial queue to avoid issues with race conditions
// when multiple credentials / login requests can lead auth manager in an unpredictable state
serialQueue.async(execute: {
Expand All @@ -158,7 +158,7 @@ open class AuthManager {
This method will clear all tokens both from memory and persistent storage.
Most common use case for this method is user logout.
*/
open func logoutCustomer() {
func logoutCustomer() {
clearAllTokens()

Log.debug("Getting new anonymous access token after user logout")
Expand Down
2 changes: 1 addition & 1 deletion Source/Endpoints/Customer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ open class Customer: Endpoint, Mappable {
- parameter profile: Dictionary representation of the draft customer profile to be created.
- parameter result: The code to be executed after processing the response.
*/
open static func signUp(_ profile: [String: Any], result: @escaping (Result<CustomerSignInResult>) -> Void) {
static func signUp(_ profile: [String: Any], result: @escaping (Result<CustomerSignInResult>) -> Void) {
requestWithTokenAndPath(result, { token, path in
Alamofire.request("\(path)signup", method: .post, parameters: profile, encoding: JSONEncoding.default, headers: self.headers(token))
.responseJSON(queue: DispatchQueue.global(), completionHandler: { response in
Expand Down
2 changes: 1 addition & 1 deletion Source/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.4</string>
<string>0.4.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down

0 comments on commit 3d6a1e3

Please sign in to comment.