-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added default config and updated .gitignore
- Loading branch information
1 parent
3a36c06
commit 885312f
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
Config.java | ||
|
||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
|
17 changes: 17 additions & 0 deletions
17
app/src/main/java/de/mobcomp/grades/util/ConfigDefault.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; | ||
} |