diff --git a/PinchMedia/.gitignore b/PinchMedia/.gitignore new file mode 100644 index 000000000..d3ce5e0aa --- /dev/null +++ b/PinchMedia/.gitignore @@ -0,0 +1,3 @@ +*.pidb +bin +*.userprefs diff --git a/PinchMedia/Beacon.dll b/PinchMedia/Beacon.dll new file mode 100755 index 000000000..ab3828567 Binary files /dev/null and b/PinchMedia/Beacon.dll differ diff --git a/PinchMedia/Main.cs b/PinchMedia/Main.cs new file mode 100644 index 000000000..022499838 --- /dev/null +++ b/PinchMedia/Main.cs @@ -0,0 +1,50 @@ + +using System; +using System.Collections.Generic; +using System.Linq; +using MonoTouch.Foundation; +using MonoTouch.UIKit; +using System.Drawing; + +namespace PinchMedia +{ + public class Application + { + static void Main (string[] args) + { + UIApplication.Main (args); + } + } + + public partial class AppDelegate : UIApplicationDelegate + { + public override bool FinishedLaunching (UIApplication app, NSDictionary options) + { + string applicationCode = "REPLACE WITH YOUR OWN APPLICATION CODE"; + Beacon.StartBeacon(applicationCode, false, false, true); + + var label = new UILabel (new RectangleF (10, 30, 300, 20)); + label.Text = "Tracking with Pinch Media Analytics"; + + window.AddSubview (label); + + window.MakeKeyAndVisible (); + + return true; + } + + public override void WillTerminate (UIApplication application) + { + // (your app's cleanup code) + + // CALL THIS LAST! (See this FAQ entry for more info) + Beacon.EndBeacon(); + } + + + // This method is required in iPhoneOS 3.0 + public override void OnActivated (UIApplication application) + { + } + } +} diff --git a/PinchMedia/MainWindow.xib b/PinchMedia/MainWindow.xib new file mode 100644 index 000000000..9653fdcfc --- /dev/null +++ b/PinchMedia/MainWindow.xib @@ -0,0 +1,184 @@ + + + + 768 + 9J61 + 677 + 949.46 + 353.00 + + YES + + + + YES + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + YES + + YES + + + YES + + + + YES + + IBFilesOwner + + + IBFirstResponder + + + + + 1316 + + {320, 480} + + + 1 + MSAxIDEAA + + NO + NO + + + + + + YES + + + delegate + + + + 5 + + + + window + + + + 7 + + + + + YES + + 0 + + YES + + + + + + 2 + + + YES + + + + + -1 + + + RmlsZSdzIE93bmVyA + + + 4 + + + App Delegate + + + -2 + + + + + + + YES + + YES + -1.CustomClassName + -2.CustomClassName + 2.IBAttributePlaceholdersKey + 2.IBEditorWindowLastContentRect + 2.IBPluginDependency + 2.UIWindow.visibleAtLaunch + 4.CustomClassName + 4.IBPluginDependency + + + YES + UIApplication + UIResponder + + YES + + YES + + + YES + + + {{593, 276}, {320, 480}} + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + AppDelegate + com.apple.InterfaceBuilder.IBCocoaTouchPlugin + + + + YES + + YES + + + YES + + + + + YES + + YES + + + YES + + + + 7 + + + + YES + + AppDelegate + + window + id + + + IBUserSource + + + + + + 0 + + 3 + 3.0 + + \ No newline at end of file diff --git a/PinchMedia/MainWindow.xib.designer.cs b/PinchMedia/MainWindow.xib.designer.cs new file mode 100644 index 000000000..e4610c198 --- /dev/null +++ b/PinchMedia/MainWindow.xib.designer.cs @@ -0,0 +1,15 @@ + +namespace PinchMedia +{ + // Base type probably should be MonoTouch.Foundation.NSObject or subclass + [MonoTouch.Foundation.Register("AppDelegate")] + public partial class AppDelegate + { + + [MonoTouch.Foundation.Connect("window")] + private MonoTouch.UIKit.UIWindow window { + get { return ((MonoTouch.UIKit.UIWindow)(this.GetNativeField ("window"))); } + set { this.SetNativeField ("window", value); } + } + } +} diff --git a/PinchMedia/PinchMedia.csproj b/PinchMedia/PinchMedia.csproj new file mode 100644 index 000000000..b63a54815 --- /dev/null +++ b/PinchMedia/PinchMedia.csproj @@ -0,0 +1,90 @@ + + + + Debug + iPhoneSimulator + 9.0.21022 + 2.0 + {4C58CFA1-8CA8-4CCD-9EC2-571DA33FAAAA} + {E613F3A2-FE9C-494F-B74E-F63BCB86FEA6};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + Exe + PinchMedia + MainWindow.xib + PinchMedia + 3.0 + v3.5 + + + true + full + false + bin\iPhoneSimulator\Debug + DEBUG + prompt + 4 + x86 + None + True + -gcc_flags "-L${ProjectDir} -lPMAnalytics-r91 -lsqlite3.0 -framework SystemConfiguration -framework CoreLocation -ObjC" + + + none + false + bin\iPhoneSimulator\Release + prompt + 4 + x86 + None + False + -gcc_flags "-L${ProjectDir} -lPMAnalytics-r91 -lsqlite3.0 -framework SystemConfiguration -framework CoreLocation -ObjC" + + + true + full + false + bin\iPhone\Debug + DEBUG + prompt + 4 + x86 + iPhone Developer + True + -gcc_flags "-L${ProjectDir} -lPMAnalytics-r91 -lsqlite3.0 -framework SystemConfiguration -framework CoreLocation -ObjC" + + + none + false + bin\iPhone\Release + prompt + 4 + x86 + iPhone Developer + False + -gcc_flags "-L${ProjectDir} -lPMAnalytics-r91 -lsqlite3.0 -framework SystemConfiguration -framework CoreLocation -ObjC" + + + + + + + + False + Beacon.dll + + + + + MainWindow.xib + + + + + + + + + + + + + diff --git a/PinchMedia/PinchMedia.sln b/PinchMedia/PinchMedia.sln new file mode 100644 index 000000000..eefa4c46b --- /dev/null +++ b/PinchMedia/PinchMedia.sln @@ -0,0 +1,26 @@ + +Microsoft Visual Studio Solution File, Format Version 10.00 +# Visual Studio 2008 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PinchMedia", "PinchMedia.csproj", "{4C58CFA1-8CA8-4CCD-9EC2-571DA33FAAAA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|iPhoneSimulator = Debug|iPhoneSimulator + Release|iPhoneSimulator = Release|iPhoneSimulator + Debug|iPhone = Debug|iPhone + Release|iPhone = Release|iPhone + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4C58CFA1-8CA8-4CCD-9EC2-571DA33FAAAA}.Debug|iPhone.ActiveCfg = Debug|iPhone + {4C58CFA1-8CA8-4CCD-9EC2-571DA33FAAAA}.Debug|iPhone.Build.0 = Debug|iPhone + {4C58CFA1-8CA8-4CCD-9EC2-571DA33FAAAA}.Debug|iPhoneSimulator.ActiveCfg = Debug|iPhoneSimulator + {4C58CFA1-8CA8-4CCD-9EC2-571DA33FAAAA}.Debug|iPhoneSimulator.Build.0 = Debug|iPhoneSimulator + {4C58CFA1-8CA8-4CCD-9EC2-571DA33FAAAA}.Release|iPhone.ActiveCfg = Release|iPhone + {4C58CFA1-8CA8-4CCD-9EC2-571DA33FAAAA}.Release|iPhone.Build.0 = Release|iPhone + {4C58CFA1-8CA8-4CCD-9EC2-571DA33FAAAA}.Release|iPhoneSimulator.ActiveCfg = Release|iPhoneSimulator + {4C58CFA1-8CA8-4CCD-9EC2-571DA33FAAAA}.Release|iPhoneSimulator.Build.0 = Release|iPhoneSimulator + EndGlobalSection + GlobalSection(MonoDevelopProperties) = preSolution + StartupItem = PinchMedia.csproj + EndGlobalSection +EndGlobal diff --git a/PinchMedia/libPMAnalytics-r91.a b/PinchMedia/libPMAnalytics-r91.a new file mode 100644 index 000000000..e1c3bcf2e Binary files /dev/null and b/PinchMedia/libPMAnalytics-r91.a differ