Timetrack on mobile
Introduction
This project is a Timetrack PoC for android device.
It used with react-native 0.2
Soon, I'm going to try for use timetrack redux store. ( reducers / actions / selectors )
Requirements
React Native and android sdk
- react-native: How to Install
- android: How to install
At this point, we need either an android virtual device or a physical android device.
To check this, running :
$ adb devices
should return something like :
List of devices attached
07bdb2f7 device
Android SDK Requirements
Need install 2 extra packages.
Go in the Android SDK Manager running : android
Install this packages:
- Local Maven repository for Support Libraries
- Google repository
Installation
A simple npm install should work :
npm install
Build
Building debug
- Start the packager server running :
make dev
- In another terminal, run :
make run-android
Building release
Get private release.keystore and passwords
-
Send a mail to [email protected] to ask him for the release.keystore and gradle.properties files.
-
Build apk running :
make build-release-apk
This will create an app.apk on your project root.
- Install apk on a connected device running :
make install-release-apk
Flow type checker
Flow is a static type checker for JavaScript. It can be used to catch common bugs in JavaScript programs before they run.
Check the official documentation.
In practice
For say to flow what file you want to check
- Add this comment at the top of the file :
/* @flow */
More info on this page.