Upgrading ONE store IAP to V21
Upgrade from v19 to v21
Change the Library
ONE store In-App Purchase (IAP) SDK provides distribution through maven from v21. If you want to use the IAP library through maven, you must make the following changes:
Delete the v19 AAR file.
Delete the iap_sdk-v19.XX.XX.aar file in the libs folder of the project.
Add maven dependencies.
Register the ONE store maven address in the project top-level build.gradle file.
Add ONE store payment library dependencies to the app's build.gradle file.
Change the json File
ONE store has provided essential params for use in SDK from IAP SDK v19 through global-appstores.json. Starting from v21, we are distributing these values to maven to make them more convenient. To change the content, please follow the steps below:
Delete global-appstores.json
Delete the global-appstores.json file in the assets folder of the project
Add maven dependencies
Register the ONE store maven address in the project top-level's build.gradle file.
Add ONE store payment library dependencies to the app's build.gradle file.
Edit Deprecated Items
The following items have been deprecated in v21 SDK. There is no problem using it. However, changes are required for smooth use in the future.
Interface
Method
Upgrade from v17 to v21
Change the Payment Library
Upgrading from v17 to v21 changes the library from jar to aar. Developers using the v17 library must upgrade from 19 to v21 through the guide and change to maven. Then, additional work (deleting meta-data) is required on the part that has changed from jar to aar distribution.
Delete v17 jar library
Delete the jar file in the libs folder of the project.
Delete the following meta-data in AndroidManifest
Add maven dependencies: Note for upgrading from v19 to v21
Add Json File Dependencies
From v19 and above, the json file is required for the operation of SDK. Please refer to Upgrading from v19 to v21 > Change the json file > Add maven dependencies to add dependencies to the project.
Edit Changes
Please refer to the ONE store In-App Purchase SDK upgrade guide to edit changes.
Last updated