-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathConstants.m
83 lines (61 loc) · 2.98 KB
/
Constants.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
//
// Constants.m
// uMobile
//
// Created by Andrew Clissold & Skye Schneider on 4/22/14.
// Copyright (c) 2014 Oakland University. All rights reserved.
//
#import "Constants.h"
// ==================== Customizable Properties ====================
// These can be customized to fit your particular implementation.
// App title
NSString *const kTitle = @"uMobile";
// Main uPortal URL
NSString *const kBaseURL = @"http://mockuportal.appspot.com";
// Main CAS URL
NSString *const kCasServer = @"http://login.example.edu";
// Forgot password URL to open in Safari
NSString *const kForgotPasswordURL = @"http://forgot.example.edu";
// Username placeholder text for the Login view
NSString *const kUsernamePlaceholder = @"Username";
// Whether or not to check against the umobile-global-config webapp
BOOL const kShouldRunConfigCheck = NO;
// ==================== Fixed Properties ====================
// These shouldn't need to be modified.
// Path to layout.json relative to the root of kBaseURL
NSString *const kLayoutPath = @"/uPortal/layout.json";
// CAS restlet location relative to kCasServer
NSString *const kRestletPath = @"/cas/v1/tickets/";
// Login/logout relative to kBaseURL
NSString *const kLoginService = @"/uPortal/Login";
NSString *const kLogoutService = @"/uPortal/Logout";
// Main page URL to be intercepted if necessary
NSString *const kMainPageURL = @"/uPortal/normal/render.uP";
// umobile-global-config webapp path
NSString *const kConfigWebappPath = @"/umobile-global-config/iOS/";
// Notification center strings
NSString *const kLoginSuccessNotification = @"Login Successful";
NSString *const kLoginFailureNotification = @"Login Failure";
NSString *const kRememberMeFailureNotification = @"Remember Me Failure";
NSString *const kLogoutSuccessNotification = @"Logout Successful";
NSString *const kLogoutFailureNotification = @"Logout Failure";
// The link to your application on the App Store for ErrorViewController
NSString *const kAppStoreURL = @"http://example.edu";
// The URL associated with the JSESSIONID cookie
NSString *const kCasLogin = @"/cas/login?service=";
// Other
NSString *const kUserAgent = @"iPhone";
NSString *const kUPortalCredentials = @"uPortalCredentials";
NSString *const kLoggingInText = @"Logging In";
NSString *const kGoToAppStoreTitle = @"Go To App Store";
NSString *const kErrorNavigationControllerIdentifier = @"errorNavigationController";
// ==================== Config Messages ====================
NSString *const kConfigUnavailableMessage = @"Unfortunately, an error has occured. "
"Please check your Internet connection and try again, or visit the website for "
"more information.";
NSString *const kUpgradeRecommendedMessage = @"The current version of "
"this app is out of date and we strongly recommended upgrading. Would you "
"like to do this now?";
NSString *const kUpgradeRequiredMessage = @"Unfortunately, the current version of "
"this app is out of date and must be updated. Please visit the App Store to "
"download the new version.";