Commit 6456e4db authored by Prakhar Agrawal's avatar Prakhar Agrawal
Browse files

Added new build and updated documentation.

parent 305d1b9e
Loading
Loading
Loading
Loading
+1.44 KiB (27.5 KiB)

File changed.

No diff preview for this file type.

+20 −3
Original line number Diff line number Diff line
# Leegality Android SDK 3.1#
# Leegality Android SDK 4.2

### Steps to Use ###

1. Download Leegality Library from http://gitlab.leegality.com/leegality-public/android-sdk/blob/v3.1/leegality.aar
1. Download Leegality Library from http://gitlab.leegality.com/leegality-public/android-sdk/blob/v4.2/leegality.aar
2. Import Leegality Library to your project by following the steps laid down in https://developer.android.com/studio/projects/android-library.html#AddDependency. 
3. To initialize signing, start activity Leegality provided by the Leegality Library. 
Pass signing URL in url key.
@@ -13,7 +13,24 @@ Pass signing URL in url key.
	//REQUEST_CODE is your constant, which is used to identify particular activity.
	```

#### Note: It is recommended to start signing process by using startActivityForResult instead of startActivity to receive the response/error. 
### Note: 

1. It is recommended to start signing process by using startActivityForResult instead of startActivity to receive the response/error. 
2. If you are using captureLocation, capturePhoto parameter in API. You have to take following permission from the user. These are runtime permissions if you dont take following permission Leegality will not be able to capture Location & Photo of user.
    ```
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    ```
3. If you are using captureLocation, capturePhoto parameter in API. Your android application should be atleast at version 21.
4. If you want to autofill Leegality OTP and NSDL/CDAC OTP at the signing page. You have to take following permission from the user. These are runtime permission if you dont take following permission user have to fill all OTP's manually.
    ```
    <uses-permission android:name="android.permission.READ_SMS" />
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    ```
5. Please also take the following runtime permission from the user to allow downloading of the document.
    ```
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    ```

### Result: ###