Skip to content

Commit 043870d

Browse files
kavitha89kavitha89
kavitha89
authored and
kavitha89
committed
added distribution profile and added comments.
Hope iOS coding part is finished here.
1 parent 8f37dfe commit 043870d

File tree

5 files changed

+19
-22
lines changed

5 files changed

+19
-22
lines changed

SharedApplicationDemoBITS/SharedApplicationDemoBITS.xcodeproj/project.pbxproj

+6
Original file line numberDiff line numberDiff line change
@@ -448,11 +448,14 @@
448448
isa = XCBuildConfiguration;
449449
buildSettings = {
450450
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
451+
CODE_SIGN_IDENTITY = "iPhone Distribution: Cognizant Technology Solutions India Pvt Ltd/";
452+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Cognizant Technology Solutions India Pvt Ltd/";
451453
GCC_PRECOMPILE_PREFIX_HEADER = YES;
452454
GCC_PREFIX_HEADER = "SharedApplicationDemoBITS/SharedApplicationDemoBITS-Prefix.pch";
453455
INFOPLIST_FILE = "SharedApplicationDemoBITS/SharedApplicationDemoBITS-Info.plist";
454456
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
455457
PRODUCT_NAME = "$(TARGET_NAME)";
458+
PROVISIONING_PROFILE = "6E19F26E-B433-43B0-AB19-FBDABF0E900F";
456459
TARGETED_DEVICE_FAMILY = "1,2";
457460
WRAPPER_EXTENSION = app;
458461
};
@@ -462,11 +465,14 @@
462465
isa = XCBuildConfiguration;
463466
buildSettings = {
464467
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
468+
CODE_SIGN_IDENTITY = "iPhone Distribution: Cognizant Technology Solutions India Pvt Ltd/";
469+
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution: Cognizant Technology Solutions India Pvt Ltd/";
465470
GCC_PRECOMPILE_PREFIX_HEADER = YES;
466471
GCC_PREFIX_HEADER = "SharedApplicationDemoBITS/SharedApplicationDemoBITS-Prefix.pch";
467472
INFOPLIST_FILE = "SharedApplicationDemoBITS/SharedApplicationDemoBITS-Info.plist";
468473
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
469474
PRODUCT_NAME = "$(TARGET_NAME)";
475+
PROVISIONING_PROFILE = "6E19F26E-B433-43B0-AB19-FBDABF0E900F";
470476
TARGETED_DEVICE_FAMILY = "1,2";
471477
WRAPPER_EXTENSION = app;
472478
};

SharedApplicationDemoBITS/SharedApplicationDemoBITS/AppDelegate.m

+7-5
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,16 @@ - (void)applicationWillResignActive:(UIApplication *)application
2323
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
2424
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
2525
}
26+
27+
/**
28+
29+
Method to handle URI Scheme from other application.
30+
31+
**/
2632
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
2733

2834
NSLog(@"url absoluteString: %@", [url absoluteString]);
2935
NSLog(@"url relativeString: %@", [url relativeString]);
30-
/*NSLog(@"url baseURL: %@", [url baseURL]);*/
3136
NSLog(@"url absoluteURL: %@", [url absoluteURL]);
3237

3338
NSString *text = [[url absoluteString] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
@@ -41,10 +46,7 @@ - (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url {
4146
NSLog(@"jsonObject=%@", jsonObject);
4247

4348
self.uriSchemePiggyBackData = jsonObject;
44-
45-
// URIScehemTableViewController *uriObject = [[URIScehemTableViewController alloc]init];
46-
// [uriObject readDataByURIScheme:url];
47-
49+
4850
return YES;
4951
}
5052

SharedApplicationDemoBITS/SharedApplicationDemoBITS/PasteBoardTableViewController.m

+6-3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ - (void)didReceiveMemoryWarning
3939
[super didReceiveMemoryWarning];
4040
// Dispose of any resources that can be recreated.
4141
}
42+
43+
/**
44+
45+
Reads data from UIPasteBoard stored from application one.
46+
47+
**/
4248
-(void)readDataFromPasteBoard
4349
{
4450
UIPasteboard * pasteboard=[UIPasteboard generalPasteboard];
@@ -51,9 +57,6 @@ -(void)readDataFromPasteBoard
5157
options:0 error:NULL];
5258
NSLog(@"jsonObject=%@", jsonObject);
5359

54-
/*NSString *tableData = [jsonObject valueForKey:@"bCapacity"];
55-
NSLog(@"tableData=%@", tableData);*/
56-
5760
self.dataDict = jsonObject;
5861

5962
}

SharedApplicationDemoBITS/SharedApplicationDemoBITS/sharedApplicationDisplayViewController.m

-14
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
#import "URIScehemTableViewController.h"
1212
#import "AppDelegate.h"
1313

14-
#define IDENTIFIER @"SharedApplication"
15-
#define iMIMApplicationInfo @"MIMApplicationInfo"
16-
#define iPlist @"plist"
17-
#define iTeamIdkey @"Team_ID"
18-
1914
@interface sharedApplicationDisplayViewController ()
2015

2116
@property (nonatomic,strong) NSDictionary *dataDictionary;
@@ -108,16 +103,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
108103
}
109104
}
110105
}
111-
/*
112-
#pragma mark - Navigation
113106

114-
// In a storyboard-based application, you will often want to do a little preparation before navigation
115-
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
116-
{
117-
// Get the new view controller using [segue destinationViewController].
118-
// Pass the selected object to the new view controller.
119-
}
120-
*/
121107

122108

123109
@end

0 commit comments

Comments
 (0)