Pārlūkot izejas kodu

Fix Android crashes

- IllegalStateException raised by rnscreens
 - Axios import is broken
pull/723/head
Guillaume Vincent pirms 2 gadiem
vecāks
revīzija
f188a15b28
11 mainītis faili ar 1391 papildinājumiem un 1933 dzēšanām
  1. +0
    -7
      mobile/.prettierrc.js
  2. +2
    -2
      mobile/android/app/build.gradle
  3. +1
    -5
      mobile/android/app/src/main/AndroidManifest.xml
  4. +2
    -2
      mobile/ios/LessPass.xcodeproj/project.pbxproj
  5. +6
    -6
      mobile/ios/LessPass/Info.plist
  6. +2
    -2
      mobile/ios/LessPassTests/Info.plist
  7. +230
    -230
      mobile/ios/Podfile.lock
  8. +1
    -1
      mobile/package.json
  9. +70
    -89
      mobile/src/auth/SignInScreen.js
  10. +1
    -1
      mobile/src/version.json
  11. +1076
    -1588
      mobile/yarn.lock

+ 0
- 7
mobile/.prettierrc.js Parādīt failu

@@ -1,7 +0,0 @@
module.exports = {
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: false,
singleQuote: true,
trailingComma: 'all',
};

+ 2
- 2
mobile/android/app/build.gradle Parādīt failu

@@ -147,8 +147,8 @@ android {
applicationId "com.lesspass.android"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 9007001
versionName "9.7.1"
versionCode 9007002
versionName "9.7.2"
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()

if (isNewArchitectureEnabled()) {


+ 1
- 5
mobile/android/app/src/main/AndroidManifest.xml Parādīt failu

@@ -5,11 +5,7 @@

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.USE_FINGERPRINT" />
<uses-permission tools:remove="${excludeSystemAlertWindowPermission}" android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission tools:node="remove" android:name="android.permission.READ_PHONE_STATE" />
<uses-permission tools:node="remove" android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission tools:node="remove" android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission tools:node="remove" android:name="android.vending.CHECK_LICENSE" />

<application
android:name=".MainApplication"
android:label="@string/app_name"


+ 2
- 2
mobile/ios/LessPass.xcodeproj/project.pbxproj Parādīt failu

@@ -528,7 +528,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 9.7.1;
MARKETING_VERSION = 9.7.2;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
@@ -556,7 +556,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 9.7.1;
MARKETING_VERSION = 9.7.2;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",


+ 6
- 6
mobile/ios/LessPass/Info.plist Parādīt failu

@@ -27,13 +27,13 @@
<key>NSAppTransportSecurity</key>
<dict>
<key>NSExceptionDomains</key>
<dict/>
<dict />
</dict>
<key>NSFaceIDUsageDescription</key>
<string>Enabling Face ID allows you quick and secure your master password.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string />
<key>UIAppFonts</key>
<key>UIAppFonts</key>
<array>
<string>FontAwesome.ttf</string>
<string>MaterialCommunityIcons.ttf</string>
@@ -46,7 +46,7 @@
<string>armv7</string>
</array>
<key>UIRequiresFullScreen</key>
<true/>
<true />
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
@@ -54,8 +54,8 @@
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<false />
<key>ITSAppUsesNonExemptEncryption</key>
<false />
</dict>
</plist>

+ 2
- 2
mobile/ios/LessPassTests/Info.plist Parādīt failu

@@ -15,10 +15,10 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<string>$(MARKETING_VERSION)</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
</dict>
</plist>

+ 230
- 230
mobile/ios/Podfile.lock Parādīt failu

@@ -2,14 +2,14 @@ PODS:
- boost (1.76.0)
- CocoaAsyncSocket (7.6.5)
- DoubleConversion (1.1.6)
- FBLazyVector (0.70.2)
- FBReactNativeSpec (0.70.2):
- FBLazyVector (0.70.3)
- FBReactNativeSpec (0.70.3):
- RCT-Folly (= 2021.07.22.00)
- RCTRequired (= 0.70.2)
- RCTTypeSafety (= 0.70.2)
- React-Core (= 0.70.2)
- React-jsi (= 0.70.2)
- ReactCommon/turbomodule/core (= 0.70.2)
- RCTRequired (= 0.70.3)
- RCTTypeSafety (= 0.70.3)
- React-Core (= 0.70.3)
- React-jsi (= 0.70.3)
- ReactCommon/turbomodule/core (= 0.70.3)
- Flipper (0.125.0):
- Flipper-Folly (~> 2.6)
- Flipper-RSocket (~> 1.4)
@@ -93,214 +93,214 @@ PODS:
- fmt (~> 6.2.1)
- glog
- libevent
- RCTRequired (0.70.2)
- RCTTypeSafety (0.70.2):
- FBLazyVector (= 0.70.2)
- RCTRequired (= 0.70.2)
- React-Core (= 0.70.2)
- React (0.70.2):
- React-Core (= 0.70.2)
- React-Core/DevSupport (= 0.70.2)
- React-Core/RCTWebSocket (= 0.70.2)
- React-RCTActionSheet (= 0.70.2)
- React-RCTAnimation (= 0.70.2)
- React-RCTBlob (= 0.70.2)
- React-RCTImage (= 0.70.2)
- React-RCTLinking (= 0.70.2)
- React-RCTNetwork (= 0.70.2)
- React-RCTSettings (= 0.70.2)
- React-RCTText (= 0.70.2)
- React-RCTVibration (= 0.70.2)
- React-bridging (0.70.2):
- RCTRequired (0.70.3)
- RCTTypeSafety (0.70.3):
- FBLazyVector (= 0.70.3)
- RCTRequired (= 0.70.3)
- React-Core (= 0.70.3)
- React (0.70.3):
- React-Core (= 0.70.3)
- React-Core/DevSupport (= 0.70.3)
- React-Core/RCTWebSocket (= 0.70.3)
- React-RCTActionSheet (= 0.70.3)
- React-RCTAnimation (= 0.70.3)
- React-RCTBlob (= 0.70.3)
- React-RCTImage (= 0.70.3)
- React-RCTLinking (= 0.70.3)
- React-RCTNetwork (= 0.70.3)
- React-RCTSettings (= 0.70.3)
- React-RCTText (= 0.70.3)
- React-RCTVibration (= 0.70.3)
- React-bridging (0.70.3):
- RCT-Folly (= 2021.07.22.00)
- React-jsi (= 0.70.2)
- React-callinvoker (0.70.2)
- React-Codegen (0.70.2):
- FBReactNativeSpec (= 0.70.2)
- React-jsi (= 0.70.3)
- React-callinvoker (0.70.3)
- React-Codegen (0.70.3):
- FBReactNativeSpec (= 0.70.3)
- RCT-Folly (= 2021.07.22.00)
- RCTRequired (= 0.70.2)
- RCTTypeSafety (= 0.70.2)
- React-Core (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- ReactCommon/turbomodule/core (= 0.70.2)
- React-Core (0.70.2):
- RCTRequired (= 0.70.3)
- RCTTypeSafety (= 0.70.3)
- React-Core (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- ReactCommon/turbomodule/core (= 0.70.3)
- React-Core (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-Core/Default (= 0.70.2)
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-Core/Default (= 0.70.3)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-Core/CoreModulesHeaders (0.70.2):
- React-Core/CoreModulesHeaders (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-Core/Default
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-Core/Default (0.70.2):
- React-Core/Default (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-Core/DevSupport (0.70.2):
- React-Core/DevSupport (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-Core/Default (= 0.70.2)
- React-Core/RCTWebSocket (= 0.70.2)
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-jsinspector (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-Core/Default (= 0.70.3)
- React-Core/RCTWebSocket (= 0.70.3)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-jsinspector (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-Core/RCTActionSheetHeaders (0.70.2):
- React-Core/RCTActionSheetHeaders (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-Core/Default
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-Core/RCTAnimationHeaders (0.70.2):
- React-Core/RCTAnimationHeaders (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-Core/Default
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-Core/RCTBlobHeaders (0.70.2):
- React-Core/RCTBlobHeaders (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-Core/Default
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-Core/RCTImageHeaders (0.70.2):
- React-Core/RCTImageHeaders (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-Core/Default
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-Core/RCTLinkingHeaders (0.70.2):
- React-Core/RCTLinkingHeaders (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-Core/Default
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-Core/RCTNetworkHeaders (0.70.2):
- React-Core/RCTNetworkHeaders (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-Core/Default
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-Core/RCTSettingsHeaders (0.70.2):
- React-Core/RCTSettingsHeaders (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-Core/Default
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-Core/RCTTextHeaders (0.70.2):
- React-Core/RCTTextHeaders (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-Core/Default
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-Core/RCTVibrationHeaders (0.70.2):
- React-Core/RCTVibrationHeaders (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-Core/Default
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-Core/RCTWebSocket (0.70.2):
- React-Core/RCTWebSocket (0.70.3):
- glog
- RCT-Folly (= 2021.07.22.00)
- React-Core/Default (= 0.70.2)
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-Core/Default (= 0.70.3)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-perflogger (= 0.70.3)
- Yoga
- React-CoreModules (0.70.2):
- React-CoreModules (0.70.3):
- RCT-Folly (= 2021.07.22.00)
- RCTTypeSafety (= 0.70.2)
- React-Codegen (= 0.70.2)
- React-Core/CoreModulesHeaders (= 0.70.2)
- React-jsi (= 0.70.2)
- React-RCTImage (= 0.70.2)
- ReactCommon/turbomodule/core (= 0.70.2)
- React-cxxreact (0.70.2):
- RCTTypeSafety (= 0.70.3)
- React-Codegen (= 0.70.3)
- React-Core/CoreModulesHeaders (= 0.70.3)
- React-jsi (= 0.70.3)
- React-RCTImage (= 0.70.3)
- ReactCommon/turbomodule/core (= 0.70.3)
- React-cxxreact (0.70.3):
- boost (= 1.76.0)
- DoubleConversion
- glog
- RCT-Folly (= 2021.07.22.00)
- React-callinvoker (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsinspector (= 0.70.2)
- React-logger (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-runtimeexecutor (= 0.70.2)
- React-hermes (0.70.2):
- React-callinvoker (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsinspector (= 0.70.3)
- React-logger (= 0.70.3)
- React-perflogger (= 0.70.3)
- React-runtimeexecutor (= 0.70.3)
- React-hermes (0.70.3):
- DoubleConversion
- glog
- hermes-engine
- RCT-Folly (= 2021.07.22.00)
- RCT-Folly/Futures (= 2021.07.22.00)
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-jsiexecutor (= 0.70.2)
- React-jsinspector (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-jsi (0.70.2):
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-jsiexecutor (= 0.70.3)
- React-jsinspector (= 0.70.3)
- React-perflogger (= 0.70.3)
- React-jsi (0.70.3):
- boost (= 1.76.0)
- DoubleConversion
- glog
- RCT-Folly (= 2021.07.22.00)
- React-jsi/Default (= 0.70.2)
- React-jsi/Default (0.70.2):
- React-jsi/Default (= 0.70.3)
- React-jsi/Default (0.70.3):
- boost (= 1.76.0)
- DoubleConversion
- glog
- RCT-Folly (= 2021.07.22.00)
- React-jsiexecutor (0.70.2):
- React-jsiexecutor (0.70.3):
- DoubleConversion
- glog
- RCT-Folly (= 2021.07.22.00)
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-jsinspector (0.70.2)
- React-logger (0.70.2):
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-perflogger (= 0.70.3)
- React-jsinspector (0.70.3)
- React-logger (0.70.3):
- glog
- react-native-safe-area-context (4.4.1):
- RCT-Folly
@@ -308,79 +308,79 @@ PODS:
- RCTTypeSafety
- React-Core
- ReactCommon/turbomodule/core
- React-perflogger (0.70.2)
- React-RCTActionSheet (0.70.2):
- React-Core/RCTActionSheetHeaders (= 0.70.2)
- React-RCTAnimation (0.70.2):
- React-perflogger (0.70.3)
- React-RCTActionSheet (0.70.3):
- React-Core/RCTActionSheetHeaders (= 0.70.3)
- React-RCTAnimation (0.70.3):
- RCT-Folly (= 2021.07.22.00)
- RCTTypeSafety (= 0.70.2)
- React-Codegen (= 0.70.2)
- React-Core/RCTAnimationHeaders (= 0.70.2)
- React-jsi (= 0.70.2)
- ReactCommon/turbomodule/core (= 0.70.2)
- React-RCTBlob (0.70.2):
- RCTTypeSafety (= 0.70.3)
- React-Codegen (= 0.70.3)
- React-Core/RCTAnimationHeaders (= 0.70.3)
- React-jsi (= 0.70.3)
- ReactCommon/turbomodule/core (= 0.70.3)
- React-RCTBlob (0.70.3):
- RCT-Folly (= 2021.07.22.00)
- React-Codegen (= 0.70.2)
- React-Core/RCTBlobHeaders (= 0.70.2)
- React-Core/RCTWebSocket (= 0.70.2)
- React-jsi (= 0.70.2)
- React-RCTNetwork (= 0.70.2)
- ReactCommon/turbomodule/core (= 0.70.2)
- React-RCTImage (0.70.2):
- React-Codegen (= 0.70.3)
- React-Core/RCTBlobHeaders (= 0.70.3)
- React-Core/RCTWebSocket (= 0.70.3)
- React-jsi (= 0.70.3)
- React-RCTNetwork (= 0.70.3)
- ReactCommon/turbomodule/core (= 0.70.3)
- React-RCTImage (0.70.3):
- RCT-Folly (= 2021.07.22.00)
- RCTTypeSafety (= 0.70.2)
- React-Codegen (= 0.70.2)
- React-Core/RCTImageHeaders (= 0.70.2)
- React-jsi (= 0.70.2)
- React-RCTNetwork (= 0.70.2)
- ReactCommon/turbomodule/core (= 0.70.2)
- React-RCTLinking (0.70.2):
- React-Codegen (= 0.70.2)
- React-Core/RCTLinkingHeaders (= 0.70.2)
- React-jsi (= 0.70.2)
- ReactCommon/turbomodule/core (= 0.70.2)
- React-RCTNetwork (0.70.2):
- RCTTypeSafety (= 0.70.3)
- React-Codegen (= 0.70.3)
- React-Core/RCTImageHeaders (= 0.70.3)
- React-jsi (= 0.70.3)
- React-RCTNetwork (= 0.70.3)
- ReactCommon/turbomodule/core (= 0.70.3)
- React-RCTLinking (0.70.3):
- React-Codegen (= 0.70.3)
- React-Core/RCTLinkingHeaders (= 0.70.3)
- React-jsi (= 0.70.3)
- ReactCommon/turbomodule/core (= 0.70.3)
- React-RCTNetwork (0.70.3):
- RCT-Folly (= 2021.07.22.00)
- RCTTypeSafety (= 0.70.2)
- React-Codegen (= 0.70.2)
- React-Core/RCTNetworkHeaders (= 0.70.2)
- React-jsi (= 0.70.2)
- ReactCommon/turbomodule/core (= 0.70.2)
- React-RCTSettings (0.70.2):
- RCTTypeSafety (= 0.70.3)
- React-Codegen (= 0.70.3)
- React-Core/RCTNetworkHeaders (= 0.70.3)
- React-jsi (= 0.70.3)
- ReactCommon/turbomodule/core (= 0.70.3)
- React-RCTSettings (0.70.3):
- RCT-Folly (= 2021.07.22.00)
- RCTTypeSafety (= 0.70.2)
- React-Codegen (= 0.70.2)
- React-Core/RCTSettingsHeaders (= 0.70.2)
- React-jsi (= 0.70.2)
- ReactCommon/turbomodule/core (= 0.70.2)
- React-RCTText (0.70.2):
- React-Core/RCTTextHeaders (= 0.70.2)
- React-RCTVibration (0.70.2):
- RCTTypeSafety (= 0.70.3)
- React-Codegen (= 0.70.3)
- React-Core/RCTSettingsHeaders (= 0.70.3)
- React-jsi (= 0.70.3)
- ReactCommon/turbomodule/core (= 0.70.3)
- React-RCTText (0.70.3):
- React-Core/RCTTextHeaders (= 0.70.3)
- React-RCTVibration (0.70.3):
- RCT-Folly (= 2021.07.22.00)
- React-Codegen (= 0.70.2)
- React-Core/RCTVibrationHeaders (= 0.70.2)
- React-jsi (= 0.70.2)
- ReactCommon/turbomodule/core (= 0.70.2)
- React-runtimeexecutor (0.70.2):
- React-jsi (= 0.70.2)
- ReactCommon/turbomodule/core (0.70.2):
- React-Codegen (= 0.70.3)
- React-Core/RCTVibrationHeaders (= 0.70.3)
- React-jsi (= 0.70.3)
- ReactCommon/turbomodule/core (= 0.70.3)
- React-runtimeexecutor (0.70.3):
- React-jsi (= 0.70.3)
- ReactCommon/turbomodule/core (0.70.3):
- DoubleConversion
- glog
- RCT-Folly (= 2021.07.22.00)
- React-bridging (= 0.70.2)
- React-callinvoker (= 0.70.2)
- React-Core (= 0.70.2)
- React-cxxreact (= 0.70.2)
- React-jsi (= 0.70.2)
- React-logger (= 0.70.2)
- React-perflogger (= 0.70.2)
- React-bridging (= 0.70.3)
- React-callinvoker (= 0.70.3)
- React-Core (= 0.70.3)
- React-cxxreact (= 0.70.3)
- React-jsi (= 0.70.3)
- React-logger (= 0.70.3)
- React-perflogger (= 0.70.3)
- RNCAsyncStorage (1.12.1):
- React-Core
- RNGestureHandler (2.7.0):
- RNGestureHandler (2.7.1):
- React-Core
- RNKeychain (8.1.1):
- React-Core
- RNScreens (3.18.0):
- RNScreens (3.18.2):
- React-Core
- React-RCTImage
- RNVectorIcons (9.2.0):
@@ -566,8 +566,8 @@ SPEC CHECKSUMS:
boost: a7c83b31436843459a1961bfd74b96033dc77234
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
DoubleConversion: 5189b271737e1565bdce30deb4a08d647e3f5f54
FBLazyVector: 0507edc21c06f1650c591f0981c846445469373b
FBReactNativeSpec: 698ef8604615cfa7ae2119e9ca4ed7687a6ae62e
FBLazyVector: 3b313c3fb52b597f7a9b430798e6367d2b9f07e5
FBReactNativeSpec: 99a7ecb7e9665d96f2fea706b0844e2f3117f381
Flipper: 26fc4b7382499f1281eb8cb921e5c3ad6de91fe0
Flipper-Boost-iOSX: fd1e2b8cbef7e662a122412d7ac5f5bea715403c
Flipper-DoubleConversion: 2dc99b02f658daf147069aad9dbd29d8feb06d30
@@ -583,41 +583,41 @@ SPEC CHECKSUMS:
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
OpenSSL-Universal: ebc357f1e6bc71fa463ccb2fe676756aff50e88c
RCT-Folly: 0080d0a6ebf2577475bda044aa59e2ca1f909cda
RCTRequired: d4033a367d0bfd1f23f67b501f8cdabf9afe617e
RCTTypeSafety: b112b2ccc59309a65284280c0a53baf1ce4b5860
React: 04474547a4729eef1fb378ca42f302f4b3219eb8
React-bridging: 1c8695b292b4a9baaca3960f6166d9766e20492d
React-callinvoker: 4d91e2db7773ee3fcea2d3a5c6beb52a5bfd4d71
React-Codegen: 33356335c6f3b0869cb4434055fdec219139f635
React-Core: 634b8aa20e1dad445425ee9581f4719bcfd1b19b
React-CoreModules: 746825283de4b54dcb4fd88703ff516297a5f60d
React-cxxreact: f8d2686d98b5ffed1b1de3aa62e1f81db4903153
React-hermes: 4e9f5f9cfff42a23e7d6d8083e6c8a3f6f4926ee
React-jsi: 198b9b3e0a85e68cb6898265400fd8bf34cacda4
React-jsiexecutor: 53bd208e5c27939c6e6365528393445a596a9a2b
React-jsinspector: 26c42646ab0bb69e29e837e23754fe7121eeaf94
React-logger: 1bfd109a0ffa4c0989bbfac0c2d8c4abe4637faa
RCTRequired: 5cf7e7d2f12699724b59f90350257a422eaa9492
RCTTypeSafety: 3f3ead9673d1ab8bb1aea85b0894ab3220f8f06e
React: 30a333798d1fcf595e8a4108bbaa0f125a655f4a
React-bridging: 92396c03ab446756ddfb7a8e2baff3bcf19eec7d
React-callinvoker: bb66a41b41fa0b7c5f3cc626693a63c9ea0d6252
React-Codegen: a2a944a9688fae870be0a2ecdca37284034b25c2
React-Core: a689b4d1bd13e15915a05c9918c2b01df96cd811
React-CoreModules: d262214db6b704b042bc5c0735b06c346a371d7f
React-cxxreact: 81d5bf256313bf96cb925eb0e654103291161a17
React-hermes: 1c35cbfbdc7a888c3a1aa05e6d0ca004d92c923c
React-jsi: 7f99dc3055bec9a0eeb4230f8b6ac873514c8421
React-jsiexecutor: 7e2e1772ef7b97168c880eeaf3749d8c145ffd6e
React-jsinspector: 0553c9fe7218e1f127be070bd5a4d2fc19fb8190
React-logger: cffcc09e8aba8a3014be8d18da7f922802e9f19e
react-native-safe-area-context: 99b24a0c5acd0d5dcac2b1a7f18c49ea317be99a
React-perflogger: 6009895616a455781293950bbd63d53cfc7ffbc5
React-RCTActionSheet: 5e90aa5712af18bfc86c2c6d97d4dbe0e5451c1d
React-RCTAnimation: 50c44d6501f8bfb2fe885e544501f8798b4ff3d6
React-RCTBlob: 3cc08e7112dd7b77faf3fa481ba22ca2bba5f20a
React-RCTImage: ca8335860b5f64c383ad27f52a28d85089d49b7a
React-RCTLinking: 297cd91bdbf427efc861fc7943e6d683e61860fa
React-RCTNetwork: 8a197bff6f1dc5353484507a4cdcd47e9356316f
React-RCTSettings: d3db1f1e61a5ad8deb50f44f5cb6c7c3ef32b3ac
React-RCTText: c2c05ab3dbfb1cf5855b14802f392148970e48da
React-RCTVibration: 89e2cbea456ac5ec623943661d00e4dc45fe74b9
React-runtimeexecutor: 80065f60af4f4b05603661070c8622bb3740bf16
ReactCommon: 1209130f460e4aa9d255ddc75fa0a827ebf93dfb
React-perflogger: 082b4293f0b3914ff41da35a6c06ac4490fcbcc8
React-RCTActionSheet: 83da3030deb5dea54b398129f56540a44e64d3ae
React-RCTAnimation: bac3a4f4c0436554d9f7fbb1352a0cdcb1fb0f1c
React-RCTBlob: d2c8830ac6b4d55d5624469829fe6d0ef1d534d1
React-RCTImage: 26ad032b09f90ae5d2283ec19f0c455c444c8189
React-RCTLinking: 4a8d16586df11fff515a6c52ff51a02c47a20499
React-RCTNetwork: 843fc75a70f0b5760de0bf59468585f41209bcf0
React-RCTSettings: 54e59255f94462951b45f84c3f81aedc27cf8615
React-RCTText: c32e2a60827bd232b2bc95941b9926ccf1c2be4c
React-RCTVibration: b9a58ffdd18446f43d493a4b0ecd603ee86be847
React-runtimeexecutor: e9b1f9310158a1e265bcdfdfd8c62d6174b947a2
ReactCommon: 01064177e66d652192c661de899b1076da962fd9
RNCAsyncStorage: b03032fdbdb725bea0bd9e5ec5a7272865ae7398
RNGestureHandler: 7673697e7c0e9391adefae4faa087442bc04af33
RNGestureHandler: b7a872907ee289ada902127f2554fa1d2c076122
RNKeychain: ff836453cba46938e0e9e4c22e43d43fa2c90333
RNScreens: f3230dd008a7d0ce5c0a8bc78ff12cf2315bda24
RNScreens: 34cc502acf1b916c582c60003dc3089fa01dc66d
RNVectorIcons: fcc2f6cb32f5735b586e66d14103a74ce6ad61f8
SocketRocket: fccef3f9c5cedea1353a9ef6ada904fde10d6608
TouchID: ba4c656d849cceabc2e4eef722dea5e55959ecf4
Yoga: 043f8eb97345d0171f27fead4d1849cacf0472a5
Yoga: 2ed968a4f060a92834227c036279f2736de0fce3
YogaKit: f782866e155069a2cca2517aafea43200b01fd5a

PODFILE CHECKSUM: 1b974f561b4f45461b3a0f2c067841edea501508


+ 1
- 1
mobile/package.json Parādīt failu

@@ -26,7 +26,7 @@
"@react-navigation/native": "^6.0.13",
"@react-navigation/native-stack": "^6.9.1",
"@react-navigation/stack": "^6.3.2",
"axios": "^1.1.3",
"axios": "^0.27.2",
"fuzzysort": "^2.0.1",
"lesspass-fingerprint": "^9.1.9",
"lesspass-render-password": "^9.1.9",


+ 70
- 89
mobile/src/auth/SignInScreen.js Parādīt failu

@@ -1,5 +1,5 @@
import React, { Component } from "react";
import { connect } from "react-redux";
import React, { useState } from "react";
import { useDispatch, useSelector } from "react-redux";
import { isEmpty } from "lodash";
import {
KeyboardAvoidingView,
@@ -15,49 +15,46 @@ import Styles from "../ui/Styles";
import { addError } from "../errors/errorsActions";
import { signIn } from "./authActions";
import routes from "../routes";
import { useNavigation } from "@react-navigation/native";

export class SignInScreen extends Component {
constructor(props) {
super(props);
this.state = {
email: "",
password: "",
isLoading: false,
};
}
export default function SignInScreen() {
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const [isLoading, setIsLoading] = useState(false);
const navigation = useNavigation();
const dispatch = useDispatch();
const settings = useSelector((state) => state.settings);
const { encryptMasterPassword } = settings;

render() {
const { email, password, isLoading } = this.state;
const { navigation, settings, addError, signIn } = this.props;
const { encryptMasterPassword } = settings;
return (
<KeyboardAvoidingView
behavior={Platform.OS === "ios" ? "padding" : "height"}
style={Styles.container}
>
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
<ScrollView contentContainerStyle={Styles.innerContainer}>
<Title>Connect to Lesspass Database</Title>
<TextInput
mode="outlined"
label="Email"
value={email}
onChangeText={(text) => this.setState({ email: text.trim() })}
/>
<MasterPassword
label={encryptMasterPassword ? "Master Password" : "Password"}
masterPassword={password}
hideFingerprint={!encryptMasterPassword}
onChangeText={(password) => this.setState({ password })}
/>
<Button
compact
icon={"account-circle"}
mode="contained"
style={Styles.loginSignInButton}
disabled={isEmpty(email) || isEmpty(password) || isLoading}
onPress={() => {
this.setState({ isLoading: true });
return (
<KeyboardAvoidingView
behavior={Platform.OS === "ios" ? "padding" : "height"}
style={Styles.container}
>
<TouchableWithoutFeedback onPress={Keyboard.dismiss}>
<ScrollView contentContainerStyle={Styles.innerContainer}>
<Title>Connect to Lesspass Database</Title>
<TextInput
mode="outlined"
label="Email"
value={email}
onChangeText={(text) => setEmail(text.trim())}
/>
<MasterPassword
label={encryptMasterPassword ? "Master Password" : "Password"}
masterPassword={password}
hideFingerprint={!encryptMasterPassword}
onChangeText={(password) => setPassword(password)}
/>
<Button
compact
icon={"account-circle"}
mode="contained"
style={Styles.loginSignInButton}
disabled={isEmpty(email) || isEmpty(password) || isLoading}
onPress={() => {
setIsLoading(true);
dispatch(
signIn(
{
email,
@@ -65,50 +62,34 @@ export class SignInScreen extends Component {
},
encryptMasterPassword
)
.then(() => navigation.navigate(routes.PASSWORD_GENERATOR))
.catch(() => {
this.setState({ isLoading: false });
let errorMessage =
"Unable to log in with provided credentials.";
if (encryptMasterPassword) {
errorMessage +=
" Your master password is encrypted. Uncheck this option in your settings if you don't use it.";
}
addError(errorMessage);
});
}}
>
Sign In
</Button>
<Text>Don't have an account?</Text>
<Button
compact
icon="account-circle"
mode="outlined"
style={Styles.loginSignUpButton}
onPress={() => navigation.navigate(routes.SIGN_UP)}
>
Sign Up
</Button>
</ScrollView>
</TouchableWithoutFeedback>
</KeyboardAvoidingView>
);
}
)
.then(() => navigation.navigate(routes.PASSWORD_GENERATOR))
.catch(() => {
setIsLoading(false);
let errorMessage =
"Unable to log in with provided credentials.";
if (encryptMasterPassword) {
errorMessage +=
" Your master password is encrypted. Uncheck this option in your settings if you don't use it.";
}
dispatch(addError(errorMessage));
});
}}
>
Sign In
</Button>
<Text>Don't have an account?</Text>
<Button
compact
icon="account-circle"
mode="outlined"
style={Styles.loginSignUpButton}
onPress={() => navigation.navigate(routes.SIGN_UP)}
>
Sign Up
</Button>
</ScrollView>
</TouchableWithoutFeedback>
</KeyboardAvoidingView>
);
}

function mapStateToProps(state) {
return {
settings: state.settings,
};
}

function mapDispatchToProps(dispatch) {
return {
addError: (message) => dispatch(addError(message)),
signIn: (credentials, encryptMasterPassword) =>
dispatch(signIn(credentials, encryptMasterPassword)),
};
}

export default connect(mapStateToProps, mapDispatchToProps)(SignInScreen);

+ 1
- 1
mobile/src/version.json Parādīt failu

@@ -1,3 +1,3 @@
{
"version": "9.7.1"
"version": "9.7.2"
}

+ 1076
- 1588
mobile/yarn.lock
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


Notiek ielāde…
Atcelt
Saglabāt