Skip to content

Commit

Permalink
Merge pull request #10 from cmtanko/APP-007-improve-reporting
Browse files Browse the repository at this point in the history
[APP-007] Improve reporting
  • Loading branch information
cmtanko authored Apr 25, 2021
2 parents bc05ffc + 1ee051b commit 1d7530d
Show file tree
Hide file tree
Showing 10 changed files with 384 additions and 184 deletions.
175 changes: 172 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,177 @@
# react_native_starter_kit
react_native_starter_kit
# React Native Starter Kit

Simple react native kit, working as an expense manager for android/ios devices.

## Environment Versions
- Node: 10.15.3
- React Native : 0.63.3
- Cocopod: 1.10.1
- Cocopod: 1.10.1

# Installation

## Ruby & Fastlane

### Install rvm
Install rvm and select Ruby version

``` bash
# Install RVM
curl -sSL https://get.rvm.io | bash -s stable --ruby

# Install the version used by Fastlane
rvm install ruby-$(cat .ruby-version)

```

### Install Fastlane
So that we can build like cool humans, we use [Fastlane](https://fastlane.tools/)

```bash
gem install fastlane -NV
```

## Node

Node versions are managed via nvm.

### nvm
To install

```
# Install NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
# Install Required Node version
nvm install
# Select node version
nvm use
```

## React Native

```bash
brew install watchman
npm install -g react-native-cli
```


### Platform specific dependencies
```
npm run install-deps
```

### Android tools

- Android Studio 3.2
- Android SDK 8.1(oreo)
- Androik SDK Build Tools 29
- Android Sdk platform-tools 28.0.0
- Android sdk tools 26.1.1
- Android support repository 47.0.0
- Google repository 58

### Xcode

10.1

# Build

TL;DR

```bash
# In terminal 1
npm run start

# In terminal 2
npm run start-ios #switch npm run start-android
```

## Targeting specific platforms

You can build out for a particular platform via the appropriate npm command
```bash
npm run build-ios
npm run build-android
```

# Deployment

## Generating artefacts



## Scripts

```
npm run script_name
```

the available scripts are

```bash
# start the metro interface
npm run start

npm run start-ios
npm run start-android

npm run build-ios
npm run build-android

npm run alpha-release

npm run reinstall

```

# Common setup issues

## iOS

You may receive errors about Podfile not matching Podfile.lock being out of date
or Gemfile being out of date Gemfile.lock

```
cd ios
pod update
pod install
gem update
```

# Trouble shooting in the development Process

## Remove dead metro thread

If you get an error like "something is already running"
follow these steps

- get PID `sudo lsof -i :8081`
- remember the PID
- kill it `kill pid_number` ex: `kill 4532`

## Fastlane doesnt not reconize node

`ln -s $(which node) /usr/local/bin/node`


### White screen

disable CORS `open -a Google\ Chrome --args --disable-web-security --user-data-dir`

if http://some_stuff/debugger-ui/ Change to http://localhost:8081/debugger-ui/

###

### The simulator IOS is crashing without any error message

rm -rf ./ios/build
watchman watch-del-al
rm -rf $TMPDIR/react-*
lsof -ti :8081 | xargs kill -9
cd ios/ && pod install
react-native run-ios


This command should create a symlink to `/uer`
`ln -s $(which node) /usr/local/bin/node`
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ android {
applicationId "io.newplanet.reactnativestarterkit"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 27
versionCode 28
versionName "0.1.1"
}
signingConfigs {
Expand Down
35 changes: 34 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"install-deps": "npm run install-deps-android && npm run install-deps-ios",
"android": "react-native run-android",
"alpha-release": "cd android && bundle exec fastlane alpha",
"build-android": "cd android && ./gradlew assembleRelease",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
Expand All @@ -32,6 +33,7 @@
"dependencies": {
"@react-native-community/masked-view": "^0.1.10",
"@react-native-community/picker": "^1.8.1",
"@react-native-community/viewpager": "^5.0.11",
"@react-navigation/bottom-tabs": "^5.11.2",
"@react-navigation/drawer": "^5.11.4",
"@react-navigation/material-bottom-tabs": "^5.3.10",
Expand All @@ -45,6 +47,7 @@
"native-base": "^2.13.14",
"react": "16.13.1",
"react-native": "0.63.3",
"react-native-carousel-view": "^0.5.1",
"react-native-elements": "^3.0.0-alpha.1",
"react-native-gesture-handler": "^1.9.0",
"react-native-get-random-values": "^1.5.0",
Expand Down
Loading

0 comments on commit 1d7530d

Please sign in to comment.