> 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>" %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.wepin.io/en/deprecated/flutter-sdk/installation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
