# Upgrading from Unity to ALC SDK v2

### Update library files for V1 → V2 conversion <a href="#upgradingfromunitytoalcsdkv2-updatelibraryfilesforv1-v2conversion" id="upgradingfromunitytoalcsdkv2-updatelibraryfilesforv1-v2conversion"></a>

#### Delete the library files used in V1. <a href="#upgradingfromunitytoalcsdkv2-deletethelibraryfilesusedinv1." id="upgradingfromunitytoalcsdkv2-deletethelibraryfilesusedinv1."></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>                                     |

#### Add the necessary libraries to use V2. <a href="#upgradingfromunitytoalcsdkv2-addthenecessarylibrariestousev2." id="upgradingfromunitytoalcsdkv2-addthenecessarylibrariestousev2."></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> |
| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |

#### In Unity, go to Project Settings > Publishing Settings and add the Custom Build environment <a href="#upgradingfromunitytoalcsdkv2-inunity-gotoprojectsettings-greater-than-publishingsettingsandaddthecus" id="upgradingfromunitytoalcsdkv2-inunity-gotoprojectsettings-greater-than-publishingsettingsandaddthecus"></a>

In order to login, update and install modules, the following must be added.

Items that must be added

* Custom Main Manifest
* Custom Main Gradle Template
* Custom Launcher Gradle Template

<figure><img src="https://2218522982-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgStyyzRzNh9x2u93ZH03%2Fuploads%2F0wqTa9KC0yT9KVeYHUXX%2Fimage.png?alt=media&#x26;token=91ebcd84-8148-4d32-ad23-a5aafc039891" alt=""><figcaption></figcaption></figure>

#### Add \<queries> in AndroidManifest.xml <a href="#upgradingfromunitytoalcsdkv2-add-less-than-queries-greater-than-inandroidmanifest.xml" id="upgradingfromunitytoalcsdkv2-add-less-than-queries-greater-than-inandroidmanifest.xml"></a>

Please refer to the ONE store notices for setting up the following two cases:

* [For Target SDK version set to 30 (OS11) or higher](https://dev.onestore.co.kr/devpoc/support/news/noticeView.omp?pageNo=4\&noticeId=32968\&viewPageNo=\&searchValue=)
* [For Target SDK version set to 31 (OS12) or higher](https://dev.onestore.co.kr/devpoc/support/news/noticeView.omp?pageNo=1\&noticeId=33072\&viewPageNo=\&searchValue=)

Assets > Plugins > Android > AndroidManifest.xml

The queries must be added as follows.
