Skip to content

Commit

Permalink
Merge pull request #2815 from Expensify/marcaaron-addOnfidoSDKs
Browse files Browse the repository at this point in the history
Add Onfido SDKs + Enable Payments flow
  • Loading branch information
roryabraham authored Jun 4, 2021
2 parents 2345457 + 6cf1a56 commit 90d28b3
Show file tree
Hide file tree
Showing 39 changed files with 1,836 additions and 82 deletions.
2 changes: 2 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ buildscript {

allprojects {
repositories {
maven { url "https://dl.bintray.com/onfido/maven" }

mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
Expand Down
1 change: 1 addition & 0 deletions apple-app-site-association
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"/v/*",
"/add-bank-account/*",
"/iou/*",
"/enable-payments/*",
]
}
]
Expand Down
4 changes: 4 additions & 0 deletions config/webpack/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ const webpackConfig = {
},
],
},
{
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
},
],
},
resolve: {
Expand Down
4 changes: 4 additions & 0 deletions ios/ExpensifyCash.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,13 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-ExpensifyCash-ExpensifyCashTests/Pods-ExpensifyCash-ExpensifyCashTests-frameworks.sh",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Onfido/Onfido.framework/Onfido",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL/OpenSSL.framework/OpenSSL",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/LinkKit/LinkKit.framework/LinkKit",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Onfido.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/LinkKit.framework",
);
Expand All @@ -537,11 +539,13 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-ExpensifyCash/Pods-ExpensifyCash-frameworks.sh",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/Onfido/Onfido.framework/Onfido",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL/OpenSSL.framework/OpenSSL",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/LinkKit/LinkKit.framework/LinkKit",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Onfido.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/OpenSSL.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/LinkKit.framework",
);
Expand Down
4 changes: 3 additions & 1 deletion ios/ExpensifyCash/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,10 @@
</dict>
</dict>
</dict>
<key>NSMicrophoneUsageDescription</key>
<string>Required for video capture</string>
<key>NSCameraUsageDescription</key>
<string>Your camera is used to create chat attachments.</string>
<string>Your camera is used to create chat attachments, documents, and facial capture.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Your location is used to determine your default currency.</string>
<key>NSPhotoLibraryAddUsageDescription</key>
Expand Down
10 changes: 10 additions & 0 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ PODS:
- nanopb/encode (= 1.30906.0)
- nanopb/decode (1.30906.0)
- nanopb/encode (1.30906.0)
- Onfido (20.1.0)
- onfido-react-native-sdk (1.3.3):
- Onfido (= 20.1.0)
- React
- OpenSSL-Universal (1.1.180)
- Permission-LocationAccuracy (3.0.1):
- RNPermissions
Expand Down Expand Up @@ -473,6 +477,7 @@ DEPENDENCIES:
- FlipperKit/SKIOSNetworkPlugin (= 0.75.1)
- Folly (from `../node_modules/react-native/third-party-podspecs/Folly.podspec`)
- glog (from `../node_modules/react-native/third-party-podspecs/glog.podspec`)
- "onfido-react-native-sdk (from `../node_modules/@onfido/react-native-sdk`)"
- Permission-LocationAccuracy (from `../node_modules/react-native-permissions/ios/LocationAccuracy`)
- Permission-LocationAlways (from `../node_modules/react-native-permissions/ios/LocationAlways`)
- Permission-LocationWhenInUse (from `../node_modules/react-native-permissions/ios/LocationWhenInUse`)
Expand Down Expand Up @@ -549,6 +554,7 @@ SPEC REPOS:
- GoogleUtilities
- libevent
- nanopb
- Onfido
- OpenSSL-Universal
- Plaid
- PromisesObjC
Expand All @@ -565,6 +571,8 @@ EXTERNAL SOURCES:
:podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec"
glog:
:podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec"
onfido-react-native-sdk:
:path: "../node_modules/@onfido/react-native-sdk"
Permission-LocationAccuracy:
:path: "../node_modules/react-native-permissions/ios/LocationAccuracy"
Permission-LocationAlways:
Expand Down Expand Up @@ -691,6 +699,8 @@ SPEC CHECKSUMS:
GoogleUtilities: 7f2f5a07f888cdb145101d6042bc4422f57e70b3
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
nanopb: 59317e09cf1f1a0af72f12af412d54edf52603fc
Onfido: 116a268e4cb8b767c15285e8071c2e8304673cdf
onfido-react-native-sdk: b8f1b7cbe1adab6479d735275772390161630dcd
OpenSSL-Universal: 1aa4f6a6ee7256b83db99ec1ccdaa80d10f9af9b
Permission-LocationAccuracy: e8adff9ede1b23b43b7054a4500113d515fc87a8
Permission-LocationAlways: 7f7f373d086af7a81b2f4f20d65d29266ca2043b
Expand Down
Loading

0 comments on commit 90d28b3

Please sign in to comment.