Commit 22056817 authored by laurent l's avatar laurent l

iOS: fix synchronizing multiple accounts from same website

parent 128343d3
......@@ -51,4 +51,4 @@
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
</dict>
</plist>
</plist>
\ No newline at end of file
......@@ -7,6 +7,7 @@ export class Cookies {
public setCookies(cookies: Array<NSHTTPCookie>): this {
this.clearCookies();
for (let i = 0; i < cookies.length; i++)
NSHTTPCookieStorage.sharedHTTPCookieStorage.setCookie(cookies[i]);
return this;
......
......@@ -4,9 +4,9 @@ import * as http from 'tns-core-modules/http';
export class NSHTTPClient implements HTTPClient {
public request(options: any): Promise<http.HttpResponse> {
console.dir(['on request', this._printCookies(), options]);
// console.dir(['on request', options, this._printCookies()]);
return http.request(options).then((response) => {
console.dir(['on response', this._printCookies(), response.headers]);
// console.dir(['on response', response.headers, this._printCookies()]);
return response;
});
}
......
......@@ -8,10 +8,10 @@
"android": "fr.afi_sa.MyBibApp",
"ios": "fr.afi.MyBibApp"
},
"tns-android": {
"tns-ios": {
"version": "5.3.1"
},
"tns-ios": {
"tns-android": {
"version": "5.3.1"
}
},
......@@ -35,7 +35,7 @@
"nativescript-unit-test-runner": "^0.5.1",
"nativescript-zxing": "git+https://github.com/Afibre/nativescript-zxing.git",
"papaparse": "^4.3.7",
"tns-core-modules": "^5.2.2",
"tns-core-modules": "^5.4.1",
"tns-platform-declarations": "^3.4.0",
"url-parse": "^1.4.4",
"util": "^0.10.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment