This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 685
/
Customization.h
166 lines (122 loc) · 4.74 KB
/
Customization.h
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
//
// Customization.h
// Owncloud iOs Client
//
// Created by Javier Gonzalez on 5/3/13.
//
/*
Copyright (C) 2017, ownCloud GmbH.
This code is covered by the GNU Public License Version 3.
For distribution utilizing Apple mechanisms please see https://owncloud.org/contribute/iOS-license-exception/
You should have received a copy of this license
along with this program. If not, see <http://www.gnu.org/licenses/gpl-3.0.en.html>.
*/
//app year
#define k_year 2017
//URLs Setting
#define k_help_url @"http://owncloud.com/mobile/help"
//Hide url server
#define k_hide_url_server NO
//Set a default url server. It must be obligatory if we hide the url server (#define k_hide_url_server YES)
#define k_default_url_server @""
//force override existing accounts with k_default_url_server. It must be obligatory if we change authentication type (k_is_sso_active)
#define k_force_update_of_server_url NO
//Show multiaccount or disconnect
#define k_multiaccount_available YES
//Have image background on navigation bar
#define k_have_image_background_navigation_bar NO
//Have SAML active
#define k_is_sso_active NO
//Mail feedback
#define k_mail_feedback @"apps@owncloud.com"
//Social
#define k_download_url_short @"http://bit.ly/13haDjE"
#define k_download_url_long @"https://itunes.apple.com/us/app/owncloud/id543672169?mt=8"
#define k_twitter_user @"@ownCloud"
//Minimun files until show letters on separators
#define k_minimun_files_to_show_separators 20
//show logo or name on title of file list
#define k_show_logo_on_title_file_list YES
//Show help
#define k_show_help_option_on_settings YES
//Show social
#define k_show_recommend_option_on_settings YES
//Show feedback
#define k_show_feedback_option_on_settings YES
//Show impressum
#define k_show_imprint_option_on_settings NO
//Customize UITabBar
#define k_is_customize_uitabbar YES
//Customize Unselected UITabBarItems (The images of tabBar should be the unseleted tabs)
#define k_is_customize_unselectedUITabBarItems NO
//Impressum is a File
#define k_impressum_is_file YES
//Impressum url if is not a file
#define k_impressum_url @""
//Customize recomend mail
#define k_is_custom_recommend_mail NO
#define k_is_username_recommend_mail NO
#define k_subject_recommend_mail @""
// /r/n needed for CR and LF
#define k_text_recommend_mail @""
#define k_is_sign_custom_usign_username NO
//Social customize
#define k_is_custom_twitter NO
#define k_custom_twitter_message @""
#define k_is_custom_facebook NO
#define k_custom_facebook_message @""
//Number of uploads shown in recents tab from the database
#define k_number_uploads_shown 30
//Set text of status bar white. YES = White | NO = Black
#define k_is_text_status_bar_white YES
//Set text of login view status bar white. YES = White | NO = Black
#define k_is_text_login_status_bar_white NO
//Show the help link on login
#define k_is_shown_help_link_on_login NO
#define k_url_link_on_login @"https://owncloud.com/mobile/new"
//User-Agent, Mozilla/5.0 (iOS) ownCloud-iOS/<appVersion> <ob_customUserAgent>
#define k_user_agent @"Mozilla/5.0 (iOS) ownCloud-iOS/$appVersion"
//Enable/Disable Background uploads and download (NSURLSession or NSOperation)
#define k_is_background_active YES
//Hide the share options
#define k_hide_share_options NO
//Help Guide init app
#define k_show_main_help_guide YES
//Show share with users
#define k_is_share_with_users_available YES
//Show share by link
#define k_is_share_by_link_available YES
//Show warning sharing public link
#define k_warning_sharing_public_link YES
//Force passcode
#define k_is_passcode_forced NO
//Oauth2
#define k_oauth2_authorization_endpoint @"index.php/apps/oauth2/authorize"
#define k_oauth2_token_endpoint @"index.php/apps/oauth2/api/v1/token"
#define k_oauth2_redirect_uri @"oc://ios.owncloud.com"
#define k_oauth2_client_id @"mxd5OQDk6es5LzOzRvidJNfXLUZS2oN3oUFeXPP8LpPrhx3UroJFduGEYIBOxkY1"
#define k_oauth2_client_secret @"KFeFWWEZO9TkisIQzR3fo7hfiMXlOpaqP8CFuTbSHzV1TUuGECglPxpiVKJfOXIx"
//Following not in use in 3.7.0
/****************************************************************/
//Have oauth active
#define k_is_oauth_active NO
//OAuth server //not use, use Oauth2 instead
#define k_oauth_login @""
#define k_oauth_authorize @""
#define k_oauth_token @""
#define k_oauth_webservice @""
#define k_oauth_client_id @"" //the same in k_oauth_login
//Autocomplete Login
#define k_is_autocomplete_username_necessary NO
#define k_letter_to_begin_autocomplete @"@"
#define k_text_to_autocomplete @""
/***************************************************************/
//Following getters required to Bridging with Swift
@interface Customization : NSObject
+(BOOL)kHideUrlServer;
+(BOOL)kForceUpdateOfServerUrl;
+(BOOL)kMultiaccountAvailable;
+(BOOL)kIsSsoActive;
+(BOOL)kIsTextLoginStatusBarWhite;
+(BOOL)kIsShownHelpLinkOnLogin;
@end