diff --git a/SimpleBackgroundTransfer/Metadata.xml b/SimpleBackgroundTransfer/Metadata.xml deleted file mode 100644 index 46458df52..000000000 --- a/SimpleBackgroundTransfer/Metadata.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - f93fc3b4-12d5-4002-96ba-a638b89a2eac - false - Beginner - Backgrounding - Starter - true - Simple app that illustrates how to use background transfers.> - diff --git a/SimpleBackgroundTransfer/README.md b/SimpleBackgroundTransfer/README.md index c88477d98..6ac09fe2f 100644 --- a/SimpleBackgroundTransfer/README.md +++ b/SimpleBackgroundTransfer/README.md @@ -10,13 +10,10 @@ urlFragment: simplebackgroundtransfer --- # SimpleBackgroundTransfer -## Overview +SimpleBackgroundTransfer is a simple app that illustrates how to use background transfers - press the **Start** button to initiate a large image download in the background. -SimpleBackgroundTransfer is a simple app that illustrates how to use background transfers. +The app must be properly signed to run on the simulator, so ensure that the bundle identifier is correct and your provisioning profiles are configured correctly (otherwise you might see [this isssue](https://github.com/xamarin/xamarin-macios/issues/7101)). -Right now this sample only works on iOS devices (not the simulator). +![App showing a world map image](Screenshots/02-sml.png) -![App showing a world map image](Screenshots/IMG_0002.PNG) - -This is a port of Apple's WWDC2013 sample SimpleBackgroundTransfer. -Link to Appleā€™s sample:https://developer.apple.com/downloads/index.action?name=WWDC%202013# +This is a port of Apple's [WWDC2013 sample](https://developer.apple.com/downloads/index.action?name=WWDC%202013) SimpleBackgroundTransfer. diff --git a/SimpleBackgroundTransfer/Screenshots/01.png b/SimpleBackgroundTransfer/Screenshots/01.png new file mode 100644 index 000000000..201304f28 Binary files /dev/null and b/SimpleBackgroundTransfer/Screenshots/01.png differ diff --git a/SimpleBackgroundTransfer/Screenshots/02-sml.png b/SimpleBackgroundTransfer/Screenshots/02-sml.png new file mode 100644 index 000000000..89f610fab Binary files /dev/null and b/SimpleBackgroundTransfer/Screenshots/02-sml.png differ diff --git a/SimpleBackgroundTransfer/Screenshots/02.png b/SimpleBackgroundTransfer/Screenshots/02.png new file mode 100644 index 000000000..24494bd7d Binary files /dev/null and b/SimpleBackgroundTransfer/Screenshots/02.png differ diff --git a/SimpleBackgroundTransfer/Screenshots/IMG_0001.PNG b/SimpleBackgroundTransfer/Screenshots/IMG_0001.PNG deleted file mode 100644 index 91f0180d3..000000000 Binary files a/SimpleBackgroundTransfer/Screenshots/IMG_0001.PNG and /dev/null differ diff --git a/SimpleBackgroundTransfer/Screenshots/IMG_0002.PNG b/SimpleBackgroundTransfer/Screenshots/IMG_0002.PNG deleted file mode 100644 index f940cc164..000000000 Binary files a/SimpleBackgroundTransfer/Screenshots/IMG_0002.PNG and /dev/null differ diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Contents.json b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..d16c4c44b --- /dev/null +++ b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1 @@ +{"images":[{"idiom":"iphone","filename":"Icon.png","size":"57x57","scale":"1x"},{"idiom":"iphone","filename":"Icon@2x.png","size":"57x57","scale":"2x"},{"idiom":"iphone","filename":"Icon-60@2x.png","size":"60x60","scale":"2x"},{"idiom":"iphone","filename":"Icon-Small.png","size":"29x29","scale":"1x"},{"idiom":"iphone","filename":"Icon-Small@2x.png","size":"29x29","scale":"2x"},{"idiom":"iphone","filename":"Icon-Small-40@2x.png","size":"40x40","scale":"2x"}],"info":{"version":1,"author":"xcode"}} \ No newline at end of file diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png new file mode 100644 index 000000000..c8bd3bde2 Binary files /dev/null and b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png differ diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon-Small-40@2x.png b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png similarity index 100% rename from SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon-Small-40@2x.png rename to SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Icon-Small-40@2x.png diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon-Small.png b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Icon-Small.png similarity index 100% rename from SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon-Small.png rename to SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Icon-Small.png diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon-Small@2x.png b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png similarity index 100% rename from SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon-Small@2x.png rename to SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon.png b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Icon.png similarity index 100% rename from SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon.png rename to SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Icon.png diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon@2x.png b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Icon@2x.png similarity index 100% rename from SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon@2x.png rename to SimpleBackgroundTransfer/SimpleBackgroundTransfer/Assets.xcassets/AppIcon.appiconset/Icon@2x.png diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Entitlements.plist b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Entitlements.plist new file mode 100644 index 000000000..0c67376eb --- /dev/null +++ b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Entitlements.plist @@ -0,0 +1,5 @@ + + + + + diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Info.plist b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Info.plist index c2583eeae..f4ffcb84d 100644 --- a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Info.plist +++ b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Info.plist @@ -11,17 +11,18 @@ UIMainStoryboardFile MainStoryboard MinimumOSVersion - 9.0 + 12.0 CFBundleIdentifier com.xamarin.BackgroundSession - CFBundleIconFiles - - Icon - Icon@2x - Icon-Small - Icon-Small@2x - Icon-60@2x - Icon-Small-40@2x - + CFBundleShortVersionString + 1 + CFBundleVersion + 1 + XSAppIconAssets + Assets.xcassets/AppIcon.appiconset + CFBundleName + BgTransfer + UILaunchStoryboardName + LaunchScreen diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Default-568h@2x.png b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Default-568h@2x.png deleted file mode 100644 index b3f66780c..000000000 Binary files a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Default-568h@2x.png and /dev/null differ diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Default.png b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Default.png deleted file mode 100644 index 7ad63b043..000000000 Binary files a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Default.png and /dev/null differ diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Default@2x.png b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Default@2x.png deleted file mode 100644 index 8d59426f3..000000000 Binary files a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Default@2x.png and /dev/null differ diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon-60@2x.png b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon-60@2x.png index c8bd3bde2..4b03c4270 100644 Binary files a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon-60@2x.png and b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon-60@2x.png differ diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon-60@3x.png b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon-60@3x.png new file mode 100644 index 000000000..b03ca1bbc Binary files /dev/null and b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/Icon-60@3x.png differ diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/LaunchScreen.storyboard b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/LaunchScreen.storyboard new file mode 100644 index 000000000..a639c2f1a --- /dev/null +++ b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/Resources/LaunchScreen.storyboard @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/SimpleBackgroundTransfer.csproj b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/SimpleBackgroundTransfer.csproj index 07cef65a7..5c75bd082 100644 --- a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/SimpleBackgroundTransfer.csproj +++ b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/SimpleBackgroundTransfer.csproj @@ -22,11 +22,13 @@ DEBUG; prompt 4 - None + SdkOnly false true x86_64 NSUrlSessionHandler + iPhone Developer + Entitlements.plist full @@ -38,6 +40,7 @@ false x86_64 NSUrlSessionHandler + iPhone Developer true @@ -54,6 +57,7 @@ ARM64 NSUrlSessionHandler + Entitlements.plist full @@ -65,6 +69,7 @@ false ARM64 NSUrlSessionHandler + Entitlements.plist full @@ -72,12 +77,12 @@ bin\iPhone\Ad-Hoc prompt 4 - iPhone Distribution + iPhone Developer true false - Automatic:AdHoc ARM64 NSUrlSessionHandler + Entitlements.plist full @@ -85,11 +90,11 @@ bin\iPhone\AppStore prompt 4 - iPhone Distribution + iPhone Developer false - Automatic:AppStore ARM64 NSUrlSessionHandler + Entitlements.plist @@ -102,6 +107,7 @@ + @@ -113,23 +119,26 @@ + - - - - - - - + - + + + + + + + + + \ No newline at end of file diff --git a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/SimpleBackgroundTransferViewController.designer.cs b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/SimpleBackgroundTransferViewController.designer.cs index a18c2ed14..33ab302b1 100644 --- a/SimpleBackgroundTransfer/SimpleBackgroundTransfer/SimpleBackgroundTransferViewController.designer.cs +++ b/SimpleBackgroundTransfer/SimpleBackgroundTransfer/SimpleBackgroundTransferViewController.designer.cs @@ -1,50 +1,35 @@ -// WARNING -// -// This file has been generated automatically by Xamarin Studio to store outlets and -// actions made in the UI designer. If it is removed, they will be lost. -// Manual changes to this file may not be handled correctly. -// +// WARNING +// +// This file has been generated automatically by Visual Studio from the outlets and +// actions declared in your storyboard file. +// Manual changes to this file will not be maintained. +// using Foundation; +using System; using System.CodeDom.Compiler; namespace SimpleBackgroundTransfer { - [Register ("SimpleBackgroundTransferViewController")] - partial class SimpleBackgroundTransferViewController - { - [Outlet] - UIKit.UIBarButtonItem crashButton { get; set; } - - [Outlet] - UIKit.UIImageView imageView { get; set; } - - [Outlet] - UIKit.UIProgressView progressView { get; set; } - - [Outlet] - UIKit.UIBarButtonItem startButton { get; set; } - - void ReleaseDesignerOutlets () - { - if (crashButton != null) { - crashButton.Dispose (); - crashButton = null; - } - - if (imageView != null) { - imageView.Dispose (); - imageView = null; - } - - if (progressView != null) { - progressView.Dispose (); - progressView = null; - } - - if (startButton != null) { - startButton.Dispose (); - startButton = null; - } - } - } -} + [Register ("SimpleBackgroundTransferViewController")] + partial class SimpleBackgroundTransferViewController + { + [Outlet] + UIKit.UIBarButtonItem crashButton { get; set; } + + + [Outlet] + UIKit.UIImageView imageView { get; set; } + + + [Outlet] + UIKit.UIProgressView progressView { get; set; } + + + [Outlet] + UIKit.UIBarButtonItem startButton { get; set; } + + void ReleaseDesignerOutlets () + { + } + } +} \ No newline at end of file