Skip to content
This repository was archived by the owner on Dec 13, 2024. It is now read-only.

Commit c18cd19

Browse files
committed
[FSharpiOSCoolApp] Add F# iOS app to submission samples
1 parent a88d17b commit c18cd19

29 files changed

+581
-0
lines changed

FSharpiOSCoolApp/FSharpiOSCoolApp.sln

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
4+
Project("{f2a71f9b-5d33-465a-a702-920d77279786}") = "FSharpiOSCoolApp", "FSharpiOSCoolApp\FSharpiOSCoolApp.fsproj", "{7131BD89-3F8C-4441-B9C3-8A7FF6E0CA12}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|iPhoneSimulator = Debug|iPhoneSimulator
9+
Release|iPhone = Release|iPhone
10+
Release|iPhoneSimulator = Release|iPhoneSimulator
11+
Debug|iPhone = Debug|iPhone
12+
EndGlobalSection
13+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
14+
{7131BD89-3F8C-4441-B9C3-8A7FF6E0CA12}.Debug|iPhone.ActiveCfg = Debug|iPhone
15+
{7131BD89-3F8C-4441-B9C3-8A7FF6E0CA12}.Debug|iPhone.Build.0 = Debug|iPhone
16+
{7131BD89-3F8C-4441-B9C3-8A7FF6E0CA12}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator
17+
{7131BD89-3F8C-4441-B9C3-8A7FF6E0CA12}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator
18+
{7131BD89-3F8C-4441-B9C3-8A7FF6E0CA12}.Release|iPhone.ActiveCfg = Release|iPhone
19+
{7131BD89-3F8C-4441-B9C3-8A7FF6E0CA12}.Release|iPhone.Build.0 = Release|iPhone
20+
{7131BD89-3F8C-4441-B9C3-8A7FF6E0CA12}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator
21+
{7131BD89-3F8C-4441-B9C3-8A7FF6E0CA12}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator
22+
EndGlobalSection
23+
EndGlobal
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
namespace FSharpiOSCoolApp
2+
3+
open System
4+
5+
open UIKit
6+
open Foundation
7+
8+
[<Register ("AppDelegate")>]
9+
type AppDelegate () =
10+
inherit UIApplicationDelegate ()
11+
12+
override val Window = null with get, set
13+
14+
// This method is invoked when the application is ready to run.
15+
override this.FinishedLaunching (app, options) =
16+
true
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
</dict>
6+
</plist>
Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup>
4+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5+
<Platform Condition=" '$(Platform)' == '' ">iPhoneSimulator</Platform>
6+
<ProjectTypeGuids>{FEACFBD2-3405-455C-9665-78FE426C6842};{F2A71F9B-5D33-465A-A702-920D77279786}</ProjectTypeGuids>
7+
<ProjectGuid>{7131BD89-3F8C-4441-B9C3-8A7FF6E0CA12}</ProjectGuid>
8+
<OutputType>Exe</OutputType>
9+
<RootNamespace>FSharpiOSCoolApp</RootNamespace>
10+
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
11+
<AssemblyName>FSharpiOSCoolApp</AssemblyName>
12+
</PropertyGroup>
13+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhoneSimulator' ">
14+
<DebugSymbols>true</DebugSymbols>
15+
<Optimize>false</Optimize>
16+
<OutputPath>bin\iPhoneSimulator\Debug</OutputPath>
17+
<DefineConstants>DEBUG;ENABLE_TEST_CLOUD</DefineConstants>
18+
<ErrorReport>prompt</ErrorReport>
19+
<MtouchArch>i386</MtouchArch>
20+
<MtouchLink>None</MtouchLink>
21+
<MtouchUseRefCounting>true</MtouchUseRefCounting>
22+
<MtouchUseSGen>true</MtouchUseSGen>
23+
<ConsolePause>false</ConsolePause>
24+
<CodesignKey>iPhone Developer</CodesignKey>
25+
<MtouchDebug>true</MtouchDebug>
26+
<MtouchFastDev>true</MtouchFastDev>
27+
<MtouchProfiling>true</MtouchProfiling>
28+
<PlatformTarget>
29+
</PlatformTarget>
30+
</PropertyGroup>
31+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhone' ">
32+
<DebugSymbols>false</DebugSymbols>
33+
<Optimize>true</Optimize>
34+
<OutputPath>bin\iPhone\Release</OutputPath>
35+
<DefineConstants>
36+
</DefineConstants>
37+
<ErrorReport>prompt</ErrorReport>
38+
<GenerateTailCalls>true</GenerateTailCalls>
39+
<MtouchArch>ARMv7, ARM64</MtouchArch>
40+
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
41+
<ConsolePause>false</ConsolePause>
42+
<CodesignKey>iPhone Distribution: Peter Beaman (ZYWNCWEKU5)</CodesignKey>
43+
<MtouchUseSGen>true</MtouchUseSGen>
44+
<MtouchUseRefCounting>true</MtouchUseRefCounting>
45+
<MtouchFloat32>true</MtouchFloat32>
46+
<PlatformTarget>
47+
</PlatformTarget>
48+
<CodesignProvision>3b5cdfe7-4a51-4b21-b1bd-3823279e04d6</CodesignProvision>
49+
<BuildIpa>true</BuildIpa>
50+
<IpaPackageName>
51+
</IpaPackageName>
52+
</PropertyGroup>
53+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|iPhoneSimulator' ">
54+
<DebugSymbols>false</DebugSymbols>
55+
<Optimize>true</Optimize>
56+
<OutputPath>bin\iPhoneSimulator\Release</OutputPath>
57+
<DefineConstants>
58+
</DefineConstants>
59+
<ErrorReport>prompt</ErrorReport>
60+
<GenerateTailCalls>true</GenerateTailCalls>
61+
<MtouchArch>i386</MtouchArch>
62+
<MtouchLink>None</MtouchLink>
63+
<MtouchUseRefCounting>true</MtouchUseRefCounting>
64+
<MtouchUseSGen>true</MtouchUseSGen>
65+
<CodesignKey>iPhone Developer</CodesignKey>
66+
<ConsolePause>false</ConsolePause>
67+
<PlatformTarget>
68+
</PlatformTarget>
69+
</PropertyGroup>
70+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|iPhone' ">
71+
<DebugSymbols>true</DebugSymbols>
72+
<Optimize>false</Optimize>
73+
<OutputPath>bin\iPhone\Debug</OutputPath>
74+
<DefineConstants>DEBUG;ENABLE_TEST_CLOUD</DefineConstants>
75+
<ErrorReport>prompt</ErrorReport>
76+
<MtouchArch>ARMv7, ARM64</MtouchArch>
77+
<CodesignEntitlements>Entitlements.plist</CodesignEntitlements>
78+
<MtouchFloat32>true</MtouchFloat32>
79+
<MtouchUseRefCounting>true</MtouchUseRefCounting>
80+
<ConsolePause>false</ConsolePause>
81+
<CodesignKey>iPhone Developer</CodesignKey>
82+
<DeviceSpecificBuild>true</DeviceSpecificBuild>
83+
<MtouchDebug>true</MtouchDebug>
84+
<MtouchProfiling>true</MtouchProfiling>
85+
<MtouchUseSGen>true</MtouchUseSGen>
86+
<PlatformTarget>
87+
</PlatformTarget>
88+
</PropertyGroup>
89+
<ItemGroup>
90+
<Reference Include="System" />
91+
<Reference Include="System.Xml" />
92+
<Reference Include="System.Core" />
93+
<Reference Include="mscorlib" />
94+
<Reference Include="FSharp.Core" />
95+
<Reference Include="Xamarin.iOS" />
96+
</ItemGroup>
97+
<ItemGroup>
98+
<InterfaceDefinition Include="Resources\LaunchScreen.xib" />
99+
<InterfaceDefinition Include="Main.storyboard" />
100+
</ItemGroup>
101+
<ItemGroup>
102+
<None Include="Info.plist" />
103+
<None Include="Entitlements.plist" />
104+
</ItemGroup>
105+
<ItemGroup>
106+
<Compile Include="ViewController.fs" />
107+
<Compile Include="AppDelegate.fs" />
108+
<Compile Include="Main.fs" />
109+
</ItemGroup>
110+
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.FSharp.targets" />
111+
<ItemGroup>
112+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\Contents.json" />
113+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\Icon-app-60%403x.png" />
114+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-app-57.png" />
115+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-app-60%402x.png" />
116+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-app-72.png" />
117+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-app-72%402x.png" />
118+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-app-76.png" />
119+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-app-76%402x.png" />
120+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-spotlight-29.png" />
121+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-spotlight-29%402x.png" />
122+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-spotlight-40.png" />
123+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-spotlight-40%402x.png" />
124+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-spp-57%402x.png" />
125+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-watch-29%402x.png" />
126+
<ImageAsset Include="Resources\Images.xcassets\AppIcons.appiconset\icon-watch-29%403x.png" />
127+
</ItemGroup>
128+
</Project>
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleName</key>
6+
<string>FSharpiOSCoolApp</string>
7+
<key>CFBundleIdentifier</key>
8+
<string>com.xamarin360.iospublishworkflow</string>
9+
<key>CFBundleShortVersionString</key>
10+
<string>1.0</string>
11+
<key>CFBundleVersion</key>
12+
<string>1.0</string>
13+
<key>LSRequiresIPhoneOS</key>
14+
<true/>
15+
<key>MinimumOSVersion</key>
16+
<string>9.0</string>
17+
<key>UIDeviceFamily</key>
18+
<array>
19+
<integer>1</integer>
20+
<integer>2</integer>
21+
</array>
22+
<key>UILaunchStoryboardName</key>
23+
<string>LaunchScreen</string>
24+
<key>UIMainStoryboardFile</key>
25+
<string>Main</string>
26+
<key>UIMainStoryboardFile~ipad</key>
27+
<string>Main</string>
28+
<key>UIRequiredDeviceCapabilities</key>
29+
<array>
30+
<string>armv7</string>
31+
</array>
32+
<key>UISupportedInterfaceOrientations</key>
33+
<array>
34+
<string>UIInterfaceOrientationPortrait</string>
35+
<string>UIInterfaceOrientationLandscapeLeft</string>
36+
<string>UIInterfaceOrientationLandscapeRight</string>
37+
</array>
38+
<key>UISupportedInterfaceOrientations~ipad</key>
39+
<array>
40+
<string>UIInterfaceOrientationPortrait</string>
41+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
42+
<string>UIInterfaceOrientationLandscapeLeft</string>
43+
<string>UIInterfaceOrientationLandscapeRight</string>
44+
</array>
45+
<key>XSAppIconAssets</key>
46+
<string>Resources/Images.xcassets/AppIcons.appiconset</string>
47+
</dict>
48+
</plist>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
namespace Test
2+
3+
open UIKit
4+
5+
module Main =
6+
[<EntryPoint>]
7+
let main args =
8+
UIApplication.Main(args, null, "AppDelegate")
9+
0
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6211" systemVersion="14A298i" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="BYZ-38-t0r">
3+
<dependencies>
4+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6204" />
5+
</dependencies>
6+
<scenes>
7+
<!--View Controller-->
8+
<scene sceneID="tne-QT-ifu">
9+
<objects>
10+
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="" sceneMemberID="viewController">
11+
<layoutGuides>
12+
<viewControllerLayoutGuide type="top" id="y3c-jy-aDJ" />
13+
<viewControllerLayoutGuide type="bottom" id="wfy-db-euE" />
14+
</layoutGuides>
15+
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
16+
<rect key="frame" x="0.0" y="0.0" width="600" height="600" />
17+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES" />
18+
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite" />
19+
</view>
20+
</viewController>
21+
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder" />
22+
</objects>
23+
</scene>
24+
</scenes>
25+
</document>

0 commit comments

Comments
 (0)