This topic describes the functionality of each SDK component on the Android and iOS platforms, whether the component can be trimmed, and the impact of trimming on application features and package size.
Android component trimming
Trimmable | Module name | Module description | Impact on features after trimming | Compiled size | ||
Dual architecture | ARM64 | ARMv7 | ||||
Cannot be cropped | idv-identitybase-sdk-[version].aar | Base module. | Cannot be trimmed | 0.1 MB | ||
Cropping is not supported. | idv-identityplatform-[version].aar | Base module. | Cannot be trimmed | 0.13 MB | ||
This item cannot be cropped. | idv-identitycrypto-[version].aar | Base module. | Cannot be trimmed | 0.44 MB | 0.26 MB | 0.19 MB |
Crop | idv-identityface-[version].aar | Base UI module for facial recognition. | The face liveness detection feature is unavailable after trimming. | 0.16 MB | ||
Cropping | tygerservice-[version].aar | Base module for facial recognition. | The face liveness detection feature is unavailable after trimming. | 2.6 MB | 1.67 MB | 1.4 MB |
Croppable | idv-identitymnn-[version].aar. | The mnn module is a base component for face liveness detection, face quality assessment, and automatic OCR scanning. If you trim this module, these features become unavailable. | After this module is trimmed, the face liveness detection, face quality assessment, and automatic OCR scanning features are unavailable. | 2.19 MB | 1.2 MB | 0.99 MB |
Croppable | idv-identityservice-sdk-[version].aar | Face liveness detection. | The face liveness detection feature is unavailable after trimming. | 0.75 MB | 0.47 MB | 0.42 MB |
Croppable | idv-identityblink-sdk-[version].intl.aar | Face liveness detection module for blinking. | The face liveness detection feature for blinking is unavailable after trimming. | 0.22 MB | ||
Croppable | idv-identityquality-sdk-[version].aar | Strict face quality detection module. This is an optional server-side feature. You can trim this module if you do not need this feature. | Face quality and occlusion detection do not work after trimming. | 0.14 MB | ||
Croppable | idv-identityocr-[version].aar | OCR module. This module cannot be trimmed if you use eKYC verification. | The OCR and eKYC verification features are unavailable after trimming. | 0.23 MB | ||
Croppable | idv-identityocrservice-[version].aar | OCR service module for automatic OCR scanning. | Automatic OCR scanning is unavailable after trimming. | 0.61 MB | 0.47 MB | 0.42 MB |
Croppable | Android-AliyunFaceGuard-[version].aar | Device assistant module. It protects the client-side verification environment during the face scan process. | This module protects the client-side verification environment during the face scan process. Trimming it weakens security. Keep this module. | 3.3 MB | 2.8 MB | 2 MB |
Croppable | IDOCR_PubSDK_Android-1.0.0.aar | NFC service module. Note You can trim this module if the NFC feature is not required for eKYC verification. | The NFC feature is unavailable after trimming. | 5.2 MB | ||
Croppable | idv-identitynfc-[version].intl.aar | NFC business module. Note You can trim this module if the NFC feature is not required for eKYC verification. | The NFC feature is unavailable after trimming. | 0.14 MB | ||
iOS component trimming
Trimmable | Module | Module description | Package size increase |
Croppable | AliyunIdentityNFC | If trimmed, the NFC feature is unavailable. | 3.7 M |
Croppable | OpenSSL | If trimmed, the NFC feature is unavailable. | |
Croppable | AliyunIdentityOcr | If trimmed, the OCR and eKYC verification features are unavailable. | 0.8 M |
Croppable | faceguard | This module protects the security of the client-side verification environment during the face scan process. Trimming it weakens the security protection. | 0.74 M |
Croppable | AliyunIdentityFace | If trimmed, the face liveness feature cannot be used. | 2.2 MB |
Croppable | ToygerService | If trimmed, the face liveness feature cannot be used. | 0.98 M |
Croppable | ToygerNative | If trimmed, the face liveness feature cannot be used. | |
Not croppable | AliyunIdentityPlatform | Cannot be trimmed. | 0.04 M |
Cropping not supported | AliyunIdentityUtils | Cannot be trimmed. | 0.04 M |
Croppable | MNN | If this module is trimmed, the depth liveness, face quality, and automatic OCR scanning features are unavailable. | 0.09 MB |
Not croppable | DTFUtility | Cannot be trimmed. | 0.1 M |
Cannot be cropped | AliyunOSSiOS | Cannot be trimmed. | 0.23 M |