help
===============================================================================

# From start to release apk with react native

Note, as of this time, only use the release build; other builds will not run or
build correctly and may silently fail.  

* https://facebook.github.io/react-native/docs/getting-started.html
* https://facebook.github.io/react-native/docs/running-on-device.html
* https://facebook.github.io/react-native/docs/signed-apk-android.html

Make sure the local.properties has these:  

* storeFile=[path/to/theRelease.keystore]
* keyAlias=[alias]
* keyPassword=[pass]
* storePassword=[pass]

# Troubleshooting 

## Development

Some issues might show up for iOS but not in Android, or vice versa.  

When working with files, Android paths can be hard coded, but iOS paths change,
so the path has to be concatenated appropriately on iOS.  

## Nodejs

Resolve some problems by simply removing the node_modules director and
re-running npm-install.  

## Android SDK

Use the following command or apply to ~/.bashrc:  

    export ANDROID_HOME=$HOME/Android/Sdk

For debian 9 stretch see the following for more info:  

* https://bits.debian.org/2017/03/build-android-apps-with-debian.html

When switching branches, remember to run a make clean or remove the
~/android/app/build folder entirely.  

## iOS

Remember building requires XCode and signing as a developer or with a team
account. Set config in the .xcodeproj file with targets "idly" and "idlyTests".  

## Bluetooth

* https://github.com/alexkendall/react-native-bluetooth-cross-platform/issues/22
* https://github.com/alexkendall/react-native-bluetooth-cross-platform/issues/42

## General Use

### Can't scan

Try toggling the Bluetooth manually on both devices.  
