-
Notifications
You must be signed in to change notification settings - Fork 4
Developer Setup
Donald Oakes edited this page Dec 14, 2014
·
31 revisions
Build Mythling from GitHub-hosted source, and run this local build on your device.
###Contents
IDE Setup
Build and Run
- Get the source code.
- Copy the Git repository URL for the desired Mythling branch into the clipboard:
master branch:https://github.com/oakesville/mythling.git
- Eclipse:
- Open the Git Repositories view in Eclipse (Window > Show View > Other > Git > Git Repositories).
- Right-click in Git Repositories view select "Paste Repository Path or URI". On the last page of the wizard, check the box that says "Import all existing projects after clone finishes".
- Android Studio:
- From the menu: VCS > Checkout from Version Control > GitHub.
- Copy the Git repository URL for the desired Mythling branch into the clipboard:
- Run in debug mode on your device.
- Uninstall Mythling if you've installed it through the Play Store. Note: you'll lose your preference settings and they'll need to be re-entered.
- Enable USB Debugging through the Android Settings app. This option is located under Developer Options.
- Connect your device to a USB port on the PC where you're running Eclipse. (Some
Samsung devices require their Kies PC software for USB connectivity.
Other manufacturers may require their own specialized installations.)
- Eclipse:
- Right click on the mythling project in Package Explorer view and select Debug As > Android Application.
- Android Studio:
- From the menu: Run > Debug mythling, or type shift-f9.
- Eclipse:
- Find and select your device under "Choose a running device".
(If you don't have a device or want to test a different profile you can create an Android Virtual Device to run through the emulator). Click OK. - The IDE will install the Mythling APK on your device and you'll be able to step through the code and evaluate variables. A good place to start with a breakpoint is in MainActivity.refresh().
Mythling Wiki How-To Guide