Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Add plugins from main repo #3

Merged
merged 363 commits into from Sep 4, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
363 commits
Select commit Hold shift + click to select a range
8342e9a
Localization name fix - somehow the project didn't get updated :/
slodge Jul 6, 2013
38872ec
More s to z path changes - I may regret this change in directory name
slodge Jul 7, 2013
baa363e
Merge branch 'TibetBinding' of github.com:slodge/MvvmCross into Tibet…
slodge Jul 7, 2013
e422125
MethodBinding - fix on iOS build (old dam 2)
slodge Jul 13, 2013
e969e0d
Design time helpers improved using addition In design time checks
slodge Jul 18, 2013
0e4bc72
Prevent source being updated with a value equal to the current one - …
slodge Jul 19, 2013
765107f
Possible fix for issue #353 - but really this syntax is so horrid tha…
slodge Jul 23, 2013
c6bf1bc
Improvements to naming for https://github.com/slodge/MvvmCross/issues…
slodge Jul 23, 2013
b4bf7f7
Warning for Value[key] seen in a binding - can be switched off using …
slodge Jul 23, 2013
61e48ed
fixed the issue with multiple subscription to the handler in the same…
aboo Aug 1, 2013
6b65e77
Remove unneeded System.ServiceModel references
brianchance Aug 15, 2013
589eb47
Merge branch 'v3' of https://github.com/aboo/MvvmCross into TibetBinding
slodge Aug 27, 2013
8ba40ed
_currentlyActive sentinel (trace only) added to the iOS image picker …
slodge Aug 27, 2013
7abe566
Make ExtraCC and ExtraEmail optional - fixes #385
slodge Aug 27, 2013
78e4df3
Designer resouce changes only
slodge Aug 27, 2013
14781f5
Trying to get rid of the profile1/profile104 switching - at last!
slodge Sep 1, 2013
5814005
Change to Android Location Manager - some devices reporting issues wi…
slodge Sep 8, 2013
e0390d9
Added new Location interface for options
slodge Sep 11, 2013
8093c08
Added CurrentLocation and LastSeenLocation to MvxLocationWatcher
slodge Sep 11, 2013
6239464
Droid reachability - linked to #408 and comments inside #362
slodge Sep 11, 2013
26d30d2
Weak referencing in FieldBinding
slodge Sep 12, 2013
c1668e3
Android changes to color binding to use converting base methods too
slodge Sep 15, 2013
a623613
Quite extreme changes to binding SourceSteps and Source - especially …
slodge Sep 28, 2013
be87455
More initialise to initialize changes (plugins)
slodge Sep 28, 2013
3a200ab
Remove unused configs - fixes #439
slodge Sep 28, 2013
4a9ec88
Small efficency improvement in i18n provider - don't call string.Form…
slodge Sep 28, 2013
e2637e5
Attempt to fix #433 - possible break caused by #385
slodge Sep 28, 2013
4f8b311
formatting only
slodge Sep 28, 2013
50e6b5c
Just code tidy up
slodge Sep 28, 2013
31df83d
Allow Windows platforms to use UnsetValue and DoNothing in converters…
slodge Oct 1, 2013
723a7fb
Merge branch 'DroidReachability' into BindingChanges
slodge Oct 1, 2013
2dccfca
Merge branch 'LocationChanges' into BindingChanges
slodge Oct 1, 2013
9dfb70d
Resources.Designer tools version comment
Oct 3, 2013
e428f19
Make Reachability report a better error if there's a permissions issue
slodge Oct 3, 2013
325b83d
Remove the host ping for now - just use network state - fixes #408 (a…
slodge Oct 3, 2013
34376b3
Merge branch 'v3' of https://github.com/BenGladman/MvvmCross into Bin…
slodge Oct 3, 2013
6d1944c
Possible fixes for #455 - needs unit test before signoff
slodge Oct 4, 2013
c5a9f52
Tests for Colors - fixes #455
slodge Oct 4, 2013
cae7f96
Fixes to ValueConverters - especially for 3 digit color codes
slodge Oct 4, 2013
0300a73
Just experiments
slodge Oct 5, 2013
9251844
Merge branch 'BindingChanges' of https://github.com/slodge/MvvmCross …
slodge Oct 5, 2013
d6c9ca1
Minor changes - slowly reducing #warning count
slodge Oct 5, 2013
0aa4bbc
sln file - without any odd x86/ARM entries - hopefully fixes #439
slodge Oct 5, 2013
13420ad
Merge branch 'BindingChanges' of https://github.com/slodge/MvvmCross …
slodge Oct 5, 2013
8ac2674
Designer files only - just noise
slodge Oct 6, 2013
c9fe8c1
Android Bitmap loader supports 'res:' just as iOS does
slodge Oct 8, 2013
8b96fc5
Improved comment on why ping is not used - see https://github.com/Mvv…
slodge Oct 8, 2013
829fb03
Mark old SQLite plugin as obsolete - try to push people to the newer …
slodge Oct 9, 2013
c833489
Added ThreadUtils.Wpf Project
ShawInnes Oct 13, 2013
699dc07
Fix AssemblyInfo.cs
ShawInnes Oct 13, 2013
0c30c80
Fix for native extension method name (not Android!)
slodge Oct 14, 2013
af748f0
Merge pull request #459 from ShawInnes/v3
slodge Oct 14, 2013
b6af7bf
Folder implementations from http://stackoverflow.com/questions/198907…
slodge Nov 13, 2013
19420d7
Removed pointless region pragma
slodge Nov 13, 2013
9c777ca
Optimisation - no need to calculate the source binding values during …
slodge Nov 13, 2013
039982f
Added a method that takes in attachments
Nov 11, 2013
9503bdf
refactor attachment interface to take in a stream instead of byte[]. …
Nov 13, 2013
30201ab
switched from Mimetype to string, seems to be missing from PCL
Nov 13, 2013
61309fc
Refactoring... not sure I like this refactoring... (forgotten how har…
slodge Nov 16, 2013
eb4f640
Switch portable to 158 -> switch WP7 to WP8
slodge Nov 20, 2013
2a82655
Trying to tidy up old configs - especially <Prefer32Bit>true</Prefer3…
slodge Dec 7, 2013
ef1eb3c
File delete before write work for #500
slodge Dec 7, 2013
89755a6
Try to reduce some of the `public angst` by changing the `Obsolete` i…
slodge Dec 7, 2013
06cd48d
Merge branch 'FixHtmlEmailOnAndroid' of github.com:kobynet/MvvmCross …
slodge Dec 7, 2013
35ea46f
More efficient Exists and FolderExists - addressing #521 - could do w…
slodge Jan 3, 2014
c2898fd
Email Attachment support for Android
hlogmans Jan 9, 2014
bf7c036
Delete local file that was created as attachment
hlogmans Jan 10, 2014
6aa93ae
fix for some build problems with #545
slodge Jan 16, 2014
ac8c92d
remove multiple enumeration of attachments enumerable
slodge Jan 16, 2014
800e1f2
Add Assembly Company name - fixes #558
slodge Jan 26, 2014
4115920
Image picker fixes for corrupt returns from Android
slodge Feb 1, 2014
24e7d5d
Fixed FolderExists in FileStore for WindowsStore
mgulati-zz Feb 4, 2014
a443f7d
tidy up catch blocks after #580
slodge Feb 9, 2014
ae09b76
Added OpenRead and OpenWrite methods to IMvxFileStore. Implemented in…
danielcweber Feb 11, 2014
0326001
Needs further review: Implementations of IMvxFileStore for WindowsPho…
danielcweber Feb 11, 2014
3dbbb80
Add null check in MvxBaseFileStore.WriteFileCommon.
danielcweber Feb 13, 2014
0853aa1
Fix ErrorImage not showing.
Cheesebaron Feb 14, 2014
4356abb
Minor code cleanup.
Cheesebaron Feb 14, 2014
60faea3
Fixed calls to "this" in static methods. Changed 2 private static met…
danielcweber Feb 19, 2014
ab51f95
Added exif rotation to the Android PictureChooser plugin
jsmarcus Mar 12, 2014
24ac605
Merge branch 'ExtendFilePlugin' of github.com:Blewzman/MvvmCross into…
slodge Mar 16, 2014
19c0e26
Modifications to unify delete behaviour for FileStream read/write - a…
slodge Mar 16, 2014
830aef8
Minor fixes to unify file experience - minimize risk of change (sorry!)
slodge Mar 16, 2014
0deadd4
Minor fixes to unify file experience - minimize risk of change (sorry!)
slodge Mar 16, 2014
2060d99
Minor fixes to unify file experience - minimize risk of change (sorry!)
slodge Mar 16, 2014
90662b0
Minor fixes to unify file experience - minimize risk of change (sorry!)
slodge Mar 16, 2014
6e58c27
Merge branch 'v3.1' of github.com:jsmarcus/MvvmCross into v3.1
slodge Mar 16, 2014
b91a265
Follow up to #627 - added a pokemon handler for now - it will drop ba…
slodge Mar 16, 2014
a7540b8
Add location watcher plugin for WPF.
AlanYost Mar 17, 2014
b2ff6d4
Added AsyncRequestHandle class, to support request cancel in future.
wedkarz Mar 18, 2014
1b2cf43
Fix null exception after Windows Phone location watcher stop
kohlerb Mar 22, 2014
2dea8f4
stream usings in windows store - fixes #638
slodge Mar 22, 2014
0176f0d
Merge branch 'v3.1' of github.com:slodge/MvvmCross into v3.1
slodge Mar 22, 2014
8861587
Merge pull request #634 from wedkarz/v3.1
slodge Mar 22, 2014
8d050c4
Follow up to #634
slodge Mar 22, 2014
e6fb23b
Better Apache 2.0 credit
slodge Mar 22, 2014
9f1e007
Merge pull request #632 from AlanYost/v3.1
slodge Mar 22, 2014
73bb840
stop fixes for #632
slodge Mar 22, 2014
8f992de
Removed non-IDisposable Dispose from #632 - shouldn't really use Disp…
slodge Mar 22, 2014
b152d53
Build and nuspec fixes for #632
slodge Mar 22, 2014
5528e51
Goodbyte NewtonSoft.Json ... Hello NewtonSoft.Json from Nuget
slodge Mar 22, 2014
dd89e6a
Changed Profile158 to Profile259 (removed sl5 support and added wpa81…
pedrolamas Apr 8, 2014
e4b0574
DeleteFile should not throw FileNotFoundException
guillaume-fr Apr 24, 2014
5af1cf6
file plugin async additions
Apr 24, 2014
5809ac5
minor factorization
Apr 24, 2014
ed981af
Use the tel uri in windows store for phone calls
guillaume-fr Apr 30, 2014
631ad95
Merge pull request #671 from guillaume-fr/patch-1
slodge May 1, 2014
1eb280b
Make max concurrent downloads configurable.
ddunkin May 14, 2014
4d92b40
Use UIImage.FromFile instead of reading from the file store into memo…
ddunkin May 14, 2014
50a7ee1
SafeDeleteFile should return true if file doesn't exists
guillaume-fr May 15, 2014
2767a22
WindowsStore MvxPhoneCallTask doesn't compile
guillaume-fr May 15, 2014
d7bafb4
Merge pull request #692 from guillaume-fr/patch-5
slodge May 19, 2014
a8bc1ab
new Task based overloads, compatible with await
Jun 4, 2014
67a6193
WP versions
Jun 4, 2014
1d5c786
PictureChooser added - fixes #710
slodge Jun 8, 2014
61c975d
Merge pull request #691 from ddunkin/v3.1
slodge Jun 8, 2014
ead6806
Merge branch 'v3.1' of github.com:slodge/MvvmCross into v3.1
slodge Jun 8, 2014
2806484
Follow ups to #691
slodge Jun 8, 2014
2a78735
More color converters - Fixes #682
slodge Jun 8, 2014
8d405b8
Extra trace - fixes #649
slodge Jun 8, 2014
b0aeba2
Merge branch 'v3.1' of github.com:molinch/MvvmCross into v3.1
slodge Jun 8, 2014
2377303
Additions for #677
slodge Jun 8, 2014
3c11209
MvxWpfReachability
mashbrno Jun 12, 2014
09555ee
Adding WindowsCommon core projects, plus File and ResourceLoader plugins
steveydee82 Jun 16, 2014
b1b8689
Adding WindowsCommon plugins
steveydee82 Jun 16, 2014
567d293
WindowsCommon SQLite plugin
steveydee82 Jun 16, 2014
70654a4
Output paths for new plugins
steveydee82 Jun 16, 2014
94bfe96
Fix build error & add Windows Common to nuspec files
steveydee82 Jun 16, 2014
c4a15b9
Merge branch 'v3.1' into universalapping
slodge Jun 18, 2014
5355512
Load image from bundle
usami-k Jun 26, 2014
5b19d0c
Optimized the memory used by picture chooser in iOS
Jun 27, 2014
0ec48ce
fix init
Jun 27, 2014
4e7365a
3.2.1-beta1 updates for nuspec
slodge Jun 29, 2014
cfac3f3
Fixing .pp files
steveydee82 Jun 30, 2014
dc1d53e
* Fixed bug in Email.Touch, where the EmailCompose dialog wasn't show…
Laumania Jun 30, 2014
2c9db06
* Changed indentation from tabs to spaces (did it manually, as I coul…
Laumania Jun 30, 2014
49b8915
Fix WriteFile flushing stream more than once
toolboc Jul 4, 2014
a8d6779
Merge pull request #726 from usami-k/TouchLocalFileImageLoader
slodge Jul 10, 2014
da35e14
Merge remote-tracking branch 'mvvmorigin/v3.1' into universalapping
slodge Jul 23, 2014
008d482
Load image from bundle
usami-k Jun 26, 2014
d294251
* Fixed bug in Email.Touch, where the EmailCompose dialog wasn't show…
Laumania Jun 30, 2014
bb9f106
* Changed indentation from tabs to spaces (did it manually, as I coul…
Laumania Jun 30, 2014
398fa1e
Merge branch 'v3.1' of github.com:softlion/MvvmCross into universalap…
slodge Jul 27, 2014
0dadf88
Merge branch 'v3.1' of github.com:dedalebeda/MvvmCross into universal…
slodge Jul 27, 2014
425eb74
Fixup after merge of #728
slodge Jul 27, 2014
c3f86cd
Improved try/catch implementation
slodge Jul 27, 2014
541d906
Add serialize loop handling to prevent crashing for circular loops
pcmichaels Jul 29, 2014
8dbb8d1
Merge branch 'v3.1' of https://github.com/MvvmCross/MvvmCross into v3.1
Jul 29, 2014
87bd67c
Merge pull request #753 from pcmichaels/v3.1
slodge Aug 18, 2014
9d42747
PictureChooser.Touch does not upscale image to maxPixelDimension anymore
Aug 25, 2014
c7ffaf8
Merge remote-tracking branch 'mvvmorigin/v3.1' into universalapping
slodge Aug 25, 2014
5ea459a
Updated WindowsCommon PhoneCall Plugin to use tel: protocol on win81 …
stoneman Sep 16, 2014
1df8c08
WP8.1 fix for PictureChooser plugin, needs testing
stoneman Sep 17, 2014
b342da7
Tested and fixed WP8.1 PictureChooser plugin
stoneman Sep 17, 2014
ce0663c
Supported iOS 8 LocationService setup
Sep 22, 2014
e2384dd
Avoid enumeration of entire folder contents when checking if a file e…
vegardlarsen Oct 13, 2014
1c700d0
Changed .Touch plugin projects to use Xamarin.iOS.dll instead of mono…
lothrop Oct 21, 2014
6662a15
Email Plugin: When trying to send email on android, only show apps ac…
mgjhl Oct 22, 2014
d403d7c
Do not use a title for the intent chooser, as to avoid breaking local…
mgjhl Oct 22, 2014
c88a9f6
Changed project types of iOS projects.
lothrop Oct 23, 2014
c187a3c
Merge pull request #812 from mgjhl/3.2
slodge Oct 24, 2014
3f35d78
Initialize the media capture.
luke-barnett Oct 29, 2014
be19b69
Added Heading (Course) to location plugin for Windows Phone
trik Oct 29, 2014
baecf96
Bye API 8. Hello API 10
Cheesebaron Oct 31, 2014
158876d
Merge pull request #818 from luke-barnett/3.2
slodge Nov 13, 2014
65a6365
Merge remote-tracking branch 'origin/3.2' into 3.5
hollywoof Nov 13, 2014
f2e3f98
Merge branch '64bitshizzle' of github.com:lothrop/MvvmCross into 3.5
hollywoof Nov 13, 2014
47d01d1
Remove old import targets
hollywoof Nov 14, 2014
dc8b025
Add .nuget package restore to All_Incl_Mac
tofutim Dec 10, 2014
1975fed
Dispose cache image to assist with #851
hollywoof Dec 12, 2014
ab8acfb
just droid resource files
hollywoof Dec 12, 2014
569f714
Avoid native picker view controller leaking. Fixes MvvmCross/MvvmCros…
vzsg Jan 18, 2015
42e0f00
Location plugin provides event to track permission now
Jan 29, 2015
52119d1
Mvx.Plugin.Locaiton: OnPermissionChanged is EventHandler<T> now inste…
Jan 29, 2015
26f9b26
Initial merge (finally!) of GetFoldersIn changes from #724
hollywoof Feb 8, 2015
9c1b2fd
Merge of #730 code
hollywoof Feb 8, 2015
ada3e25
Random runtime upgrades
tofutim Feb 23, 2015
2502afc
Add Unified configuration for XamMac.Unified; remove Unified from oth…
tofutim Feb 23, 2015
334637c
Clean up Unified config mess, rename to Mac config
tofutim Feb 27, 2015
de5096e
MvxDynamicImageHelper not reset when recycling view/cell during scroll
PaulLeman Mar 8, 2015
fadf553
Support GMail-App 5 and multiple file attachments
Dragon160 Mar 11, 2015
abe704c
Restricted attached file access. Improved foreach-loop.
Dragon160 Mar 12, 2015
2dcbf92
Merge pull request #939 from Dragon160/patch-1
lothrop Mar 12, 2015
236c111
Replaced manual Stream.Close() with using.
lothrop Mar 12, 2015
2b6eefd
Merge branch 'unifiedconfig' of https://github.com/loqu8/MvvmCross in…
hollywoof Mar 18, 2015
7ed74a5
Merge remote-tracking branch 'origin/3.5' into 3.5
hollywoof Mar 18, 2015
a2bb82a
MvxAndroidLocalFileImageLoader: implemented mem-cache
Mar 30, 2015
3698399
Fixed identation (tabs changed to spaces)
Mar 31, 2015
c1e0e4e
EnsureFolderExists support nested folders on Windows
guillaume-fr Apr 23, 2015
db451c5
Implement async file for windows and optimize WriteFile
guillaume-fr Apr 23, 2015
70d465c
Await stream action in windows async file plugin
guillaume-fr Apr 23, 2015
796eaa6
Configurable root folder for WPF file store
guillaume-fr Apr 24, 2015
91fdb80
ability to clear the Download cache
guillaume-fr Apr 27, 2015
07037f8
Migrate to Automatic Package Restore
kjeremy Apr 30, 2015
b3331b0
Merge pull request #980 from guillaume-fr/3.5-cleardownloadcache
slodge Apr 30, 2015
407559a
Reimplement LayoutInflaterCompat in MvvmCross.
kjeremy May 1, 2015
f6f0c35
Merge pull request #974 from guillaume-fr/3.5-winnestedfolders
slodge May 2, 2015
48bf675
Just resource autogen files
hollywoof May 2, 2015
c712e66
Merge remote-tracking branch 'origin/3.5' into 3.5
hollywoof May 2, 2015
8ea37f6
Explicit default value for _rootFolder as suggested by @slodge
guillaume-fr May 4, 2015
87977d9
IMvxFileStoreAsync for WindowsPhone
stoneman May 4, 2015
ad98472
remove useless memorystream allocations
guillaume-fr May 5, 2015
ae2bd6c
Merge remote-tracking branch 'refs/remotes/MvvmCross/3.5'
guillaume-fr May 5, 2015
1acd719
Merge pull request #3 from guillaume-fr/3.5-winasyncfiles
stoneman May 10, 2015
28bdff4
IMvxFileStoreAsync with CancellationToken and iOS/Android/WPF/WP impl…
stoneman May 10, 2015
246fe7c
Merge branch '3.5-wpasyncfilestore' of https://github.com/jonstoneman…
stoneman May 10, 2015
80247c9
Windows Common/Store FileStore Cancellation Token support, copied fil…
stoneman May 10, 2015
a04bcfc
File renamed to match class name change. WindowsStore project file m…
stoneman May 10, 2015
085f737
Load local images asynchronously and scale them down for android give…
gentledepp May 11, 2015
4d89b52
re-added cache-support of 3.5
gentledepp May 11, 2015
275eb1d
Async image loading
gentledepp May 14, 2015
04f0f20
Downloadcache - all callback interfaces changed to use async Task<T>
gentledepp May 14, 2015
a2f0352
Added missing 'using's and 'await's to fix some nasty race condition …
stoneman May 20, 2015
61d6719
Added registration of IMvxFileStoreAsync plugins for WindowsCommon an…
stoneman May 20, 2015
41270db
Fixed queuing unindexed files
Jun 2, 2015
e9a6394
Added dialogTitle for Android Chooser. Short XML doc and attachment l…
Cheesebaron Jun 3, 2015
4a57dde
Merge pull request #993 from jonstoneman/3.5-wpasyncfilestore
martijn00 Jun 10, 2015
444495a
Location Plugin: corrected android error code when location tempraril…
Jun 11, 2015
338f56f
Plugins.Location.Droid: ensure Permission changed as soon as service …
Jun 15, 2015
5e46dac
Merge pull request #1019 from MvvmCross/cb-3.5-email
martijn00 Jun 16, 2015
6a5ce19
Merge pull request #978 from guillaume-fr/3.5-wpf-filestore-cfg
martijn00 Jun 16, 2015
4b4c327
Merge pull request #898 from SeeD-Seifer/3.5
martijn00 Jun 16, 2015
c67da19
Merge pull request #1005 from gentledepp/3.5_downloadcache_all_async
martijn00 Jun 16, 2015
49b50a8
Update to latest JSON.Net
Cheesebaron Jun 18, 2015
07fbf3c
Fix for #1041. UIKit methods cannot be invoked off main thread. We ne…
Cheesebaron Jun 30, 2015
d887202
Updated nuspecs
Cheesebaron Jun 30, 2015
23fd304
Removed Fragging and FullFragging
martijn00 Jul 2, 2015
dcd66f4
Fix for https://github.com/MvvmCross/MvvmCross/issues/1050. It solved…
Jul 5, 2015
ad300f8
Merge pull request #1051 from JanZeman/3.5
martijn00 Jul 9, 2015
18ae49d
Back to sync
Cheesebaron Jul 13, 2015
150cd43
(•̀o•́)ง Droid and iOS seems to be working again!
Cheesebaron Jul 13, 2015
c12ad45
fixed disposing response stream after finishing successAction
Jul 14, 2015
5cab7a7
Fixed crash if same picture is added twice
PelleRavn Jul 16, 2015
d80220d
Merge pull request #1065 from SButterfly/4.0
martijn00 Jul 17, 2015
c332b93
ᕦ(ò_óˇ)ᕤ fixed all nuspecs
Cheesebaron Jul 17, 2015
f13f71b
Merge branch 'master' of C:\Users\Martijn\Documents\MvvmCrossMartijn …
martijn00 Sep 3, 2015
3078f0c
Move plugins to root
martijn00 Sep 3, 2015
c4808fe
Add nuspecs
martijn00 Sep 3, 2015
b92c73f
Added nuget content
martijn00 Sep 3, 2015
cdca09f
Nuspec fixes
martijn00 Sep 3, 2015
cb0b9f9
Rename SQLite pcl project
martijn00 Sep 3, 2015
4b45995
Fix namings
martijn00 Sep 3, 2015
34de6d2
Fix output path
martijn00 Sep 3, 2015
0764b79
Change namespace to MvvmCross
martijn00 Sep 3, 2015
de31837
Mass renaming
martijn00 Sep 3, 2015
5cef138
Add plugins solution
martijn00 Sep 3, 2015
7544bc3
More renaming
martijn00 Sep 4, 2015
4423573
Add all projects to solution
martijn00 Sep 4, 2015
d3b631d
Fix all project references and nugets
martijn00 Sep 4, 2015
21796da
Rename all projects
martijn00 Sep 4, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{1BA31472-796C-4407-9183-5F3C29E5B0C4}</ProjectGuid>
<ProjectTypeGuids>{EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>MvvmCross.Plugins.Accelerometer.Droid</RootNamespace>
<AssemblyName>MvvmCross.Plugins.Accelerometer.Droid</AssemblyName>
<FileAlignment>512</FileAlignment>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<TargetFrameworkVersion>v2.3</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>True</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>False</Optimize>
<OutputPath>..\..\bin\Debug\Mvx\Droid</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidLinkMode>None</AndroidLinkMode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>True</Optimize>
<OutputPath>..\..\bin\Release\Mvx\Droid</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AndroidUseSharedRuntime>False</AndroidUseSharedRuntime>
</PropertyGroup>
<ItemGroup>
<Reference Include="Mono.Android" />
<Reference Include="mscorlib" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Plugin.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="MvxAccelerometer.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\CrossCore\Cirrious.CrossCore.Droid\Cirrious.CrossCore.Droid.csproj">
<Project>{CAF8935F-56FE-4485-9D34-4A38FE79F6C9}</Project>
<Name>Cirrious.CrossCore.Droid</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\..\CrossCore\Cirrious.CrossCore\Cirrious.CrossCore.csproj">
<Project>{CFF6F25A-3C3B-44EE-A54C-2ED4AAFF3ADB}</Project>
<Name>Cirrious.CrossCore</Name>
</ProjectReference>
<ProjectReference Include="..\Cirrious.MvvmCross.Plugins.Accelerometer\Cirrious.MvvmCross.Plugins.Accelerometer.csproj">
<Project>{B81C8F9A-FE2C-4807-90BA-D34CB25D8CE6}</Project>
<Name>Cirrious.MvvmCross.Plugins.Accelerometer</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Novell\Novell.MonoDroid.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
@@ -0,0 +1,105 @@
// <copyright file="MvxAccelerometer.cs" company="Cirrious">
// (c) Copyright Cirrious. http://www.cirrious.com
// This source is subject to the Microsoft Public License (Ms-PL)
// Please see license.txt on http://opensource.org/licenses/ms-pl.html
// All other rights reserved.
// </copyright>
//
// Project Lead - Stuart Lodge, Cirrious. http://www.cirrious.com - Hire me - I'm worth it!

using System;
using Android.Content;
using Android.Hardware;
using Cirrious.CrossCore.Core;
using Cirrious.CrossCore.Droid;
using Cirrious.CrossCore.Exceptions;
using Cirrious.CrossCore;

namespace MvvmCross.Plugins.Accelerometer.Droid
{
public class MvxAccelerometer
: Java.Lang.Object
, ISensorEventListener
, IMvxAccelerometer
{
private Sensor _accelerometer;
private SensorManager _sensorManager;

public void Start()
{
if (_accelerometer != null)
{
throw new MvxException("Accelerometer already started");
}

var globals = Mvx.Resolve<IMvxAndroidGlobals>();
_sensorManager = (SensorManager) globals.ApplicationContext.GetSystemService(Context.SensorService);
if (_sensorManager == null)
throw new MvxException("Failed to find SensorManager");

_accelerometer = _sensorManager.GetDefaultSensor(SensorType.Accelerometer);
if (_accelerometer == null)
throw new MvxException("Failed to find Accelerometer");

// It is not necessary to get accelerometer events at a very high
// rate, by using a slower rate (SENSOR_DELAY_UI), we get an
// automatic low-pass filter, which "extracts" the gravity component
// of the acceleration. As an added benefit, we use less power and
// CPU resources.
_sensorManager.RegisterListener(this, _accelerometer, SensorDelay.Ui);
}

public void Stop()
{
if (_accelerometer == null)
{
throw new MvxException("Accelerometer not started");
}
_sensorManager.UnregisterListener(this);
_sensorManager = null;
_accelerometer = null;
}

public void OnAccuracyChanged(Sensor sensor, SensorStatus accuracy)
{
// ignored
}

public void OnSensorChanged(SensorEvent e)
{
if (e.Sensor.Type != SensorType.Accelerometer)
return;

var reading = ToReading(e.Values[0], e.Values[1], e.Values[2]);

LastReading = reading.Clone();

var handler = ReadingAvailable;

if (handler == null)
return;

handler(this, new MvxValueEventArgs<MvxAccelerometerReading>(reading));
}

private static MvxAccelerometerReading ToReading(double x, double y, double z)
{
var reading = new MvxAccelerometerReading
{
X = x,
Y = y,
Z = z,
};
return reading;
}

public bool Started
{
get { return _accelerometer != null; }
}

public MvxAccelerometerReading LastReading { get; private set; }

public event EventHandler<MvxValueEventArgs<MvxAccelerometerReading>> ReadingAvailable;
}
}
23 changes: 23 additions & 0 deletions Accelerometer/MvvmCross.Plugins.Accelerometer.Droid/Plugin.cs
@@ -0,0 +1,23 @@
// <copyright file="Plugin.cs" company="Cirrious">
// (c) Copyright Cirrious. http://www.cirrious.com
// This source is subject to the Microsoft Public License (Ms-PL)
// Please see license.txt on http://opensource.org/licenses/ms-pl.html
// All other rights reserved.
// </copyright>
//
// Project Lead - Stuart Lodge, Cirrious. http://www.cirrious.com - Hire me - I'm worth it!

using Cirrious.CrossCore;
using Cirrious.CrossCore.Plugins;

namespace MvvmCross.Plugins.Accelerometer.Droid
{
public class Plugin
: IMvxPlugin
{
public void Load()
{
Mvx.RegisterSingleton<IMvxAccelerometer>(new MvxAccelerometer());
}
}
}
@@ -0,0 +1,39 @@
// <copyright file="AssemblyInfo.cs" company="Cirrious">
// (c) Copyright Cirrious. http://www.cirrious.com
// This source is subject to the Microsoft Public License (Ms-PL)
// Please see license.txt on http://opensource.org/licenses/ms-pl.html
// All other rights reserved.
// </copyright>
//
// Project Lead - Stuart Lodge, Cirrious. http://www.cirrious.com - Hire me - I'm worth it!

using System.Reflection;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.

[assembly: AssemblyTitle("Cirrious.MvvmCross.Plugins.Accelerometer.Droid")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Cirrious")]
[assembly: AssemblyProduct("Cirrious.MvvmCross.Plugins.Accelerometer.Droid")]
[assembly: AssemblyCopyright("Copyright � 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]

[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{ED445165-3EBC-4474-8178-A2C3A41A18FD}</ProjectGuid>
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>MvvmCross.Plugins.Accelerometer.Touch</RootNamespace>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<AssemblyName>MvvmCross.Plugins.Accelerometer.Touch</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>True</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>False</Optimize>
<OutputPath>..\..\bin\Debug\Mvx\Touch</OutputPath>
<DefineConstants>DEBUG;</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
<Optimize>True</Optimize>
<OutputPath>..\..\bin\Release\Mvx\Touch</OutputPath>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<ConsolePause>False</ConsolePause>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Xamarin.iOS" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\CrossCore\Cirrious.CrossCore\Cirrious.CrossCore.csproj">
<Project>{CFF6F25A-3C3B-44EE-A54C-2ED4AAFF3ADB}</Project>
<Name>Cirrious.CrossCore</Name>
</ProjectReference>
<ProjectReference Include="..\Cirrious.MvvmCross.Plugins.Accelerometer\Cirrious.MvvmCross.Plugins.Accelerometer.csproj">
<Project>{B81C8F9A-FE2C-4807-90BA-D34CB25D8CE6}</Project>
<Name>Cirrious.MvvmCross.Plugins.Accelerometer</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="Plugin.cs" />
<Compile Include="SimpleAccelerometer.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
</Project>
24 changes: 24 additions & 0 deletions Accelerometer/MvvmCross.Plugins.Accelerometer.Touch/Plugin.cs
@@ -0,0 +1,24 @@
// <copyright file="Plugin.cs" company="Cirrious">
// (c) Copyright Cirrious. http://www.cirrious.com
// This source is subject to the Microsoft Public License (Ms-PL)
// Please see license.txt on http://opensource.org/licenses/ms-pl.html
// All other rights reserved.
// </copyright>
//
// Project Lead - Stuart Lodge, Cirrious. http://www.cirrious.com - Hire me - I'm worth it!


using Cirrious.CrossCore;
using Cirrious.CrossCore.Plugins;

namespace MvvmCross.Plugins.Accelerometer.Touch
{
public class Plugin
: IMvxPlugin
{
public void Load()
{
Mvx.RegisterSingleton<IMvxAccelerometer>(new MvxAccelerometer());
}
}
}