Skip to content

Commit

Permalink
Fix-up readme and add in workaround for newer .net core sdk (xamarin#473
Browse files Browse the repository at this point in the history
)
  • Loading branch information
jamesmontemagno authored and Redth committed Aug 16, 2018
1 parent 501892e commit 7abdaad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 28 deletions.
3 changes: 3 additions & 0 deletions Xamarin.Essentials/Xamarin.Essentials.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@
<Reference Include="System.Numerics" />
<Reference Include="System.Numerics.Vectors" />
</ItemGroup>
<ItemGroup>
<None Include="**\*.cs" Exclude="$(DefaultItemExcludes);$(DefaultExcludesInProjectFolder)" />
</ItemGroup>
<Import Project="$(MSBuildSDKExtrasTargets)" Condition="Exists('$(MSBuildSDKExtrasTargets)')" />
<Import Project="$(MSBuildThisFileDirectory)mdoc.targets" />
<Import Project="$(MSBuildThisFileDirectory)..\CodeStyles.targets" />
Expand Down
29 changes: 1 addition & 28 deletions nugetreadme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,37 +10,10 @@ Ensure that you install Xamarin.Essentials into all of your projects.
For Android projects there is a small amount of setup needed to handle permissions. Please follow our short guide at:
http://aka.ms/essentials-getstarted


## Changes for 0.9.1-preview

If you are upgrading from an earlier version there are a few changes to the API that may affect your code:

* Android: VersionTracking has been reset
* SensorSpeed.Ui is now SensorSpeed.UI
* BatteryPowerSource.Ac is now BatteryPowerSource.AC
* Change to generic EventHandlers for Accelerometer, Battery, Compass, Connectivity, Display Metrics, Magnetometer, OrientationSensor, Gyroscope, and Power.
* BrowserLaunchType is now BrowserLaunchMode

You may have registered an event handler for one of these:

Gyroscope.ReadingChanged += OnReadingChanged;

and then implemented the handler:

void OnReadingChanged(GyroscopeChangedEventArgs e)
{
}

Instead of using a custom EventHandler we now use EventHandler<T> which always pass in an object as the first parameter:

void OnReadingChanged(object sender, GyroscopeChangedEventArgs e)
{
}

## Release Notes

See our full release notes: http://aka.ms/essentials-releasenotes


## Feedback, Issues, & Feature Requests

We would love to hear from you simply head to: http://aka.ms/essentialsfeedback

0 comments on commit 7abdaad

Please sign in to comment.