@bigbinary/app-version-control
v1.2.1
Published
The `app-version-control` manages the app versions across the neeto mobile apps. It exports the `@bigbinary/app-version-control` NPM package and `app-version-control-engine` Rails engine for development..
Readme
App Version Control
The app-version-control manages the app versions across the neeto mobile apps. It exports the
@bigbinary/app-version-control NPM package and app-version-control-engine Rails engine for development..
Development with Host Application
Engine
Installation
Add this line to your application's Gemfile:
source "NEETO_GEM_SERVER_URL" do # ..existing gems gem 'app-version-control-engine' endAnd then execute:
bundle installAdd this line to your application's
config/routes.rbfile:mount AppVersionControlEngine::Engine, at: "/neeto_app_version_control"Run the following command to copy the migrations from the engine to the host application:
bundle exec rails app_version_control_engine:install:migrationsAdd the migrations to the database:
bundle exec rails db:migrate
Models Usage
AppVersion(source code)
This model is responsible for managing app versions in the application.
Frontend package
Installation
- Install the latest
app-version-controlpackage using the below command:yarn add @bigbinary/app-version-control
Hooks
useAppVersion(source code)
This hook renders an Alert to update the app if the current app version is less than the one in the manage app versions dashboard.
Props
appVersionUrl: URL to fetch the app version.appName: Name of the app.appStoreUrl: Link to the corresponding app in the app store.playStoreUrl: Link to the corresponding app in the play store.title: Alert model title.description: Alert model description.buttonLabels: Alert model submit button label.
