forked from delight-im/Faceless
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConfigExample.java
50 lines (42 loc) · 2.53 KB
/
ConfigExample.java
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
package im.delight.faceless;
/**
* Copyright (C) 2014 www.delight.im <[email protected]>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see {http://www.gnu.org/licenses/}.
*/
public class ConfigExample {
// Configuration parameters that need to be set up correctly (unique to particular setup)
/** The base URL (without a trailing slash) to the web API that the client applications will talk to (i.e. the directory that contains the files from Server/public_html) */
public static final String API_BASE_URL = "https://faceless-api.herokuapp.com";
/** The URL that users are to share if they want to send a link to their friends (e.g. the Google Play URL of the app) */
public static final String SHARE_URL = "REPLACE_THIS_WITH_VALUE";
/** The ROT13-encoded version of <CONFIG_CLIENT_HASH_SEED> from <Server/config.php> */
public static final String CRYPTO_HASH_SEED_ROT13 = "REPLACE_THIS_WITH_VALUE";
/** The ROT13-encoded version of <CONFIG_API_SECRET> from <Server/config.php> */
public static final String CRYPTO_HMAC_KEY_ROT13 = "REPLACE_THIS_WITH_VALUE";
/** The support email address that users may get help at */
public static final String SUPPORT_EMAIL = "[email protected]";
// Configuration parameters that don't necessarily have to be changed (but may be for customization/tuning)
/** Whether demo/preview mode should be enabled or not (must always be <false> before publishing a new release) */
public static final boolean DEMO_ACTIVE = false;
/** The prefix of client-side applications' user agents headers that they identify with */
public static final String CLIENT_VERSION_PREFIX = "Faceless-Android-";
public static final int PASSWORD_LENGTH_FACTOR = 3;
public static final int UUID_LENGTH_IN_CHARS = 36;
public static final int CRYPTO_HASH_ITERATIONS = 4;
/** The radius that locations should be randomly blurred within for privacy reasons (in meters) */
public static final int LOCATION_BLUR_RADIUS = 25000;
/** This class may not be instantiated */
private ConfigExample() { }
}