Merge branch 'release/3.5.13'

This commit is contained in:
Radek Czemerys
2020-12-20 01:20:32 +01:00
7 changed files with 26 additions and 9 deletions

View File

@@ -20,6 +20,10 @@ jobs:
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch keystore.keystore.asc > android/app/keystore.keystore
- name: Install dependencies
run: yarn install
- name: Ruby Setup for Fastlane
uses: actions/setup-ruby@v1
with:
ruby-version: '2.7'
- name: fastlane
uses: maierj/fastlane-action@v1.4.0
env:

View File

@@ -22,6 +22,10 @@ jobs:
run: |
echo "${{ secrets.DEV_KEYSTORE }}" > keystore.keystore.asc
gpg -d --passphrase "${{ secrets.DEV_KEYSTORE_PASSPHRASE }}" --batch keystore.keystore.asc > android/app/keystore.keystore
- name: Ruby Setup for Fastlane
uses: actions/setup-ruby@v1
with:
ruby-version: '2.7'
- name: Install dependencies
run: yarn install
- name: fastlane

View File

@@ -15,7 +15,7 @@
### Download Options:
- [iOS App Store](https://itunes.apple.com/us/app/standard-notes/id1285392450?mt=8) (iOS 9+)
- [iOS App Store](https://itunes.apple.com/us/app/standard-notes/id1285392450?mt=8) (iOS 10+)
- [Google Play](https://play.google.com/store/apps/details?id=com.standardnotes) (Android 5.0+)
- [F-Droid](https://f-droid.org/packages/com.standardnotes/) (Android 5.0+)
- [Direct APK](https://github.com/standardnotes/mobile/releases)

View File

@@ -1,7 +1,7 @@
{
"name": "StandardNotes",
"version": "3.5.12",
"user-version": "3.5.12",
"version": "3.5.13",
"user-version": "3.5.13",
"private": true,
"license": "AGPL-3.0-or-later",
"scripts": {
@@ -54,7 +54,7 @@
"react-navigation-header-buttons": "^6.0.0",
"sn-textview": "standardnotes/sn-textview#440dbd60eedef4397b6272735e68d4579bb41ac8",
"@standardnotes/sncrypto-common": "1.2.9",
"@standardnotes/snjs": "2.0.24",
"@standardnotes/snjs": "2.0.27",
"standard-notes-rn": "standardnotes/standard-notes-rn#996b016",
"styled-components": "^5.2.1"
},

View File

@@ -3,6 +3,7 @@ import { MobileApplication } from '@Lib/application';
import { ApplicationGroup } from '@Lib/application_group';
import { navigationRef } from '@Lib/navigation_service';
import { DefaultTheme, NavigationContainer } from '@react-navigation/native';
import { DeinitSource } from '@standardnotes/snjs';
import { MobileThemeVariables } from '@Style/Themes/styled-components';
import { ThemeService, ThemeServiceContext } from '@Style/theme_service';
import React, { useCallback, useEffect, useRef, useState } from 'react';
@@ -63,7 +64,6 @@ const AppComponent: React.FC<{
let themeServiceInstance: ThemeService;
const loadApplication = async () => {
themeServiceInstance = new ThemeService(application);
setThemeServiceRef(themeServiceInstance);
await application?.prepareForLaunch({
receiveChallenge: async challenge => {
@@ -79,6 +79,9 @@ const AppComponent: React.FC<{
return () => {
themeServiceInstance?.deinit();
setThemeServiceRef(undefined);
if (!application.hasStartedDeinit()) {
application.deinit(DeinitSource.Lock);
}
};
}, [application, application.Uuid, env, launchApp, setThemeServiceRef]);

View File

@@ -36,6 +36,7 @@ export class MobileApplication extends SNApplication {
private MobileServices!: MobileServices;
public editorGroup: EditorGroup;
public componentGroup: ComponentGroup;
private startedDeinit: boolean = false;
public Uuid: string; // UI remounts when Uuid changes
constructor(deviceInterface: MobileDeviceInterface, identifier: string) {
@@ -62,8 +63,13 @@ export class MobileApplication extends SNApplication {
this.componentGroup = new ComponentGroup(this);
}
public hasStartedDeinit() {
return this.startedDeinit;
}
/** @override */
deinit(source: DeinitSource) {
this.startedDeinit = true;
for (const key of Object.keys(this.MobileServices)) {
const service = (this.MobileServices as any)[key];
if (service.deinit) {

View File

@@ -1485,10 +1485,10 @@
resolved "https://registry.yarnpkg.com/@standardnotes/sncrypto-common/-/sncrypto-common-1.2.9.tgz#5212a959e4ec563584e42480bfd39ef129c3cbdf"
integrity sha512-xJ5IUGOZztjSgNP/6XL+Ut5+q9UgSTv6xMtKkcQC5aJxCOkJy9u6RamPLdF00WQgwibxx2tu0e43bKUjTgzMig==
"@standardnotes/snjs@2.0.24":
version "2.0.24"
resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.0.24.tgz#a42c181a9481464151ee366eabedf777d6aabd07"
integrity sha512-GBUfoHyjk55YbwS1+pTUHNUYmR0FIPCcy4O8vfu8wdBdlmvdOGGHAuzys8AB3Qw0o5GyeXDhymTPEj9nirD8lQ==
"@standardnotes/snjs@2.0.27":
version "2.0.27"
resolved "https://registry.yarnpkg.com/@standardnotes/snjs/-/snjs-2.0.27.tgz#6356f17c3ff2288a35ddf4cb311872c0e73dc54c"
integrity sha512-VEhqsgnYHTBD49SMNAn276dbPP4KN1pQQhtJFh9dM9JK2LS0OsbYuatiNS0bzEXkxVCaSYLTsaRb3rk7tciQyg==
dependencies:
"@standardnotes/sncrypto-common" "^1.2.9"