> For the complete documentation index, see [llms.txt](https://onestore-dev.gitbook.io/dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://onestore-dev.gitbook.io/dev/tools/alc/unity-alc-sdk-v2.md).

# Unity에서 ALC SDK V2로 업그레이드 하기

### V1 → V2로 변환을 위해 라이브러리 파일 업데이트 <a href="#unity-alcsdkv2-v1-v2" id="unity-alcsdkv2-v1-v2"></a>

#### V1에서 사용한 라이브러리 파일을 삭제합니다. <a href="#unity-alcsdkv2-v1-." id="unity-alcsdkv2-v1-."></a>

| Assets > Plugins > Android | <ul><li>sdk-alc-v1.0.0.aar</li><li>alc-android-library-v1.0.0.aar</li></ul> |
| -------------------------- | --------------------------------------------------------------------------- |
| Assets > StreamingAssets   | <ul><li>global-appstores.json</li></ul>                                     |

#### V2 사용을 위해 필요한 라이브러리를 추가합니다. <a href="#unity-alcsdkv2-v2-." id="unity-alcsdkv2-v2-."></a>

| Assets > Plugins > Android | <ul><li>sdk-alc-v2.0.0.aar</li><li>sdk-auth-v1.0.2.aar</li><li>sdk-base-v1.0.3.aar</li><li>sdk-configuration-v1.0.0.aar</li><li>alc\_adapter-v1.1.0.aar</li></ul> |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |

#### Unity에서 Project Settings > Publishing Settings 의 Custom Build 환경을 추가합니다. <a href="#unity-alcsdkv2-unity-projectsettings-greater-than-publishingsettings-customebuild-." id="unity-alcsdkv2-unity-projectsettings-greater-than-publishingsettings-customebuild-."></a>

로그인, 업데이트와 설치 모듈을 위해 아래 내용을 추가해야 합니다.

추가해야 하는 항목

* Custom Main Manifest 파일
* Custom Main Gradle Template 파일
* Custom Launcher Gradle Template 파일

<figure><img src="/files/7TT0w8abaTH1W4LrJSr5" alt=""><figcaption></figcaption></figure>

#### AndroidManifest.xml에 \<queries> 추가 <a href="#unity-alcsdkv2-androidmanifest.xml-less-than-queries-greater-than" id="unity-alcsdkv2-androidmanifest.xml-less-than-queries-greater-than"></a>

아래의 두 가지의 경우 원스토어 공지사항을 참조하여 설정 바랍니다.

* [Target SDK 버전이 30(OS 11) 이상으로 설정한 경우](https://dev.onestore.co.kr/devpoc/support/news/noticeView.omp?pageNo=4\&noticeId=32968\&viewPageNo=\&searchValue=)
* [Target SDK 버전이 31(OS 12) 이상으로 설정한 경우](https://dev.onestore.co.kr/devpoc/support/news/noticeView.omp?pageNo=1\&noticeId=33072\&viewPageNo=\&searchValue=)

Assets > Plugins > Android > AndroidManifest.xml

아래와 같이 queries 추가가 필요합니다.

```xml

<manifest>
  <queries>
     <intent>
         <action android:name="com.onestore.ipc.iap.IapService.ACTION" />
     </intent>
     <intent>
         <action android:name="android.intent.action.VIEW" />
         <data android:scheme="onestore" />
     </intent>
  </queries>
  ...
  <application>
  </application>
</manifest>

```


---

# 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://onestore-dev.gitbook.io/dev/tools/alc/unity-alc-sdk-v2.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.
