-[Install Java Development Kit](#install-java-development-kit)
-[Install Java Development Kit](#install-java-development-kit)
-[Android development environment (for a virtual device) - skip next if you are using a physical device](#android-development-environment-for-a-virtual-device---skip-next-if-you-are-using-a-physical-device)
-[Android development environment](#android-development-environment)
-[Clone project into your local directory](#clone-project-into-your-local-directory)
-[Clone project into your local directory](#clone-project-into-your-local-directory)
-[Install and start the app](#install-and-start-the-app)
-[Install and start the app](#install-and-start-the-app)
-[Run the app on a device/emulator](#run-the-app-on-a-deviceemulator)
-[Run the app on a device/emulator](#run-the-app-on-a-deviceemulator)
-[Virtual device testing - on Emulator with Android studio](#virtual-device-testing---on-emulator-with-android-studio)
-[Virtual device testing - on Emulator with Android studio](#virtual-device-testing---on-emulator-with-android-studio)
Some of the information is duplicated from the [React native developer docs.](https://reactnative.dev/docs/getting-started)
## Get logins
## Get logins
In order to test you will need an account on a Mahara instance. In order to generate an authentication token please see [this documentation](https://manual.mahara.org/en/19.10/account/apps.html?highlight=authentication%20token).
In order to test you will need an account on a Mahara instance. In order to generate an authentication token please see [this documentation](https://manual.mahara.org/en/19.10/account/apps.html?highlight=authentication%20token).
## Installing dependencies
## Installing dependencies
...
@@ -73,7 +79,9 @@ java -version
...
@@ -73,7 +79,9 @@ java -version
# OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
# OpenJDK 64-Bit Server VM (build 25.242-b08, mixed mode)
```
```
### Android development environment (for a virtual device) - [skip next](#clone-project-into-local-directory) if you are using a physical device
### Android development environment
>(for a virtual device) - [skip next](#clone-project-into-local-directory) if you are using a physical device
Setting up your development environment can be somewhat tedious if you're new to Android development. If you're already familiar with Android development, there are a few things you may need to configure. In either case, please make sure to follow the next few steps carefully.
Setting up your development environment can be somewhat tedious if you're new to Android development. If you're already familiar with Android development, there are a few things you may need to configure. In either case, please make sure to follow the next few steps carefully.
...
@@ -154,6 +162,7 @@ gedit $HOME/.bashrc
...
@@ -154,6 +162,7 @@ gedit $HOME/.bashrc
```
```
2. Follow through steps in [README](https://gitlab.wgtn.cat-it.co.nz/elearning/mahara-mobile-react-native/blob/master/README.md)
2. Follow through steps in [README](https://gitlab.wgtn.cat-it.co.nz/elearning/mahara-mobile-react-native/blob/master/README.md)
3. Alternatively, the same actions: to start the server running the app.
3. Alternatively, the same actions: to start the server running the app.
```bash
```bash
...
@@ -226,16 +235,16 @@ gedit $HOME/.bashrc
...
@@ -226,16 +235,16 @@ gedit $HOME/.bashrc
npm run android -d 01234SDGESG567890
npm run android -d 01234SDGESG567890
```
```
# React native
## React native
Follow official docs: <https://facebook.github.io/react-native/docs/getting-started.html>.
Follow official docs: <https://facebook.github.io/react-native/docs/getting-started.html>.
This is because the installation process changes a lot, and we can't keep these docs up to date.
This is because the installation process changes a lot, and we can't keep these docs up to date.
# Contributing!
# Contributing
Now that we have gotten Mahara mobile installed and ready to run, let's start contributing!
Now that we have gotten Mahara mobile installed and ready to run, let's start contributing!