Skip to content

Commit

Permalink
[safari] removed unused package
Browse files Browse the repository at this point in the history
  • Loading branch information
conceptdev committed Sep 5, 2015
1 parent e611faa commit f21be5c
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 24 deletions.
4 changes: 0 additions & 4 deletions SafariViewController/csharp/SafariViewDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@
<Reference Include="System.Xml" />
<Reference Include="System.Core" />
<Reference Include="Xamarin.iOS" />
<Reference Include="Calabash">
<HintPath>packages\Xamarin.TestCloud.Agent.0.13.0\lib\Xamarin.iOS10\Calabash.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\Contents.json" />
Expand All @@ -79,7 +76,6 @@
<ItemGroup>
<None Include="Info.plist" />
<None Include="Entitlements.plist" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />
Expand Down
7 changes: 5 additions & 2 deletions SafariViewController/csharp/ViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,24 @@ public override void ViewDidLoad ()

openButton.TouchUpInside += (sender, e) => {
var sfvc = new SFSafariViewController (new NSUrl("http://xamarin.com"),true);

PresentViewController(sfvc, true, null);
};

}

// API suggests this is required - but the dismiss seems to work without it
// (ie. this isn't even getting called)
[Foundation.Export ("safariViewControllerDidFinish:")]
public void DidFinish (SFSafariViewController controller)
{
DismissViewController (true, null);
}



public override void DidReceiveMemoryWarning ()
{
base.DidReceiveMemoryWarning ();
// Release any cached data, images, etc that aren't in use.
}
}
}
Expand Down
4 changes: 0 additions & 4 deletions SafariViewController/csharp/packages.config

This file was deleted.

4 changes: 0 additions & 4 deletions SafariViewController/fsharp/SafariViewDemoFS.fsproj
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@
<Reference Include="mscorlib" />
<Reference Include="FSharp.Core" />
<Reference Include="Xamarin.iOS" />
<Reference Include="Calabash">
<HintPath>packages\Xamarin.TestCloud.Agent.0.13.0\lib\Xamarin.iOS10\Calabash.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\Contents.json" />
Expand All @@ -92,7 +89,6 @@
<ItemGroup>
<None Include="Info.plist" />
<None Include="Entitlements.plist" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Compile Include="ViewController.fs" />
Expand Down
14 changes: 8 additions & 6 deletions SafariViewController/fsharp/ViewController.fs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ type ViewController () as x =
let sfvc = new SFSafariViewController (new NSUrl("http://xamarin.com"), true)
x.PresentViewController (sfvc, true, null)

// still trying to figure this bit out...
[<Export("safariViewControllerDidFinish:")>]
let DidFinish (controller: SFSafariViewController) =
x.DismissViewController (true, null)

interface ISFSafariViewControllerDelegate

override x.DidReceiveMemoryWarning () =
// Releases the view if it doesn't have a superview.
base.DidReceiveMemoryWarning ()
Expand All @@ -34,9 +41,4 @@ type ViewController () as x =
toInterfaceOrientation <> UIInterfaceOrientation.PortraitUpsideDown
else
true

// interface ISFSafariViewControllerDelegate

// [<Export("safariViewControllerDidFinish:")>]
// DidFinish (SFSafariViewController: controller) =
// DismissViewController (true, null)

4 changes: 0 additions & 4 deletions SafariViewController/fsharp/packages.config

This file was deleted.

0 comments on commit f21be5c

Please sign in to comment.