GithubHelp home page GithubHelp logo

nickpetrov / nix-rn Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 55.23 MB

JavaScript 0.23% TypeScript 94.70% Ruby 0.15% Starlark 0.05% Java 3.12% CMake 0.02% C++ 0.65% Shell 0.27% Objective-C 0.22% Objective-C++ 0.57%

nix-rn's Introduction

Install dependencies

  1. yarn install (or npm install) from root folder
  2. cd ios bundle exec pod install --repo-update - only for ios

Developing Andorid

  1. if you not install dependencies, check ## Install dependencies
  2. open emulator from Android Studio 1.1 Open Android Studio 1.2 Open virtual device manager 1.3 create or statr exist emulator
  3. from terminal(if app already exist at emulator - you see icon of our app at emulator) run yarn run start - it will start metro bundle and start project
  4. if you doesn't have app at emulator, then run yarn run android - it will create debug apk and install it on emulator , then start metro bundle. You can use npx react-native run-android --variant=release - to create release apk and install it on emulator
  5. after you start project, you can open developer menu by press d.
  6. if you want open debuger at browser, then just tap on Debug, or if you want open it at react-native-debugger, then open react-native-debugger and only then tap on Debug.

Developing IOS

  1. if you not install dependencies, check ## Install dependencies
  2. Open project at xcode
  3. choose emulator iOS device
  4. start it (it will create apk and start emulator with app)

create debug/release apk

  1. change versionCode at android/app/build.gradle
  2. cd android
  3. gradlew assembleDebug(for debug) or gradlew assembleRelease(for release)

create bundle for TF (ios)

  1. cd ios bundle exec pod install --repo-update - install all dependency, use at root folder of project(you can use terminal or vscode)
  2. open project at xcode (from vscode: cd ios, xed .)
  3. choose any iOS device
  4. up bundle version:
  • If current version is already approved in App Store, up version number and set build number to 1
  • If current version is not approved in App Store, up build number by 1
  1. create archive (Product -> Archive)
  2. upload archive (Distribute App), make sure that the last version is active

testing subscription

  1. need license testers for google or sanbox testers for ios
  2. login at google play with license testers or login at appleid with sanbox tester
  3. test subscriptions: (on ios only at real device).
  4. usefull links: https://developer.android.com/google/play/billing/test#subs https://help.apple.com/app-store-connect/#/dev7e89e149d https://developer.apple.com/apple-pay/sandbox-testing/

Commit message convention

We follow the conventional commits specification for our commit messages:

  • fix: bug fixes, e.g. fix crash due to deprecated method.
  • feat: new features, e.g. add new method to the module.
  • refactor: code refactor, e.g. migrate from class components to hooks.
  • docs: changes into documentation, e.g. add usage example for the module..
  • test: adding or updating tests, eg add integration tests using detox.
  • chore: tooling changes, e.g. change CI config.

Scripts

The package.json file contains various scripts for common tasks:

  • yarn run android: setup project for android.
  • yarn run ios: setup project for ios.
  • yarn run start: start metro bundle
  • yarn run lint: lint files with ESLint.
  • yarn run test: run unit tests with Jest.
  • yarn run post-build: produce source-maps for android and upload it to sentry

nix-rn's People

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.