Merge branch 'develop' into update-rn-5
This commit is contained in:
commit
7413d26587
|
@ -139,7 +139,7 @@ android {
|
|||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode VERSIONCODE as Integer
|
||||
versionName "4.7.0"
|
||||
versionName "4.8.0"
|
||||
vectorDrawables.useSupportLibrary = true
|
||||
manifestPlaceholders = [BugsnagAPIKey: BugsnagAPIKey as String]
|
||||
missingDimensionStrategy "RNNotifications.reactNativeVersion", "reactNative60" // See note below!
|
||||
|
|
|
@ -55,12 +55,14 @@ const serverInfoUpdate = async(serverInfo, iconSetting) => {
|
|||
return { ...allSettings, autoLock };
|
||||
}
|
||||
if (setting._id === 'Force_Screen_Lock_After') {
|
||||
const forceScreenLock = serverInfo.find(s => s._id === 'Force_Screen_Lock')?.valueAsBoolean;
|
||||
|
||||
// if Force_Screen_Lock_After === 0 and autoLockTime is null, set app's default value
|
||||
if (setting.valueAsNumber === 0 && !server.autoLockTime) {
|
||||
return { ...allSettings, autoLockTime: DEFAULT_AUTO_LOCK };
|
||||
}
|
||||
// if Force_Screen_Lock_After > 0, use it
|
||||
if (setting.valueAsNumber > 0) {
|
||||
// if Force_Screen_Lock_After > 0 and forceScreenLock is enabled, use it
|
||||
if (setting.valueAsNumber > 0 && forceScreenLock) {
|
||||
return { ...allSettings, autoLockTime: setting.valueAsNumber };
|
||||
}
|
||||
}
|
||||
|
|
|
@ -51,6 +51,12 @@ class ScreenLockConfigView extends React.Component {
|
|||
this.init();
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
if (this.observable && this.observable.unsubscribe) {
|
||||
this.observable.unsubscribe();
|
||||
}
|
||||
}
|
||||
|
||||
defaultAutoLockOptions = [
|
||||
{
|
||||
title: I18n.t('Local_authentication_auto_lock_60'),
|
||||
|
@ -91,6 +97,19 @@ class ScreenLockConfigView extends React.Component {
|
|||
|
||||
const biometryLabel = await supportedBiometryLabel();
|
||||
this.setState({ biometryLabel });
|
||||
|
||||
this.observe();
|
||||
}
|
||||
|
||||
/*
|
||||
* We should observe biometry value
|
||||
* because it can be changed by PasscodeChange
|
||||
* when the user set his first passcode
|
||||
*/
|
||||
observe = () => {
|
||||
this.observable = this.serverRecord?.observe()?.subscribe(({ biometry }) => {
|
||||
this.setState({ biometry });
|
||||
});
|
||||
}
|
||||
|
||||
save = async() => {
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>4.7.0</string>
|
||||
<string>4.8.0</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleURLTypes</key>
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
<key>CFBundlePackageType</key>
|
||||
<string>XPC!</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>4.7.0</string>
|
||||
<string>4.8.0</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>1</string>
|
||||
<key>NSAppTransportSecurity</key>
|
||||
|
|
Loading…
Reference in New Issue