This repository has been archived by the owner on Sep 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented Native Persistent Storage
Uses NSUserDefaults and Sharedprefs (ios and and android, respectively) I think all the bugs have been ironed out, but we may find some later on...
- Loading branch information
1 parent
bd35761
commit d2a59c6
Showing
28 changed files
with
1,233 additions
and
1,776 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
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
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,26 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Xamarin.Forms; | ||
using System.ComponentModel; | ||
using System.Security.Principal; | ||
using Xamarin.Forms; | ||
|
||
namespace NRGScoutingApp | ||
{ | ||
public partial class App : Application | ||
{ | ||
namespace NRGScoutingApp { | ||
public partial class App : Application { | ||
public static bool UseMockDataStore = true; | ||
public static string BackendUrl = "https://localhost:5000"; | ||
|
||
public App() | ||
{ | ||
InitializeComponent(); | ||
Application.Current.MainPage = new NavigationPage(new NavTab()); | ||
MainPage = new NavigationPage(new NavTab()); | ||
public App () { | ||
InitializeComponent (); | ||
Application.Current.MainPage = new NavigationPage (new NavTab ()); | ||
MainPage = new NavigationPage (new NavTab ()); | ||
if (UseMockDataStore) | ||
DependencyService.Register<MockDataStore>(); | ||
DependencyService.Register<MockDataStore> (); | ||
else | ||
DependencyService.Register<CloudDataStore>(); | ||
DependencyService.Register<CloudDataStore> (); | ||
} | ||
|
||
} | ||
} | ||
} |
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
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
Oops, something went wrong.