Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 2.73 KB

macOS_Android.md

File metadata and controls

72 lines (50 loc) · 2.73 KB

Using macOS to compile Locha Mesh Chat for Android devices

1. Install Android Studio

When prompted for the instalation type, select Custom and make sure the next components will be installed:

  • Android SDK
  • Android SDK Platform
  • Performance (Intel ® HAXM) (See for AMD)
  • Android Virtual Device

2. Install the Android SDK

The android sdk manager can be accessed via the Welcome window

  • Click on Configure > SDK Manager

  • Select the package for the platform that you want to install, Locha Mesh Chat is intended to be used on affordable mobile devices, and can be installed in Android KitKat 4.4, it also can be installed in the latest Android versions. In the tab SDK manager. e.g. select Android 4.4 (KitKat)-API Level: 19 and click Apply. The SDK and related tools will be downloaded, when it finishes click OK.

3. Configure the ANDROID_HOME environment variable

We need to add the next environment variables to your $HOME/.bash_profile or $HOME/.bashrc config file:

export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools

4. Run the Locha Mesh Chat application.

You can run the application in the android emulator or in your mobile phone.

Use your mobile phone

You can use your physical device plugging it to your computer using a USB cable and following the next steps

Use a virtual device

If you don't have any virtual device yet you need to create almost one following the next steps


Now, inside the locha-mesh-chat folder we can run the application:

react-native run-android

That's all 😉


Copyright (c) 2019 Bitcoin Venezuela and Locha Mesh developers.

Licensed under the Apache License, Version 2.0

A text quote is shown below

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


Read the full text: Locha Mesh Apache License 2.0