This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 354
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Crittercism] Added a binding project, CI script and sample skeleton
- Loading branch information
Showing
7 changed files
with
103 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>10.0.0</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{B2A6D1A0-8EA1-4FC0-AC4B-B09E46528DE7}</ProjectGuid> | ||
<ProjectTypeGuids>{F5B4F3BC-B597-4E2B-B552-EF5D8A32436F};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<OutputType>Library</OutputType> | ||
<RootNamespace>CrittercismSdk</RootNamespace> | ||
<IPhoneResourcePrefix>Resources</IPhoneResourcePrefix> | ||
<AssemblyName>CrittercismSdk</AssemblyName> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug</OutputPath> | ||
<DefineConstants>DEBUG;</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>full</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release</OutputPath> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<ConsolePause>false</ConsolePause> | ||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="System" /> | ||
<Reference Include="monotouch" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Folder Include="Resources\" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ObjcBindingApiDefinition Include="ApiDefinition.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ObjcBindingCoreSource Include="StructsAndEnums.cs" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Xamarin.ObjcBinding.CSharp.targets" /> | ||
<ItemGroup> | ||
<ObjcBindingNativeLibrary Include="libCrittercism.a" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="libCrittercism.linkwith.cs"> | ||
<DependentUpon>libCrittercism.a</DependentUpon> | ||
</Compile> | ||
</ItemGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,20 @@ | ||
BTOUCH=/Developer/MonoTouch/usr/bin/btouch | ||
|
||
all: Crittercism.dll | ||
MONOXBUILD=/Library/Frameworks/Mono.framework/Commands/xbuild | ||
VERSION=4.1.2 | ||
all: CrittercismSdk.dll | ||
|
||
libCrittercism.a: | ||
@echo "You'll need to obtain a copy of libCrittercism.a" | ||
@echo "from https://app.crittercism.com/downloads/ios" | ||
@echo | ||
@open https://app.crittercism.com/downloads/ios | ||
exit 1 | ||
@if test -f ../../../monotouch-bindings-externals/Crittercism/libCrittercism.a; then \ | ||
cp ../../../monotouch-bindings-externals/Crittercism/libCrittercism.a .; \ | ||
else \ | ||
echo "Please download libCrittercism.a from https://app.crittercism.com/downloads/ios"; \ | ||
open https://app.crittercism.com/downloads/ios; \ | ||
exit 1; \ | ||
fi | ||
|
||
CrittercismSdk.dll: Makefile libCrittercism.linkwith.cs ApiDefinition.cs libCrittercism.a | ||
$(MONOXBUILD) /p:Configuration=Release CrittercismSdk.csproj | ||
cp bin/Release/CrittercismSdk.dll CrittercismSdk.dll | ||
|
||
Crittercism.dll: Makefile Crittercism.linkwith.cs ApiDefinition.cs libCrittercism.a | ||
$(BTOUCH) ApiDefinition.cs Crittercism.linkwith.cs --out=$@ --link-with=libCrittercism.a,libCrittercism.a | ||
clean: | ||
-rm -rf *.a *.dll bin/ obj/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
using System; | ||
|
||
namespace CrittercismSdk | ||
{ | ||
} | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#### Sample Builder | ||
#### Author: Alex Soto [email protected] | ||
|
||
MDTOOL=/Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool | ||
|
||
#If you hapen to add a sample please add it here so it is easier to test if it builds | ||
|
||
all: | ||
#$(MDTOOL) build -c:"Release|iPhone" Sample/Sample.sln | ||
|
||
clean: | ||
#$(MDTOOL) build -c:"Release|iPhone" -t:Clean Sample/Sample.sln |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ cocos2d\ | |
cocosDenshion\ | ||
CorePlot\ | ||
Couchbase\ | ||
Crittercism\ | ||
Datatrans\ | ||
DropboxChooser\ | ||
DropBoxSync\ | ||
|