This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSDictionary* (^SetODataTypesInDictionary)(NSDictionary *dictionary) = ^NSDictionary* (NSDictionary *inputDict) { | |
NSMutableDictionary *mutableObj = [NSMutableDictionary dictionaryWithDictionary:inputDict]; | |
NSArray *allKeys = [mutableObj allKeys]; | |
[allKeys enumerateObjectsUsingBlock:^(NSString *key, NSUInteger idx, BOOL *stop) { | |
NSObject *propValue = [(id<SODataProperty>)[mutableObj objectForKey:key] value]; | |
if ([propValue isKindOfClass:[NSDictionary class]]) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HEADER_SEARCH_PATHS = ( | |
"$(inherited)", | |
"/Applications/Xcode6-Beta2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include", | |
"$(PROJECT_DIR)/../../target/headers/$(BUILD_STYLE)-$(PLATFORM_NAME)/com.sap.smp.client.ios/XScriptParser", | |
"$(PROJECT_DIR)/../../target/headers/$(BUILD_STYLE)-$(PLATFORM_NAME)/com.sap.smp.client.ios/Supportability", | |
"$(PROJECT_DIR)/../../target/headers/$(BUILD_STYLE)-$(PLATFORM_NAME)/com.sap.smp.client.ios/ODataOnline", | |
"$(PROJECT_DIR)/../../target/headers/$(BUILD_STYLE)-$(PLATFORM_NAME)/com.sap.smp.client.ios/ODataAPI", | |
"$(PROJECT_DIR)/../../target/headers/$(BUILD_STYLE)-$(PLATFORM_NAME)/com.sap.smp.client.ios/HttpConversation", | |
"$(PROJECT_DIR)/../../target/headers/$(BUILD_STYLE)-$(PLATFORM_NAME)/com.sap.smp.client.ios/HttpConvAuthFlows", | |
"$(PROJECT_DIR)/../../target/headers/$(BUILD_STYLE)-$(PLATFORM_NAME)/com.sap.smp.client.ios/E2ETrace2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<parent> | |
<groupId>com.sap.smp.client.ios.samples</groupId> | |
<artifactId>ODataAPISamplesParent</artifactId> | |
<version>3.5.0-SNAPSHOT</version> | |
</parent> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "HttpConversationManager.h" | |
#import "UsernamePasswordProviderProtocol.h" | |
#import "CommonAuthenticationConfigurator.h" | |
#import "SODataRequestDelegate.h" | |
#import "SODataRequestParam.h" | |
#import "SODataRequestParamSingleDefault.h" | |
#import "SODataResponseSingle.h" | |
#import "SODataResponse.h" | |
#import "SODataPayload.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma mark - MAFLogonNGDelegate implementation | |
-(void) logonFinishedWithError:(NSError*)anError { | |
if (!anError) { | |
/* | |
Initialize HTTPConversationManager, set with logon configurator | |
*/ | |
self.httpConvManager = [[HttpConversationManager alloc] init]; | |
[[self.logonManager logonConfigurator] configureManager:self.httpConvManager]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void) initConversationManagerWithSAMLProvider { | |
CommonAuthenticationConfigurator* commonConfig = [[CommonAuthenticationConfigurator alloc] init]; | |
[commonConfig addSAML2ConfigProvider:self]; | |
HttpConversationManager* manager = [[HttpConversationManager alloc] init]; | |
[commonConfig configureManager:manager]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"host": "ciatjavahanamobile-x000003.neo.ondemand.com", | |
"port": 443, | |
"protocol": "https", | |
"auth": [ | |
{ | |
"type": "saml2.web.post", | |
"config": { | |
"saml2.web.post.authchallengeheader.name": "com.sap.cloud.security.login", | |
"saml2.web.post.finish.endpoint.uri": "/SAMLAuthLauncher", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath | |
{ | |
if (editingStyle == UITableViewCellEditingStyleDelete) { | |
id<SODataEntity> entity = self.sortedEntities[indexPath.row]; | |
NSMutableArray *arr = [NSMutableArray arrayWithArray:self.sortedEntities]; | |
[arr removeObjectAtIndex:indexPath.row]; | |
self.sortedEntities = arr; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[NSNotificationCenter defaultCenter] addObserverForName:kLogonFinished object:nil queue:nil usingBlock:^(NSNotification *note) { | |
[[DataController shared] fetchTravelAgencies]; | |
}]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)viewWillAppear:(BOOL)animated { | |
[[Model shared] addObserver:self | |
forKeyPath:@"travelAgencies" | |
options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOptionInitial) | |
context:NULL]; | |
} | |
- (void)viewWillDisappear:(BOOL)animated { | |
[[Model shared] removeObserver:self | |
forKeyPath:@"travelAgencies"]; |
OlderNewer