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.
Merge branch 'master' of github.com:artema/monotouch-bindings into ar…
…tema-master
- Loading branch information
Showing
5 changed files
with
111 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ASSEMBLY=Crittercism.dll | ||
include ../Rules.make |
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,2 @@ | ||
libCrittercism.a | ||
Crittercism.dll |
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,90 @@ | ||
using System; | ||
using MonoTouch.Foundation; | ||
|
||
namespace CrittercismIos | ||
{ | ||
[BaseType (typeof (NSObject))] | ||
public partial interface CRFilter { | ||
|
||
[Export ("onlyScrubQuery")] | ||
bool OnlyScrubQuery { get; } | ||
|
||
[Static, Export ("filterWithString:")] | ||
CRFilter FromFilter (string matchToken); | ||
|
||
[Static, Export ("queryOnlyFilterWithString:")] | ||
CRFilter FromQueryOnlyFilter (string matchToken); | ||
|
||
[Export ("initWithString:")] | ||
IntPtr Constructor (string matchToken); | ||
|
||
[Export ("initWithString:queryOnly:")] | ||
IntPtr Constructor (string matchToken, bool onlyScrubQuery); | ||
|
||
[Export ("doesMatch:")] | ||
bool DoesMatch (string url); | ||
|
||
[Export ("applyToURL:")] | ||
string ApplyToUrl (string url); | ||
} | ||
|
||
[BaseType (typeof (NSObject))] | ||
public partial interface Crittercism { | ||
|
||
[Static, Export ("enableWithAppID:")] | ||
void EnableWithAppId (string appId); | ||
|
||
[Static, Export ("enableWithAppID:andDelegate:")] | ||
void EnableWithAppId (string appId, CrittercismDelegate critterDelegate); | ||
|
||
[Static, Export ("enableWithAppID:andDelegate:andURLFilters:")] | ||
void EnableWithAppId (string appId, CrittercismDelegate critterDelegate, CRFilter[] filters); | ||
|
||
[Static, Export ("enableWithAppID:andURLFilters:")] | ||
void EnableWithAppId (string appId, CRFilter[] filters); | ||
|
||
[Static, Export ("enableWithAppID:andDelegate:andURLFilters:disableInstrumentation:")] | ||
void EnableWithAppId (string appId, CrittercismDelegate critterDelegate, CRFilter[] filters, bool disableInstrumentation); | ||
|
||
[Static, Export ("addFilter:")] | ||
void AddFilter (CRFilter filter); | ||
|
||
[Static, Export ("leaveBreadcrumb:")] | ||
void LeaveBreadcrumb (string breadcrumb); | ||
|
||
[Static, Export ("asyncBreadcrumbMode")] | ||
bool AsyncBreadcrumbMode { set; } | ||
|
||
[Static, Export ("logHandledException:")] | ||
bool LogHandledException (NSException exception); | ||
|
||
[Static, Export ("optOutStatus")] | ||
bool OptOutStatus { [Bind ("getOptOutStatus")] get; set; } | ||
|
||
[Static, Export ("maxOfflineCrashReports")] | ||
uint MaxOfflineCrashReports { get; set; } | ||
|
||
[Static, Export ("userUUID")] | ||
string UserUuid { [Bind ("getUserUUID")] get; } | ||
|
||
[Static, Export ("username")] | ||
string Username { set; } | ||
|
||
[Static, Export ("setValue:forKey:")] | ||
void SetValue (string value, string key); | ||
|
||
[Export ("delegate")] | ||
CrittercismDelegate Delegate { get; set; } | ||
|
||
[Export ("didCrashOnLastLoad")] | ||
bool DidCrashOnLastLoad { get; } | ||
} | ||
|
||
[Protocol, Model, BaseType (typeof (NSObject))] | ||
public partial interface CrittercismDelegate { | ||
|
||
[Export ("crittercismDidCrashOnLastLoad")] | ||
void CrittercismDidCrashOnLastLoad (); | ||
} | ||
} | ||
|
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,4 @@ | ||
using System; | ||
using MonoTouch.ObjCRuntime; | ||
|
||
[assembly: LinkWith ("libCrittercism.a", LinkTarget.Simulator | LinkTarget.ArmV7 | LinkTarget.ArmV7s, ForceLoad = true, Frameworks="SystemConfiguration Foundation")] |
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,13 @@ | ||
BTOUCH=/Developer/MonoTouch/usr/bin/btouch | ||
|
||
all: Crittercism.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 | ||
|
||
Crittercism.dll: Makefile Crittercism.linkwith.cs ApiDefinition.cs libCrittercism.a | ||
$(BTOUCH) ApiDefinition.cs Crittercism.linkwith.cs --out=$@ --link-with=libCrittercism.a,libCrittercism.a |