# 설치

## 요구사항

Android API 버전 <mark style="color:blue;">26</mark> 이상&#x20;

## 설치하기

Wepin Android SDK 를 설치하는 방법을 설명합니다.&#x20;

### Wepin을 .gradle에 추가하기&#x20;

위핀을 사용하고자 하는 project 레벨의 <mark style="color:blue;">`build.gradle`</mark> 또는 <mark style="color:blue;">`settings.gradle`</mark>에 JitPack 레포지토리를 추가합니다.

```java
allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
}
```

### Wepin을 dependencies에 추가하기

위핀을 사용하고자 하는 앱 레벨의 <mark style="color:blue;">`build.gradle`</mark>의 <mark style="color:orange;">`dependencies`</mark> 섹션에 아래와 같이 추가 합니다. 버전은 사용하고자 하는 릴리즈 버전을 넣으면 됩니다.&#x20;

```java
dependencies {
    // ...
    implementation 'com.github.WepinWallet:wepin-android-sdk:1.0.0'
    implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.5'
    implementation 'androidx.browser:browser:1.2.0'
}
```

### AndroidManifest 수정하기&#x20;

위핀을 사용하고자 하는 앱의 AndroidManifest.xml을 수정해야 합니다.

#### 퍼미션 추가하기

위핀을 사용하고자 하는 앱의  메인 Activity에 아래와 같이 퍼미션을 추가 합니다.&#x20;

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

#### 위핀 Activity의 인텐트 필터 추가

위핀 Activity의 인텐트 필터를 앱의 AndroidManifest.xml 에 추가 해야 합니다. 이 때 추가하는 스키마 값은 <mark style="color:blue;">`앱의 package 이름 + .wepin`</mark> 으로 추가해야 합니다.

{% hint style="danger" %}
앱의 package 이름에 '+', '-', '.' 이외의 다른 특수 문자는 포함하지 않습니다.  \
(참고: <https://datatracker.ietf.org/doc/html/rfc2396>)
{% endhint %}

```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 : packageName + .wepin-->
        <data
            android:scheme="com.sample.app.wepin"
            />
    </intent-filter>
</activity>
```

## 릴리즈&#x20;

릴리즈된 패키지 버전은 아래 깃허브에서 확인 가능합니다.

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


---

# Agent Instructions: 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:

```
GET https://docs.wepin.io/deprecated/android-java-and-kotlin-sdk/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
