Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
p13i committed Jul 11, 2019
1 parent ad5208f commit 7e097d4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,10 @@ import io.p13i.glassnotes.datastores.localdisk.LocalDiskGlassNotesDataStore;


public class Preferences {
/**
* Get and set your oauth token here...
*/
public final static String GITHUB_OAUTH_AUTH_HEADER = "Authorization: token <INSERT GITHUB TOKEN HERE>";

/**
* How often to save notes to the specified data store, in milliseconds
*/
public final static int SAVE_PERIOD_MS = 10_000; // every 10 seconds
public final static int SAVE_PERIOD_MS = 5000; // every 5 seconds

/**
* Set as LocalDiskGlassNotesDataStore or GlassNotesGitHubAPIClient
Expand All @@ -39,8 +34,10 @@ public class Preferences {
*/
public static GlassNotesDataStore getUserPreferredDataStore(Context context) {
return new LocalDiskGlassNotesDataStore(context);
// return new GlassNotesGitHubAPIClient();
// return new GlassNotesGitHubAPIClient("<<<INSERT GITHUB TOKEN FOR GIST ACCESS HERE>>>");
}
}


```
5. Deploy to your device

0 comments on commit 7e097d4

Please sign in to comment.