Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Cleaned up AdJitsu binding & sample layout" since the

new version just crashes hard

This reverts commit 1527faf.
  • Loading branch information...
commit 6e2240c4ed226247f3a5b64102ca2c4e656ce17d 1 parent 0acca15
@migueldeicaza migueldeicaza authored
View
0  AdJitsu/sample/AdJitsu.csproj → AdJitsu/AdJitsu.csproj
File renamed without changes
View
0  AdJitsu/sample/AdJitsu.sln → AdJitsu/AdJitsu.sln
File renamed without changes
View
0  AdJitsu/sample/Info.plist → AdJitsu/Info.plist
File renamed without changes
View
0  AdJitsu/sample/Main.cs → AdJitsu/Main.cs
File renamed without changes
View
0  AdJitsu/sample/MainWindow.xib → AdJitsu/MainWindow.xib
File renamed without changes
View
0  AdJitsu/sample/MainWindow.xib.designer.cs → AdJitsu/MainWindow.xib.designer.cs
File renamed without changes
View
7 AdJitsu/Makefile
@@ -0,0 +1,7 @@
+all: adjitsu.dll
+
+adjitsu.dll: Makefile adjitsu.cs
+ /Developer/MonoTouch/usr/bin/btouch adjitsu.cs
+
+clean:
+ -rm *.dll
View
45 AdJitsu/README.md
@@ -0,0 +1,45 @@
+Bindings to the Adjitsu library
+===============================
+
+MonoTouch bindings for the AdJitsu library.
+
+Building
+========
+
+To build the sample, load the solution into MonoDevelop and run it,
+the sample is a copy of the sample Adjitsu SDK app. You need to
+obtain the libAdjitsuSDK.a yourself and place it in this directory.
+
+If you want to update the bindings to the Adjitsu library update the
+adjitsu.cs file and run the "make" command.
+
+API
+===
+
+The code lives in the Adjitsu namespace, with the AdjitsuView and
+AdjitsuViewDelegate classes. This supports the MonoTouch dual event
+system: either use the Delegate property in the AdjitsuView to connect
+an instance of the AdjitsuViewDelegate, or you can connect
+individually to the various C# events on the view, like this:
+
+ ad = new AdjitsuView (bounds);
+ ad.FinishedLoadingScene += delegate {
+ Console.WriteLine ("done");
+ };
+
+Using Adjitsu.dll with your own Software
+========================================
+
+To link this application with MonoTouch, make sure that your iPhone
+Build settings pass the following options to mtouch:
+
+For Simulator:
+
+ --cxx --gcc_flags "-framework AVFoundation -framework CoreLocation -framework CoreMedia -framework CoreMotion -framework CoreText -framework MediaPlayer -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -L${ProjectDir} -lAdJitsuSDK -force_load ${ProjectDir}/libAdJitsuSDK.a -lxml2 -lsqlite3 -framework CoreGraphics -framework QuartzCore"
+
+For Device, you must add "--armv7" to the command line, make it look like this:
+
+ --armv7 --cxx --gcc_flags "-framework AVFoundation -framework CoreLocation -framework CoreMedia -framework CoreMotion -framework CoreText -framework MediaPlayer -framework MobileCoreServices -framework OpenGLES -framework QuartzCore -L${ProjectDir} -lAdJitsuSDK -force_load ${ProjectDir}/libAdJitsuSDK.a -lxml2 -lsqlite3 -framework CoreGraphics -framework QuartzCore"
+
+The requirement for --armv7 is because AdJitsu does not ship libraries
+that will run on the older phones.
View
0  AdJitsu/sample/SampleAdjitsu.cs → AdJitsu/SampleAdjitsu.cs
File renamed without changes
View
0  AdJitsu/binding/adjitsu.cs → AdJitsu/adjitsu.cs
File renamed without changes
View
BIN  AdJitsu/adjitsu.dll
Binary file not shown
View
BIN  AdJitsu/binding/AdJitsu.dll
Binary file not shown
View
7 AdJitsu/binding/Makefile
@@ -1,7 +0,0 @@
-all: AdJitsu.dll
-
-AdJitsu.dll: Makefile adjitsu.cs
- /Developer/MonoTouch/usr/bin/btouch adjitsu.cs -out=AdJitsu.dll
-
-clean:
- -rm -f *.dll
View
BIN  AdJitsu/sample/AdJitsu.pidb
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.