zooniverse / mobile

React native Zooniverse mobile app
20 stars 14 forks source link

More detailed information on the wiki. In particular, check out our contributor guidelines!

Zooniverse Mobile App

The Zooniverse Mobile app is a React Native app that allows folks like you and me to contribute to astronomy, ecology, and anthropology research from their couch, bathtub, or bus stop (but don't swipe and drive, please).

Preparing The React Native Framework

Requirements:

iOS

Requirements:

Android

Requirements:

You will have to get the key itself from an existing maintainer. We are looking for a way to securely store this so you can get it without worrying about corruption. You don't need it to build for debugging—only for release to the Play Store.

Steps:

  1. To run in the emulator from the command line (you'll need device connected or emulator already running): npm run android. Shortly, your emulator should boot with the Zooniverse app on it.
    • You need to have either a device emulator open already or a physical device plugged into your computer. Otherwise, you'll need to run through Android Studio
    • If Android studio prompts you to update Gradle files, you should do it.
    • The command react-native run-android will install the build, but fail in launching the app due to a bug with the react-native script with having a separate applicationId for development builds.

If you Work for The Zooniverse

You may also want to set up error reporting from your local copy of the application to our reporting service, Sentry. Here are instructions on how to do that!

Tools:

This project is setup with Reactotron. Learn more here. Reactotron is useful for:

  1. Inspecting network requestsl.
  2. As an alternative for console.log (Separates the logs for each device/simulator being used). In order to use with an android device/emulator you must run adb reverse tcp:9090 tcp:9090 before running the project.