Skip to content

Hackfridays project to test and learn mobile development with react native

License

Notifications You must be signed in to change notification settings

CyrexEnterprise/appdoki-rn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Appdoki

Cloudoki · Hackfridays · Mobile Dev


Setup

Create a .env at the root of the project, check the contents of .env.sample:

# then update the .env file variables
cp .env.sample .env

Create a notifee.config.json at the root of the project with the following:

{
  "android": {
    "license": "<YOUR_LICENSE_KEY>"
  },
  "ios": {
    "license": "<YOUR_LICENSE_KEY>"
  }
}

ios

Download GoogleService-Info.plist from firebase and add it to ios folder.


Follow the steps in appdoki-rn-certs to setup your keys.


android

Download google-services.json from firebase and add it to android/app folder.


Debug keystore is included in the project. For production builds add the following to ~/.gradle/gradle.properties:

# ~/.gradle/gradle.properties
# Replace <...> with correct values.
APPDOKI_RELEASE_STORE_FILE=/<ABSOLUTE_PATH_TO>/<YOUR_KEY>.keystore
APPDOKI_RELEASE_KEY_ALIAS=<KEY_ALIAS>
APPDOKI_RELEASE_STORE_PASSWORD=<STORE_PASSWORD>
APPDOKI_RELEASE_KEY_PASSWORD=<KEY_PASSWORD>

Development

# install dependencies
yarn && cd ./ios; pod install; cd ..

Open a new terminal window then run the bundler:

# start metro bundler
yarn start

Reactotron configuration is setup, checkout reactotron for instructions on how to use ti.


ios

yarn ios

android

yarn android

Release

Checkout the tag you want to release:

git checkout <TAG> # e.g: v1.0.1-alpha.0

Follow the steps in fastlane readme.

NOTE:

  • Bear in mind that some variables in your .env file differ for android and ios
  • For alpha lanes you need to login on firebase