Skip to content
No description, website, or topics provided.
Branch: develop
Clone or download
Latest commit 7c43ef2 Jun 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci 🐛 Change ci node version Jun 22, 2018
android fixed andoid playservices version. removed transition from removing s… Jun 18, 2019
assets/fonts 🔨 Upgrade RN Mar 1, 2019
docs Add doc to explain how to config ssl pinning Jun 10, 2019
ios particles pig Jun 20, 2019
scripts 🔨 Flatten structure and standardise linting Feb 6, 2019
src fix the pig sometimes disappearing from the screen Jun 20, 2019
storybook Game transfer to parent UI Jun 13, 2019
webview Merge commit 'edb59c696f7c4535b30f9464085af0f80275b0b7' into hotfix/P… Jun 20, 2019
.buckconfig 🔨 Remove expo deps Apr 22, 2018
.env.sample 📚 Update readme and dotenv sample Aug 9, 2018
.flowconfig 🔨 Upgrade RN Mar 1, 2019
.gitattributes removing mp3 from lfs Jun 5, 2019
.gitignore Fix back to idle after rain and remove compiled webview May 16, 2019
.nvmrc burning, validating, progress now working, need to fix UI and flow Jun 13, 2018
.watchmanconfig 🔨 Remove expo deps Apr 22, 2018
App.js 🔨 Upgrade RN Mar 1, 2019
LICENSE 🔨 Refactor to work with native modules Apr 5, 2018
Makefile new make file May 31, 2019
README.md delete allowance FE / BE Jun 13, 2019
app.json 🔨 Remove expo deps Apr 22, 2018
babel.config.js 🔨 Upgrade RN Mar 1, 2019
index.js 🔨 Upgrade RN Mar 1, 2019
package-lock.json the overlay seems to be working now May 13, 2019
package.json v1.7.12 May 17, 2019
rn-cli.config.js 🔨 Upgrade RN Mar 1, 2019
yarn.lock update to Pixi.js 5.0.3 May 20, 2019

README.md

Pigzbe App

Installation

Use node version 8.10.0 (the project supports nvm).

Use yarn to manage dependencies.

Install git-lfs brew install git-lfs (used to version larger game assets).

Install Android Studio if required.

Install react-native dependencies:

brew install watchman
yarn global add react-native-cli

Add a .env file to root of the project by copying .env.sample and customising as required.

Install project dependencies:

yarn

Install Mixpanel iOS libs:

brew install carthage
cd ios
carthage update
cd ios
carthage update
carthage build --platform iOS --configuration Debug

Build inline

make build-inline

Go into xcode and in Build settings > Always Embed Swidt Standard Libraries select YES

Link native dependencies:

react-native link
react-native link react-native-randombytes

build from xcode first time you build

Usage

Run iOS App with Webview

make run-ios

Run iOS App

yarn ios

Run iOS App in specific simulators

yarn ipad
yarn iphoneSE
yarn iphone8

Run Android App with Webview

make run-android

Run Android App

Open an Android simulator (or connect a physical device) before running. Configure and launch simulators from Android Studio > Tools > AVD Manager.

Create a file called local.properties in the android directory with the content sdk.dir = /users/{username}/Library/Android/sdk, subsituting {username} for your OS username. Common errors:

yarn android

Run Desktop App

yarn desktop

Storybook

Storybook configuration and stories are in the /storybook directory. Add any new stories to /storybook/stories/ and require them in the loadStories function in /storybook/index.js.

Start storybook and then start a simulator (or physical device). Stories will run on the device, with the menu of stories loading in a browser window.

yarn storybook
yarn ios

Webview for kids game

Setup

cd webview
yarn
yarn build

Dev

# For development on an attached Android device allow access to port 8080
adb reverse tcp:8080 tcp:8080
adb reverse tcp:8081 tcp:8081

cd webview
yarn start

Build

cd webview
yarn build
yarn android

To launch webview on browser, and device

make run-dev-android

OR

make run-dev-ios

Build Release

in order to build the webview packaged inline, copy android files in the correct folders:

make build-ios-release
make build-android-release

Testing

Run Linter

yarn lint

Run Tests

yarn test
You can’t perform that action at this time.