Skip to content
Snippets Groups Projects
Commit b99478b3 authored by Frantisek Simon's avatar Frantisek Simon
Browse files

#78 Preparation for REST server auth

parent 48761453
No related branches found
No related tags found
No related merge requests found
......@@ -37,6 +37,7 @@ task writeTablexiaBuildConfig {
" public final static String VERSION_NAME = \"${tablexiaVersionName}\";\n" +
" public final static String ASSETS_CHECKSUM = \"${getMapConvertedToString(rootProject.ext.assetsChecksum)}\";\n" +
" public final static String TABLEXIA_SERVER_ADDRESS = ${project.hasProperty('TABLEXIA_SERVER_ADDRESS') ? "\"$TABLEXIA_SERVER_ADDRESS\"" : "null"};\n" +
" public final static String TABLEXIA_SERVER_SECRET = ${project.hasProperty('TABLEXIA_SERVER_SECRET') ? "\"$TABLEXIA_SERVER_SECRET\"" : "null"};\n" +
" public final static String FLURRY_KEY = ${project.hasProperty('TABLEXIA_FLURRY_KEY') ? "\"$TABLEXIA_FLURRY_KEY\"" : "null"};\n" +
"\n" +
"}", BUILD_CONFIG_FILE_ENCODING)
......
......@@ -23,6 +23,7 @@ public class RestSynchronizationService {
private static final String LOCALHOST_REST_URL = "http://localhost:8080";
public static final String REST_URL = TablexiaBuildConfig.TABLEXIA_SERVER_ADDRESS != null ? TablexiaBuildConfig.TABLEXIA_SERVER_ADDRESS : LOCALHOST_REST_URL;
public static final String SECRET_KEY = TablexiaBuildConfig.TABLEXIA_SERVER_SECRET;
private HttpRequestBuilder builder;
private Net.HttpResponseListener listener;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment