> For the complete documentation index, see [llms.txt](https://docs.wepin.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wepin.io/en/deprecated/flutter-sdk/installation.md).

# Installation

## Requirements

* Android API version <mark style="color:blue;">`26`</mark> or higher
* iOS version <mark style="color:blue;">`14.5`</mark> or higher

## Installation

Here is how to install the Wepin iOS SDK.

### install Wepin via `pub`

The Wepin Flutter SDK is available on <mark style="color:blue;">`pub.dev`</mark>, and you can install it using the following command or by adding it as a dependency in your app's **pubspec.yaml**.

#### Add `wepin_flutter` via `flutter pub add` command

```sh
$ flutter pub add wepin_flutter
```

#### Add `wepin_flutter` to the dependencies in your pubspec.yaml

```yaml
dependencies:
    wepin_flutter: ^0.0.4
```

## For iOS

### Modify Info file

In Xcode, you need to register URL Schemes in the Info file.

The value of URL Schemes should be <mark style="color:blue;">`wepin. + appId (assigned during registration)`</mark>&#x20;

{% hint style="danger" %}
Make sure that the App Bundle ID is not allowed to contain any special characters other than '<mark style="color:blue;">`+`</mark>', '<mark style="color:blue;">`-`</mark>', '<mark style="color:blue;">`.`</mark>'.\
(Refer to: <https://datatracker.ietf.org/doc/html/rfc2396>)
{% endhint %}

<figure><img src="/files/1IffqAM0loy9aJNFJFIt" alt=""><figcaption></figcaption></figure>

## For Android

### Modify AndroidManifest

To use Wepin in your app, you need to modify the AndroidManifest.xml file of your app.

#### Add Permissions

Add the following permission to the main Activity of your app to use Wepin.

```xml
<uses-permission android:name="android.permission.INTERNET" />
```

#### Add Intent Filter for Wepin Activity

You need to add an intent filter for the Wepin activity in your app's AndroidManifest.xml. The schema value you add should be <mark style="color:blue;">`wepin. + appId (assigned during registration)`</mark>

```xml
<activity
    android:name="io.wepin.widget.WepinMainActivity"
    android:exported="true">
    <intent-filter>
        <action android:name="android.intent.action.VIEW" />
        <category android:name="android.intent.category.DEFAULT" />
        <category android:name="android.intent.category.BROWSABLE" />
        <!--For Deep Link => Urlscheme Format : wepin. + appID-->
        <data
            android:scheme="wepin.88889999000000000000000000000000"
            />
    </intent-filter>
</activity>
```

## Release

The released package versions can be found on the GitHub repository below.

{% embed url="<https://github.com/WepinWallet/wepin-flutter-sdk>" %}
