| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Edge is:
The React Native documentation contains detailed instructions on how to prepare your computer for React Native development. Follow the instructions in the "React Native CLI Quickstart" for your specific platform.
If you are using a Mac, follow both the iOS and Android target instructions. Otherwise, you only need the Android target instructions.
This project uses npm to manage Javascript dependencies (npm ships with Node).
cd edge-react-gui npm ci npm run prepare
npm start
This bundler process needs to run in the background, so feel free to run this in its own terminal window.
A public API key is built into the edge-core-js which can be used to build and test the Edge app. This key is severely rate limited and should not be used for production. For production use, get an API key by emailing info@edge.app.
Change the AIRBITZ_API_KEY in env.json to the API key you received from Edge. To use the public API key, leave AIRBITZ_API_KEY blank.
To build, install, and start the app on a simulator or physical phone with USB debugging, run:
npm run android
Otherwise, to get an APK, do:
cd android ./gradlew assembleDebug
cd android ./gradlew assembleRelease
This repo includes several utility scripts that can be used in a CI/CD environment to build and deploy a release version of the app. The included Jenkinsfile utilizes all the scripts but you are free to use them in your own CI environment.
Set BUILD_REPO_URL to the URL of an empty Git repo that will hold a version file that will be auto updated to increment the version and build number. Then run the following to update a local release-version.json file
npm run gitVersionFile
Update the project files based on the version in release-version.json
npm run updateVersion
The included deploy.ts is a script to automate building, signing, and deploying release builds of Edge. It provides the following:
Run deploy
npm run deploy edge ios master
npm run deploy edge android masterThis repo uses Fastlane to automate iOS code signing. The deploy script uses fastlane match to install the signing certificates and provisioning profiles, and to renew them automatically when they expire (see Certificate renewal below).
Fastlane must be version 2.235.0 or newer (install or upgrade with brew install fastlane). Older versions ignore --skip_confirmation during match nuke, which blocks the automatic certificate renewal on an interactive prompt.
Authentication uses an App Store Connect API key, not an Apple ID. Place the key JSON at fastlane.json in the repo root (see the App Store Connect API docs). Then set the following environment variables and run npm run deploy as mentioned above
BUILD_REPO_URL // Git repo used to store encrypted provisioning
// keys.
// Will be shared with the gitVersionFile.ts script
GITHUB_SSH_KEY // (Optional) SSH Key file to use when accessing
// BUILD_REPO_URL
MATCH_KEYCHAIN_PASSWORD // Password to unlock the current users keychain
MATCH_PASSWORD // Password used to encrypt profile information
// before being saved to the BUILD_REPO_URL
Apple signing certificates expire once a year. When fastlane match fails because a certificate is no longer valid, the deploy script automatically nukes that certificate type (revoking it on the Apple Developer Portal and wiping it from BUILD_REPO_URL) and re-runs match to generate a fresh certificate and provisioning profiles.
As with any modern React Native app, Flipper is the officially-supported debugging app. Use the "React Native Hermes Debugger" to debug Javascript running in the UI.
If you want to inspect Redux, you can install the redux-debugger plugin for Flipper, which this app supports.
Please follow the coding conventions defined in Edge Conventions
| Back | FazBrowse Home | New Git URL |