Skip to content

Commit

Permalink
Added default config and updated .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
tilmanginzel committed Sep 3, 2015
1 parent 3a36c06 commit 885312f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
Config.java

/.idea/workspace.xml
/.idea/libraries
.DS_Store
Expand Down
17 changes: 17 additions & 0 deletions app/src/main/java/de/mobcomp/grades/util/ConfigDefault.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package de.mobcomp.grades.util;

/**
* Global default configuration file.
*
* Copy this file and rename it to Config.java
*/
public class ConfigDefault {
// server info
private static final String DOMAIN = "https://mygrades.de";
private static final int PORT = 443;
private static final int API_VERSION = 1;
public static final String SERVER_URL = DOMAIN + ":" + PORT + "/api/v" + API_VERSION;

// user agent used in jsoup
public static final String BROWSER_USER_AGENT = "Mozilla/5.0 (Linux; U; Android 2.2; en-gb; Nexus One Build/FRF50) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1";
}

0 comments on commit 885312f

Please sign in to comment.