-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
31ae493
commit cad38bf
Showing
48 changed files
with
1,208 additions
and
978 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
![FAQ](images/jumio_feature_graphic.png) | ||
|
||
# FAQ | ||
|
||
## Table of Content | ||
- [Reducing the size of your app](#reducing-the-size-of-your-app) | ||
- [Strip unused modules](#strip-unused-modules) | ||
- [App bundles](#app-bundles) | ||
- [Architectures - ABI filters & Splitting](#arch) | ||
|
||
### Reducing the size of your app | ||
The Netverify SDK contains a wide range of different scanning methods. The SDK is able to capture identity documents and extract information on the device using enhanced machine learning and computer vision technologies. | ||
The current download size of the sample application containing all products is 27 MB as mentioned in the [Netverify guide](integration_netverify-fastfill.md). | ||
If you want to reduce the size of the SDK within your application, there are several ways that are explained in the following chapters. | ||
|
||
#### Strip unused modules | ||
Depending on the functionality you require, you may want to strip out unused functionality. This can be done adapting your jumio dependencies in your build.gradle. The following table shows a range of different product configurations with the size and modules that are linked for it. The measurements are based on our sample application. | ||
|
||
|Product Configuration | Size | Modules | | ||
|:--------------------------|:------:|:----------| | ||
|Full Netverify + Authentication | 25.1 MB | core, nv, nv-mrz, nv-ocr, nv-nfc, nv-barcode, auth, face | | ||
|Netverify MRZ only with Face | 21.8 MB | core, nv, nv-mrz, face | | ||
|Netverify MRZ only without Face | 9.4 MB | core, nv, nv-mrz | | ||
|Netverify Barcode scanning without Face | 9.5 MB | core, nv, nv-barcode-vision | | ||
|BAM Checkout | 8.7 MB | core, bam | | ||
|Document verification | 7.1 MB | core, dv | | ||
|
||
|
||
#### App bundles | ||
Android offers a way to reduce the size of a customer's built application using [App bundles](https://developer.android.com/guide/app-bundle/) | ||
Google Play’s new app serving model uses the *App bundle* to generate and serve optimized APKs for each user’s device configuration, so they download only the code and resources they need to run your app. | ||
|
||
We implemented App bundles for our [Jumio Showcase application](https://play.google.com/store/apps/details?id=com.jumio.demo.netverify). It contains all products: Netverify, Authentication, BAM Checkout and Document Verification. | ||
The app size was 28.9 MB when being distributed as a single apk file with all configurations. After implementing App bundles, the download size of the app was reduced significantly: | ||
|
||
These are the results of different test devices: | ||
|
||
|Device type | Version | Download size (Play Store) | | ||
|:--------------|:-------------:|:--------------------------:| | ||
|LG Leon | 5.0.1 | 16.56 MB | | ||
|Galaxy S7 | 7.0 | 18.10 MB | | ||
|Huawei P10 Lite| 7.0 | 18.74 MB | | ||
|Nexus 6 | 5.1.1 | 16.66 MB | | ||
|Galaxy S5 | 6.0.1 | 16.67 MB | | ||
|Galaxy Tab S | 4.4.2 | 16.55 MB | | ||
|Galaxy S8 | 7.0 | 18.15 MB | | ||
|Pixel 3 XL | 9.0 | 19.77 MB | | ||
|
||
#### <a name="arch"></a>Architectures - ABI filters & Splitting | ||
The SDK supports *armeabi-v7a* and *arm64-v8a* architecture. The following table shows their sizes: | ||
|
||
|Architecture | Size | | ||
|:---------------|:---------:| | ||
|Arm64-v8a | 10 MB | | ||
|Armeabi-v7a | 8.5 MB | | ||
|
||
You can filter which architecture to use by specifying the abiFilters. | ||
|
||
That way, you could manually filter for *armeabi-v7a* as *arm64-v8a* is backwards compatible. | ||
__Be aware:__ 64-bit support will be required from August 2019 as mentioned in the [Android developers blog](https://android-developers.googleblog.com/2017/12/improving-app-security-and-performance.html). | ||
|
||
__Note:__ The abiFilters command in the ndk closure affects the Google Play Store filtering. | ||
|
||
``` | ||
defaultConfig { | ||
ndk { | ||
abiFilters armeabi-v7a","arm64-v8a","x86","x86_64" | ||
} | ||
} | ||
``` | ||
|
||
It's also possible to manually provide a splitted apk on Google Play. | ||
The apk can be split based on the architecture if multiple apks should be uploaded to the Google Play Store. Google Play Store manages to deliver the appropriate apk for the device. | ||
``` | ||
splits { | ||
abi { | ||
enable true | ||
reset() | ||
include armeabi-v7a","arm64-v8a","x86","x86_64" | ||
universalApk false | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright (c) 2000 - 2019 The Legion of the Bouncy Castle Inc. (https://www.bouncycastle.org) | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
Oops, something went wrong.