use of com.orgzly.android.prefs.RepoPreferences in project orgzly-android by orgzly.
the class GitRepo method getInstance.
public static GitRepo getInstance(RepoWithProps props, Context context) throws IOException {
// TODO: This doesn't seem to be implemented in the same way as WebdavRepo.kt, do
// we want to store configuration data the same way they do?
Repo repo = props.getRepo();
Uri repoUri = Uri.parse(repo.getUrl());
RepoPreferences repoPreferences = new RepoPreferences(context, repo.getId(), repoUri);
GitPreferencesFromRepoPrefs prefs = new GitPreferencesFromRepoPrefs(repoPreferences);
return build(props.getRepo().getId(), prefs, false);
}
Aggregations