Skip to content
Browse files

Add Xamarin.iOS Support

        * Added Xamarin.iOS Binding
        * Added Xamarin.iOS Sample app
        * Added creation of Xamarin Component for the Component Store

Special Notes:
        Inside Xamarin folder there is a makefile that handles everything for you
	make: Will compile TaplyticsSDK.csproj and create TaplyticsSDK.dll
	make component: Will create TaplyticsSDK.dll, download xamarin-component.exe and create the .xam file that is the one you upload to Xamarin Component Store
  • Loading branch information...
dalexsoto committed Apr 11, 2014
1 parent 4feb562 commit 5bc138d05efdef1f2c6f5df2d955dd20c76614d6
@@ -16,3 +16,11 @@ profile
# Xamarin
@@ -0,0 +1,28 @@
# Path to mono's xbuild

# Target to build the TaplyticsSDK.dll
all: TaplyticsSDK.dll

# Target to download Xamarin-Component.exe
echo "* Downloading xamarin-component..."
mkdir xpkg
curl -L > xpkg/
cd xpkg && unzip -qq -o
mono xpkg/xamarin-component.exe

# Target to build the TaplyticsSDK.dll
$(MONOXBUILD) /p:Configuration=Release binding/TaplyticsSDK.csproj
cp binding/bin/Release/TaplyticsSDK.dll TaplyticsSDK.dll

# Target to build the Taplytics Xamarin Component
component: TaplyticsSDK.dll xpkg
mono xpkg/xamarin-component.exe package

# Clean everything
rm -rf xpkg *.xam *.dll
rm -rf binding/*.dll binding/bin/ binding/obj/ binding/*.sln binding/*.userprefs
rm -rf samples/TaplyticsSample/TaplyticsSample/bin samples/TaplyticsSample/TaplyticsSample/obj
@@ -0,0 +1,62 @@
using System;
using System.Drawing;
using MonoTouch.ObjCRuntime;
using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace TaplyticsSDK
delegate void TLExperimentHandler (NSDictionary variables);
delegate void TLBackgroundFetchHandler (UIBackgroundFetchResult result);

interface ITaplyticsDelegate {}

[BaseType (typeof (NSObject))]
interface TaplyticsDelegate {

[Export ("taplyticsExperimentChanged:variationName:")]
void ExperimentChanged (string experimentName, [NullAllowed] string variationName);

[Export ("taplyticsDeviceInfo:")]
void DeviceInfo (NSDictionary deviceInfo);

[Export ("taplyticsLastApps:")]
void LastApps (NSObject[] lastApps);

[BaseType (typeof (NSObject))]
interface Taplytics {

[Export ("startTaplyticsAPIKey:")]
void StartTaplytics (string apiKey);

[Export ("startTaplyticsAPIKey:options:")]
void StartTaplytics (string apiKey, [NullAllowed] NSDictionary options);

[Since (7,0)]
[Export ("performBackgroundFetch:")]
void PerformBackgroundFetch (TLBackgroundFetchHandler completionHandler);

[Export ("setTaplyticsDelegate:")]
void SetTaplyticsDelegate ([NullAllowed] ITaplyticsDelegate taplyticsDelegate);

[Export ("runCodeExperiment:withBaseline:variations:")]
void RunCodeExperiment (string experimentName, TLExperimentHandler baselineHandler, [NullAllowed] NSDictionary variationNamesAndBlocks);

[Export ("goalAchieved:")]
void GoalAchieved (string goalName);

[Export ("goalAchieved:value:")]
void GoalAchieved (string goalName, NSNumber value);

@@ -0,0 +1,6 @@
using System;

namespace TaplyticsSDK

@@ -0,0 +1,4 @@
using System;
using MonoTouch.ObjCRuntime;

[assembly: LinkWith ("Taplytics", LinkTarget.Simulator | LinkTarget.ArmV7 | LinkTarget.ArmV7s, Frameworks = "CFNetwork Security CoreTelephony SystemConfiguration", LinkerFlags = "-ObjC -licucore", SmartLink = true, ForceLoad = true)]
@@ -0,0 +1,59 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="">
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Reference Include="System" />
<Reference Include="monotouch" />
<Folder Include="Resources\" />
<ObjcBindingApiDefinition Include="ApiDefinition.cs" />
<ObjcBindingCoreSource Include="StructsAndEnums.cs" />
<Import Project="$(MSBuildExtensionsPath)\Xamarin\Xamarin.ObjcBinding.CSharp.targets" />
<Compile Include="Taplytics.linkwith.cs">
<ObjcBindingNativeLibrary Include="..\..\..\Taplytics.framework\Versions\A\Taplytics">
@@ -0,0 +1,16 @@
version: 1.2.46
name: Taplytics SDK
id: taplytics
publisher: Syrp Inc.
summary: Mobile A/B testing for everyone.
ios: TaplyticsSDK.dll
- name: "iOS Sample"
path: samples/TaplyticsSample/TaplyticsSample.sln
configuration: "Release|iPhone"
- component/screenshots/taplytics-buttons.png
- component/screenshots/taplytics-colors.png
- component/screenshots/taplytics-livechanges.png
@@ -0,0 +1,22 @@

Enjoy the benefits of live changes.

Deliver endless variations of your app to users in real time. All the while the Taplytics platform keeps your app completely native so it will deliver the experience your users have come to love.


Increase engagement and conversions.

Taplytics makes native mobile A/B testing a breeze. With one line SDK integration, live updates to your users and real time analytics, we have built something we know you will love. Implement Taplytics and start getting the most out of your app.


Turn design decisions into incontrovertible data.

Master the feedback loop. Run A/B tests with a segment of your audience and let the data make the call. Taplytics' real time analytics engine lets you see quickly and easily which variations are winning and when you have achieved statistically significant results.

@@ -0,0 +1,18 @@
We have worked hard to make implementing the Taplytics SDK as simple as possible, all you need is to initialize the sdk as follows:

using TaplyticsSDK;
// ...
// Get your Taplytics API key from:
const string apiKey = "YOUR_TAPLYTICS_APIKEY_HERE";
public override bool FinishedLaunching (UIApplication app, NSDictionary options)
Taplytics.StartTaplytics (apiKey);
// ...

In order to get your API Key please visitit [Taplytics website.](

0 comments on commit 5bc138d

Please sign in to comment.
You can’t perform that action at this time.