Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AndroidX biometric manager #260

Merged
merged 27 commits into from
Mar 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f7f0d90
refactored code, implemented androidx biometrics
Oct 28, 2019
5b48966
upgraded gradle
Oct 28, 2019
be54384
sample upgraded to RN0.61
Oct 28, 2019
7ce50f3
package API and version updates
Oct 28, 2019
bdc94fb
updates
Nov 6, 2019
1ff9e76
fix Unable to resolve module `AccessibilityInfo` from
compojoom Nov 4, 2019
f15ca36
the KeychainExample works on iOS + added autolinking config
compojoom Nov 4, 2019
7480294
added signing login for binaries. Possible to build RELEASE builds now
Nov 6, 2019
6f0c847
iOS part updated
Nov 6, 2019
799b51c
fixed flow checks, added several ignores
Nov 7, 2019
764f9a7
Add Face ID usage description
oblador Nov 7, 2019
62f46b3
Don't show Android only button on iOS
oblador Nov 7, 2019
a99c6b9
improved major logic
Jan 10, 2020
8b74535
tests that demonstrate SOFTWARE security level
Jan 10, 2020
3332409
exclude root project gradle files (they exists only during the develo…
Jan 10, 2020
a919b3a
upgrade gradle configuration to latest
Jan 15, 2020
e7b6eb8
added simple time tracking code
Jan 15, 2020
3ef3ae3
rework API methods
Jan 21, 2020
940efd8
added test: raise exception on attempt to extract secret from expired…
Jan 22, 2020
5dd07ea
updated API
Jan 23, 2020
1ee1a4e
Updated unit tests for JS side
Jan 23, 2020
f24a7dc
added dependency to root 'build' task
Jan 23, 2020
fa43f37
Update README.md, API for iOS & Android
OleksandrKucherenko Jan 24, 2020
cee6290
Remove redundant options argument from set/requestSharedWebCredentials
oblador Feb 28, 2020
6a1a79c
Revert breaking changes and harmonize iOS/Android signatures
oblador Feb 28, 2020
7a845c3
Update KeychainExample to be more similar to a fresh project
oblador Feb 28, 2020
45f4501
Update flow type test with legacy support arguments
oblador Feb 28, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,8 @@ insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
max_line_length = 100


[*.java]
max_line_length = 120
78 changes: 46 additions & 32 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,28 @@
; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*
; Ignore polyfills
node_modules/react-native/Libraries/polyfills/.*

; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js
; These should not be required directly
; require from fbjs/lib instead: require('fbjs/lib/warning')
node_modules/warning/.*

; Ignore polyfills
.*/Libraries/polyfills/.*
; Flow doesn't support platforms
.*/Libraries/Utilities/LoadingView.js

; Example node_modules
<PROJECT_ROOT>/KeychainExample/node_modules/
<PROJECT_ROOT>/node_modules/fbjs/.*

; Ignore metro
.*/node_modules/metro/.*
[untyped]
.*/node_modules/@react-native-community/cli/.*/.*

[include]

[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow/
node_modules/react-native/flow-github/

[options]
emoji=true
Expand All @@ -33,38 +35,50 @@ esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable

module.system=haste
module.system.haste.use_name_reducers=true
# get basename
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
# strip .js or .js.flow suffix
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
# strip .ios suffix
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
module.system.haste.paths.blacklist=.*/__tests__/.*
module.system.haste.paths.blacklist=.*/__mocks__/.*
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*

munge_underscores=true

module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'

module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.ios.js
module.file_ext=.android.js
module.file_ext=.native.js

munge_underscores=true

module.name_mapper='^react-native$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/react-native/react-native-implementation'
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native\\(_ios\\)?_\\(oss\\|fb\\)[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[lints]
sketchy-null-number=warn
sketchy-null-mixed=warn
sketchy-number=warn
untyped-type-import=warn
nonstrict-import=warn
deprecated-type=warn
unsafe-getters-setters=warn
inexact-spread=warn
unnecessary-invariant=warn
signature-verification-failure=warn
deprecated-utility=error

[strict]
deprecated-type
nonstrict-import
sketchy-null
unclear-type
unsafe-getters-setters
untyped-import
untyped-type-import

[version]
^0.78.0
^0.105.2
43 changes: 36 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# Android/IntelliJ
#
Expand All @@ -29,20 +28,50 @@ build/
.gradle
local.properties
*.iml
*.keystore
!debug.keystore
android/gradle/
android/gradlew
android/gradlew.bat

# Vscode / Eclipse
.settings/
.project
.classpath
.vscode/

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots

# Bundle artifact
*.jsbundle

# CocoaPods
/ios/Pods/
ios/Pods/
KeychainExample/ios/Pods/

# Logs
*.log

# Merge backups kdiff3
*.orig

# Root project gradle
gradle/wrapper/
gradlew
gradlew.bat
6 changes: 6 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

{
"default": true,
"no-inline-html": false,
"line-length": false
}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
KeychainExample/
.idea/
.gradle/
3 changes: 0 additions & 3 deletions KeychainExample/.babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion KeychainExample/.flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.78.0
^0.105.2
1 change: 1 addition & 0 deletions KeychainExample/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ DerivedData
*.ipa
*.xcuserstate
project.xcworkspace
ios/Pods/

# Android/IntelliJ
#
Expand Down
Loading