Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Unified iOS API #15

Open
wants to merge 1 commit into
base: development
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Support for Unified iOS API
  • Loading branch information
jamesmblair committed Jan 22, 2015
commit 633f7eab542350a1e6e53e0ce64af2dc0700fee6
8 changes: 4 additions & 4 deletions Source/iOS/PixateFreestyle/ApiDefinition.cs
Original file line number Diff line number Diff line change
@@ -18,9 +18,9 @@

using System;
using System.Drawing;
using MonoTouch.ObjCRuntime;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
using ObjCRuntime;
using Foundation;
using UIKit;

//
// API mapping for PixateFreestyle API version 2 or greater
@@ -50,7 +50,7 @@ interface PixateFreestyle {
void InitializePixateFreestyle();

[Static, Export ("selectFromStyleable:usingSelector:")]
NSObject[] SelectFromStyleableUsingSelector(NSObject styleable, string Selector);
NSObject[] SelectFromStyleableUsingSelector(NSObject styleable, string selector);

[Static, Export ("matchingRuleSetsForStyleable:")]
string MatchingRuleSetsForStyleable(NSObject styleable);
6 changes: 3 additions & 3 deletions Source/iOS/PixateFreestyle/Extras.cs
Original file line number Diff line number Diff line change
@@ -16,10 +16,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

using MonoTouch.Foundation;
using MonoTouch.ObjCRuntime;
using Foundation;
using ObjCRuntime;
using System;
using MonoTouch.UIKit;
using UIKit;

using System.Linq;
using System.Collections.Generic;
4 changes: 2 additions & 2 deletions Source/iOS/PixateFreestyle/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
BTOUCH=/Developer/MonoTouch/usr/bin/btouch
BTOUCH=/Developer/MonoTouch/usr/bin/btouch-native

all: PixateFreestyle.dll

PixateFreestyle.dll: Makefile Properties/AssemblyInfo.cs ApiDefinition.cs Extras.cs
$(BTOUCH) -unsafe ApiDefinition.cs Properties/AssemblyInfo.cs StructsAndEnums.cs -x Extras.cs --out=$@ --link-with=PixateFreestyle,PixateFreestyle -r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll
$(BTOUCH) -unsafe --new-style ApiDefinition.cs Properties/AssemblyInfo.cs StructsAndEnums.cs -x Extras.cs --out=$@ --link-with=PixateFreestyle,PixateFreestyle -r=/Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll

mdtool:
'/Applications/Xamarin Studio.app/Contents/MacOS/mdtool' build
1 change: 1 addition & 0 deletions Source/iOS/PixateFreestyle/PixateFreestyle
7 changes: 5 additions & 2 deletions Source/iOS/PixateFreestyle/PixateFreestyle.csproj
Original file line number Diff line number Diff line change
@@ -6,12 +6,14 @@
<ProductVersion>10.0.0</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{9037BF82-0939-44F5-8C47-AB825BBF8D4F}</ProjectGuid>
<ProjectTypeGuids>{F5B4F3BC-B597-4E2B-B552-EF5D8A32436F};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<ProjectTypeGuids>{8FFB629D-F513-41CE-95D2-7ECE97B6EEEC};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<RootNamespace>Pixate</RootNamespace>
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix>
<AssemblyName>Pixate</AssemblyName>
<ReleaseVersion>2.0</ReleaseVersion>
<TargetFrameworkIdentifier>Xamarin.iOS</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v1.0</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -35,8 +37,8 @@
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="monotouch" />
<Reference Include="System.Core" />
<Reference Include="Xamarin.iOS" />
</ItemGroup>
<ItemGroup>
<Folder Include="Resources\" />
@@ -48,6 +50,7 @@
<ObjcBindingCoreSource Include="StructsAndEnums.cs" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Xamarin.ObjcBinding.CSharp.targets" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\iOS\Xamarin.iOS.ObjCBinding.CSharp.targets" />
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Extras.cs" />
2 changes: 1 addition & 1 deletion Source/iOS/PixateFreestyle/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using MonoTouch.ObjCRuntime;
using ObjCRuntime;

// Information about this assembly is defined by the following attributes.
// Change them to the values specific to your project.