Winston-Salem Crime Map
This application was originally written in pure Objective-C and submitted to the app store. It went through multiple iterations as an XCode project until I heard about RubyMotion and decided to use it as a chance to not only simplify the codebase for this app, but also to learn Ruby in the meantime.
Since I used this as a learning experience, I also wanted to put the code out there for others to learn from and to improve upon (iOS client only, not the server scraper and API).
This RubyMotion project is open source under the MIT license (see License file).
This app is a universal application (meaning that it works on both the iPhone and iPad). It has also been updated to work with the new screen size of the iPhone 5.
You can get the app one of two ways:
- Clone this repos and run it in the siumlator (or on a device if you are a registered Apple Developer).
git clone --recursive git://github.com/markrickert/WSCrime.git
- Get it from the iTunes App Store:
Running the app
- XCode 4.5 with iOS 6 SDK.
- You must have a registered and licensed copy or RubyMotion on your computer. If you do not, you will need to purchase a license here. Winston-Salem Crime Map requires at least RubyMotion 1.30 or later.
- Cocoapods must be installed.
- Valid Apple Developer signing certificate (if you want to install on a device).
cdinto the WSCrimeMap directory and run
rakeand the application will build and launch the iOS simulator.
I recently introduced augmented reality into the app and it's not currently working or fully implemented and is not in the App Store version yet. I'm using my own fork of a1phanumeric's iPhone AR Toolkit. The reason I'm using my own fork is becasue including it as a standard xcode project was crashing upon initialization. So I created a static library to use through XCode. I'll try and keep my fork up to date with the main project repo.