Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmontemagno committed Oct 4, 2021
1 parent 7de8204 commit f0b8001
Show file tree
Hide file tree
Showing 11 changed files with 29,771 additions and 70 deletions.
31 changes: 0 additions & 31 deletions nuget/readme.txt
Original file line number Diff line number Diff line change
@@ -1,34 +1,3 @@
Geolocator Readme

For latest changes: https://github.com/jamesmontemagno/GeolocatorPlugin/blob/master/CHANGELOG.md

## EXTREMELY IMPORTANT SETUP
Please follow the guide to properly setup the Geolocator inside of your application:

https://jamesmontemagno.github.io/GeolocatorPlugin/GettingStarted.html

Additionally, see the permission setup below for Android to ensure everything is configured correct.

## Additional Android Permission Setup

This plugin uses the [Current Activity Plugin](https://github.com/jamesmontemagno/CurrentActivityPlugin/blob/master/README.md) to get access to the current Android Activity. Be sure to complete the full setup if a MainApplication.cs file was not automatically added to your application. Please fully read through the [Current Activity Plugin Documentation](https://github.com/jamesmontemagno/CurrentActivityPlugin/blob/master/README.md). At an absolute minimum you must set the following in your Activity's OnCreate method:

```csharp
CrossCurrentActivity.Current.Init(this, bundle);
```

It is highly recommended that you use a custom Application that are outlined in the Current Activity Plugin Documentation](https://github.com/jamesmontemagno/CurrentActivityPlugin/blob/master/README.md)

## Android specific in your BaseActivity or MainActivity (for Xamarin.Forms) add this code:

Add usings:

using Plugin.Permissions;

Then add to Activity:

public override void OnRequestPermissionsResult(int requestCode, string[] permissions, Android.Content.PM.Permission[] grantResults)
{
Plugin.Permissions.PermissionsImplementation.Current.OnRequestPermissionsResult(requestCode, permissions, grantResults);
base.OnRequestPermissionsResult(requestCode, permissions, grantResults);
}
1 change: 0 additions & 1 deletion src/Geolocator.Plugin/Geolocator.Plugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\nuget\readme.txt" PackagePath="readme.txt" Pack="true" />
<Compile Include="**\*.shared.cs" />
</ItemGroup>

Expand Down
11 changes: 4 additions & 7 deletions src/Tests/GeolocatorTests.Droid/GeolocatorTests.Droid.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<AndroidUseLatestPlatformSdk>False</AndroidUseLatestPlatformSdk>
<AssemblyName>GeolocatorTests.Droid</AssemblyName>
<AndroidManifest>Properties\AndroidManifest.xml</AndroidManifest>
<TargetFrameworkVersion>v9.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v10.0</TargetFrameworkVersion>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
<AndroidTlsProvider>
Expand Down Expand Up @@ -73,7 +73,7 @@
<AndroidResource Include="Resources\drawable-xxhdpi\icon.png" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Android\Xamarin.Android.CSharp.targets" />
<ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Geolocator.Plugin\Geolocator.Plugin.csproj">
<Project>{36b8dd43-b679-4d13-8ba9-ded633e7b25f}</Project>
<Name>Geolocator.Plugin</Name>
Expand All @@ -84,11 +84,8 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Plugin.Permissions">
<Version>5.0.0-beta</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms">
<Version>4.0.0.425677</Version>
<Version>5.0.0.2125</Version>
</PackageReference>
</ItemGroup>
</Project>
</Project>
29,772 changes: 29,764 additions & 8 deletions src/Tests/GeolocatorTests.Droid/Resources/Resource.designer.cs

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/Tests/GeolocatorTests.Mac/GeolocatorTests.Mac.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@
</XamMacArch>
</PropertyGroup>
<ItemGroup>
<Reference Include="Plugin.Permissions, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Plugin.Permissions.5.0.0-beta\lib\netstandard2.0\Plugin.Permissions.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="Xamarin.Mac" />
Expand All @@ -87,7 +84,6 @@
<ItemGroup>
<None Include="Info.plist" />
<None Include="Entitlements.plist" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />
Expand Down
4 changes: 0 additions & 4 deletions src/Tests/GeolocatorTests.Mac/packages.config

This file was deleted.

2 changes: 1 addition & 1 deletion src/Tests/GeolocatorTests.UWP/GeolocatorTests.UWP.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
<Version>6.1.7</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms">
<Version>4.0.0.425677</Version>
<Version>5.0.0.2125</Version>
</PackageReference>
</ItemGroup>
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
Expand Down
5 changes: 1 addition & 4 deletions src/Tests/GeolocatorTests.iOS/GeolocatorTests.iOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,8 @@
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Plugin.Permissions">
<Version>5.0.0-beta</Version>
</PackageReference>
<PackageReference Include="Xamarin.Forms">
<Version>4.0.0.425677</Version>
<Version>5.0.0.2125</Version>
</PackageReference>
</ItemGroup>
<ItemGroup>
Expand Down
4 changes: 0 additions & 4 deletions src/Tests/GeolocatorTests.tvOS/GeolocatorTests.tvOS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,6 @@
<CodesignKey>iPhone Distribution</CodesignKey>
</PropertyGroup>
<ItemGroup>
<Reference Include="Plugin.Permissions, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\..\packages\Plugin.Permissions.5.0.0-beta\lib\netstandard2.0\Plugin.Permissions.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
Expand Down Expand Up @@ -170,7 +167,6 @@
<None Include="GettingStarted.Xamarin" />
<None Include="Info.plist" />
<None Include="Entitlements.plist" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />
Expand Down
4 changes: 0 additions & 4 deletions src/Tests/GeolocatorTests.tvOS/packages.config

This file was deleted.

3 changes: 1 addition & 2 deletions src/Tests/GeolocatorTests/GeolocatorTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Plugin.Permissions" Version="5.0.0-beta" />
<PackageReference Include="Xamarin.Forms" Version="4.0.0.425677" />
<PackageReference Include="Xamarin.Forms" Version="5.0.0.2125" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Geolocator.Plugin\Geolocator.Plugin.csproj" />
Expand Down

0 comments on commit f0b8001

Please sign in to comment.