Skip to content

Commit

Permalink
Merge pull request #94 from SUPLA/develop
Browse files Browse the repository at this point in the history
v2.3.4 (build 42)
  • Loading branch information
przemyslawzygmunt authored Jan 3, 2020
2 parents 486d4d6 + 22f230c commit ac84b1f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions SUPLA.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2527,7 +2527,7 @@
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 41;
CURRENT_PROJECT_VERSION = 42;
DEFINES_MODULE = YES;
HEADER_SEARCH_PATHS = "$(SDKROOT)/usr/include/libxml2";
INFOPLIST_FILE = SUPLA/Info.plist;
Expand All @@ -2554,7 +2554,7 @@
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
CURRENT_PROJECT_VERSION = 41;
CURRENT_PROJECT_VERSION = 42;
DEFINES_MODULE = YES;
HEADER_SEARCH_PATHS = "$(SDKROOT)/usr/include/libxml2";
INFOPLIST_FILE = SUPLA/Info.plist;
Expand Down
2 changes: 1 addition & 1 deletion SUPLA/SuplaClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ - (char*) getServerHostName {

NSString *host = [SAApp getServerHostName];
if ( [host isEqualToString:@""] == YES && [SAApp getAdvancedConfig] == NO && ![[SAApp getEmailAddress] isEqualToString:@""] ) {

NSMutableURLRequest *request =
[NSMutableURLRequest requestWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://autodiscover.supla.org/users/%@", [SAApp getEmailAddress]]] cachePolicy:NSURLRequestReloadIgnoringLocalAndRemoteCacheData timeoutInterval:5];

Expand Down
6 changes: 3 additions & 3 deletions SuplaApp.m
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ +(NSString*) getAccessIDpwd {
}

+(void) setAccessIDpwd:(NSString *)pwd {

pwd = [pwd stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
@synchronized(self) {
[[NSUserDefaults standardUserDefaults] setValue:pwd forKey:@"access_id_pwd"];
}
Expand All @@ -277,7 +277,7 @@ +(NSString*) getServerHostName {
}

-(void) setServerHostName:(NSString *)hostname {

hostname = [hostname stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
@synchronized(self) {
[[NSUserDefaults standardUserDefaults] setValue:hostname forKey:@"server_host"];
_current_server = hostname;
Expand Down Expand Up @@ -309,7 +309,7 @@ +(NSString*) getEmailAddress {
}

-(void) setEmailAddress:(NSString *)email {

email = [email stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
@synchronized(self) {
[[NSUserDefaults standardUserDefaults] setValue:email forKey:@"email_address"];
_current_email = email;
Expand Down

0 comments on commit ac84b1f

Please sign in to comment.