fix(mobile): accurate version number
This commit is contained in:
@@ -3,7 +3,9 @@ import { IsDev } from '@Lib/Utils'
|
|||||||
import { ReactNativeToWebEvent } from '@standardnotes/snjs'
|
import { ReactNativeToWebEvent } from '@standardnotes/snjs'
|
||||||
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'
|
||||||
import { Keyboard, Platform } from 'react-native'
|
import { Keyboard, Platform } from 'react-native'
|
||||||
|
import VersionInfo from 'react-native-version-info'
|
||||||
import { WebView, WebViewMessageEvent } from 'react-native-webview'
|
import { WebView, WebViewMessageEvent } from 'react-native-webview'
|
||||||
|
import pjson from '../package.json'
|
||||||
import { AppStateObserverService } from './AppStateObserverService'
|
import { AppStateObserverService } from './AppStateObserverService'
|
||||||
|
|
||||||
const LoggingEnabled = IsDev
|
const LoggingEnabled = IsDev
|
||||||
@@ -84,7 +86,7 @@ const MobileWebAppContents = ({ destroyAndReload }: { destroyAndReload: () => vo
|
|||||||
const WebProcessDeviceInterface = `
|
const WebProcessDeviceInterface = `
|
||||||
class WebProcessDeviceInterface {
|
class WebProcessDeviceInterface {
|
||||||
constructor(messageSender) {
|
constructor(messageSender) {
|
||||||
this.appVersion = '1.2.3'
|
this.appVersion = '${pjson.version} (${VersionInfo.buildVersion})'
|
||||||
this.environment = 4
|
this.environment = 4
|
||||||
this.databases = []
|
this.databases = []
|
||||||
this.messageSender = messageSender
|
this.messageSender = messageSender
|
||||||
|
|||||||
Reference in New Issue
Block a user