Redth
e0e50072e1
Fix formatting / newlines
2018-02-23 08:55:53 -05:00
Redth
a6c275cd30
Fix typos
2018-02-23 08:47:53 -05:00
Redth
e6286018b1
Conditionally build multitargeting
...
We can leave out uap on mac which should help msbuild cope on mac
2018-02-23 08:39:16 -05:00
Redth
566ad55b38
Clean up preferences conversions
2018-02-22 20:10:33 -05:00
Redth
2cef835cd0
Remove unnecessary context null check
...
Application.Context should never be null, and if it is, we have much larger problems in our app.
2018-02-21 15:45:10 -05:00
Jonathan Dick
538add43a3
Preferences cleanup
...
- Remove disposable (we really were only using it for iOS to call synchronize which is apparently unnecessary according to apple)
- Remove unnecessary null checks on android - sharedpreferences will always be something, or it'll throw
- Clear, Remove, and Set are all now void - bool return was ambiguous and not all platforms truly support it
2018-02-21 13:20:48 -05:00
Jonathan Dick
fdbe2de696
Added UWP implementation for Preferences
2018-02-21 10:49:16 -05:00
Jonathan Dick
1d54305551
Instantiate the weak reference
2018-02-21 10:26:12 -05:00
Jonathan Dick
8a70a98933
Cleanup Android/iOS Preferences
...
- Added locking
- Changed context usage on android
- Fixed handling of storing doubles and longs where platforms don't support them
- iOS dispose now calls Synchronize instead of calling it after every operation
2018-02-21 10:16:36 -05:00
Jonathan Dick
fc0eb709db
Add IDisposable to Preferences
...
This will allow us to call Synchronize on iOS on dispose instead of every single interaction with NSUserDefualts
2018-02-21 10:12:48 -05:00
Jonathan Dick
d5e276e2e2
Use weakreference and don't hold application ref
2018-02-21 10:10:45 -05:00
Jonathan Dick
c324ea6d18
Added iOS Preferences implementation
2018-02-20 22:03:49 -05:00
Jonathan Dick
593e6e678a
Make class private, doesn't need to be internal
2018-02-20 21:43:47 -05:00
Jonathan Dick
eb7f92f5ac
Fixed formatting
2018-02-20 21:41:22 -05:00
Jonathan Dick
411fb05d02
Added Preferences implementation for Android
...
Also added placeholders for other platform implementations that need to be completed.
2018-02-20 21:36:44 -05:00
Jonathan Dick
9c0b83f29d
Added Android lifecycle tracking in Platform
...
This also adds platform empty files for future use.
2018-02-20 21:35:29 -05:00
Jonathan Dick
96c9800778
Merge pull request #1 from xamarin/motz-add-base
...
Add base project and test
2018-02-20 16:38:59 -05:00
James Montemagno
058876cd7d
Updates for repo name and gitignore
2018-02-20 13:37:08 -08:00
James Montemagno
e1abb63d7d
Add base project and test
...
This adds base project and test for mult-targeting. Also includes editor config and my gitignore.
2018-02-20 13:15:08 -08:00
Redth
eb625092f2
License + Readme
2018-02-20 14:56:56 -05:00