Skip to content

Instantly share code, notes, and snippets.

@weotch
Last active December 16, 2015 04:28
Show Gist options
  • Save weotch/5376986 to your computer and use it in GitHub Desktop.
Save weotch/5376986 to your computer and use it in GitHub Desktop.
benCoding.AlarmManager Module build steps
  1. Download https://github.com/benbahrenburg/benCoding.AlarmManager/archive/master.zip

  2. cd into the Module directory

  3. Run brew install ant android-ndk

  4. Edit build.properties to match your local enviornment. Mine looks like this:

     titanium.platform=/Users/reinhard/Library/Application Support/Titanium/mobilesdk/osx/3.0.2.GA/android
     android.platform=/Users/reinhard/Documents/Android SDK/platforms/android-8
     google.apis=/Users/reinhard/Documents/Android SDK/add-ons/addon-google_apis-google-8
     android.ndk=/usr/local/bin/
    
  5. I had to create an empty folder named "lib" inside of that Module directory.

  6. Run ant. At the end of it, should should see "BUILD SUCCESSFUL"

  7. Copy (relative to the same Module directory) "dist/bencoding.alarmmanager-android-0.6.zip" directly into the root of your project. Then unzip it. So the root of your project should have a "modules" directory now.

  8. Add it to the modules declaration of your tiapp.xml like:

     <modules>
         <module platform="android" version="0.6">bencoding.alarmmanager</module>
     </modules>
    

That was it for me. That let me build his example project (which, btw, has the wrong version number in it's <module> tag). It's probably a safe bet to clear out your project's build folder so you are starting from scratch on the build with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment