Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
Merge branch 'release/2.4.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrea.calegari authored and andrea.calegari committed Nov 21, 2017
2 parents ed0aedb + 4c1b5a6 commit b9f499f
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 34 deletions.
Binary file modified docs/android/push_help/fcmkeylocation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/android/push_help/google_services_json.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion sample/NearForms/NearForms.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<HintPath>..\packages\Xamarin.Forms.2.4.0.38779\lib\portable-win+net45+wp80+win81+wpa81\Xamarin.Forms.Xaml.dll</HintPath>
</Reference>
<Reference Include="XamarinBridge.PCL">
<HintPath>..\packages\Xamarin.NearIT.PCL.2.3.0\lib\NearITSDK\XamarinBridge.PCL.dll</HintPath>
<HintPath>..\packages\Xamarin.NearIT.PCL.2.3.1\lib\NearITSDK\XamarinBridge.PCL.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion sample/NearForms/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Xamarin.Forms" version="2.4.0.38779" targetFramework="portable45-net45+win8+wpa81" />
<package id="Xamarin.NearIT.PCL" version="2.3.0" targetFramework="portable45-net45+win8+wpa81" />
<package id="Xamarin.NearIT.PCL" version="2.3.1" targetFramework="portable45-net45+win8+wpa81" />
</packages>
21 changes: 3 additions & 18 deletions sample/iOS/AppDelegate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options)
LoadApplication(new App());

NearBridgeiOS.SetApiKey();
/*var ApiKey = loadApiKey();
Console.WriteLine(ApiKey);
NITManager.SetupWithApiKey(ApiKey);*/

UNUserNotificationCenter.Current.RequestAuthorization(UNAuthorizationOptions.Alert, (approved, err) => {});
UNUserNotificationCenter.Current.Delegate = new UserNotificationDelegate();

CLLocationManager LocationManager = new CLLocationManager();
LocationManager.AuthorizationChanged += (s, e) =>
Expand All @@ -35,25 +35,10 @@ public override bool FinishedLaunching(UIApplication app, NSDictionary options)

LocationManager.RequestAlwaysAuthorization();

UNUserNotificationCenter.Current.RequestAuthorization(UNAuthorizationOptions.Alert, (approved, err) => { });
UNUserNotificationCenter.Current.Delegate = new UserNotificationDelegate();

return base.FinishedLaunching(app, options);
}

public string loadApiKey()
{
NSDictionary settings = NSDictionary.FromFile("Keys.plist");

if (settings != null)
{
var value = settings.ValueForKey(new NSString("apiKey"));
if (value != null) return value.ToString();
}

return "";
}

public override void RegisteredForRemoteNotifications(UIApplication application, NSData deviceToken)
{
Console.WriteLine("RegisteredForRemoteNotifications");
Expand Down
6 changes: 3 additions & 3 deletions sample/iOS/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@
<key>XSAppIconAssets</key>
<string>Assets.xcassets/AppIcon.appiconset</string>
<key>NSLocationAlwaysUsageDescription</key>
<string>New Entry</string>
<string>NearIT</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>New Entry</string>
<string>NearIT</string>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string></string>
<string>NearIT</string>
</dict>
</plist>
18 changes: 9 additions & 9 deletions sample/iOS/NearForms.iOS.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="..\packages\Xamarin.Forms.2.5.0.75255-pre3\build\netstandard1.0\Xamarin.Forms.props" Condition="Exists('..\packages\Xamarin.Forms.2.5.0.75255-pre3\build\netstandard1.0\Xamarin.Forms.props')" />
<Import Project="..\packages\Xamarin.Forms.2.5.0.91635\build\netstandard1.0\Xamarin.Forms.props" Condition="Exists('..\packages\Xamarin.Forms.2.5.0.91635\build\netstandard1.0\Xamarin.Forms.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
Expand Down Expand Up @@ -84,25 +84,25 @@
<Reference Include="System.Core" />
<Reference Include="Xamarin.iOS" />
<Reference Include="Xamarin.Forms.Core">
<HintPath>..\packages\Xamarin.Forms.2.5.0.75255-pre3\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll</HintPath>
<HintPath>..\packages\Xamarin.Forms.2.5.0.91635\lib\Xamarin.iOS10\Xamarin.Forms.Core.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Platform">
<HintPath>..\packages\Xamarin.Forms.2.5.0.75255-pre3\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll</HintPath>
<HintPath>..\packages\Xamarin.Forms.2.5.0.91635\lib\Xamarin.iOS10\Xamarin.Forms.Platform.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Platform.iOS">
<HintPath>..\packages\Xamarin.Forms.2.5.0.75255-pre3\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll</HintPath>
<HintPath>..\packages\Xamarin.Forms.2.5.0.91635\lib\Xamarin.iOS10\Xamarin.Forms.Platform.iOS.dll</HintPath>
</Reference>
<Reference Include="Xamarin.Forms.Xaml">
<HintPath>..\packages\Xamarin.Forms.2.5.0.75255-pre3\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll</HintPath>
<HintPath>..\packages\Xamarin.Forms.2.5.0.91635\lib\Xamarin.iOS10\Xamarin.Forms.Xaml.dll</HintPath>
</Reference>
<Reference Include="NearBridge">
<HintPath>..\packages\Xamarin.NearIT.iOS.2.4.0\lib\NearITSDK\NearBridge.dll</HintPath>
<HintPath>..\packages\Xamarin.NearIT.iOS.2.4.2\lib\NearITSDK\NearBridge.dll</HintPath>
</Reference>
<Reference Include="NeariOSBind">
<HintPath>..\packages\Xamarin.NearIT.iOS.2.4.0\lib\NearITSDK\NeariOSBind.dll</HintPath>
<HintPath>..\packages\Xamarin.NearIT.iOS.2.4.2\lib\NearITSDK\NeariOSBind.dll</HintPath>
</Reference>
<Reference Include="XamarinBridge.PCL">
<HintPath>..\packages\Xamarin.NearIT.iOS.2.4.0\lib\NearITSDK\XamarinBridge.PCL.dll</HintPath>
<HintPath>..\packages\Xamarin.NearIT.iOS.2.4.2\lib\NearITSDK\XamarinBridge.PCL.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
Expand Down Expand Up @@ -134,5 +134,5 @@
<BundleResource Include="Keys.plist" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.CSharp.targets" />
<Import Project="..\packages\Xamarin.Forms.2.5.0.75255-pre3\build\netstandard1.0\Xamarin.Forms.targets" Condition="Exists('..\packages\Xamarin.Forms.2.5.0.75255-pre3\build\netstandard1.0\Xamarin.Forms.targets')" />
<Import Project="..\packages\Xamarin.Forms.2.5.0.91635\build\netstandard1.0\Xamarin.Forms.targets" Condition="Exists('..\packages\Xamarin.Forms.2.5.0.91635\build\netstandard1.0\Xamarin.Forms.targets')" />
</Project>
4 changes: 2 additions & 2 deletions sample/iOS/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Xamarin.Forms" version="2.5.0.75255-pre3" targetFramework="xamarinios10" />
<package id="Xamarin.NearIT.iOS" version="2.4.0" targetFramework="xamarinios10" />
<package id="Xamarin.Forms" version="2.5.0.91635" targetFramework="xamarinios10" />
<package id="Xamarin.NearIT.iOS" version="2.4.2" targetFramework="xamarinios10" />
</packages>

0 comments on commit b9f499f

Please sign in to comment.