Skip to content

ONE-store/unity_plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ONEstore In-app Plugin for Unity

Overview

ONE store In-app Integration Library v1.2.0 is a service that sells and charges products implemented in Android apps to users using ONE store's authentication and payment system, and settles them with the developers.

In order to pay for in-app products, it must be linked with the ONE store service (OSS) app, and the OSS app works with the ONE store payment server to conduct payments for in-app products.

Caution

These are required libraries for using in-app purchases or check licenses.

  • OneStoreCorpPlugins/Common
  • OneStoreCorpPlugins/Authentication

Do you use a proguard?

It's already obfuscated and in aar, so add the package to the proguard rules.

# Core proGuard rules
-keep class com.gaa.sdk.base.** { *; }
-keep class com.gaa.sdk.auth.** { *; }

# Purchasing proGuard rules
-keep class com.gaa.sdk.iap.** { *; }

# Licensing proGuard rules
-keep class com.onestore.extern.licensing.** { *; }

Include external dependencies

The In-app integration Unity Library is distributed with the EDM4U(External Dependency Manager for Unity). This library is intended for use by any Unity plugin that requires access to Android-specific libraries. It provides Unity plugins the ability to declare dependencies, which are then automatically resolved and copied into your Unity project.

How do I use In-app module?

Authentication module

using OneStore.Auth;

new OneStoreAuthClientImpl().LaunchSignInFlow((signInResult) => {
    if (signInResult.IsSuccessful())
        // Sign in succeeded.
    else
        // Sign in failed.
});

Purchasing module

using OneStore.Purchasing;

IPurchaseCallback callback = new IPurchaseCallback() {
    // implements method
};

// License key for your app registered in the ONE store Developer Center.
var licenseKey = "...";
var purchaseClient = new PurchaseClientImpl(licenseKey);
purchaseClient.Initialize(callback);

Refer to the IAP documentation for more information.

Licensing module

using OneStore.Alc;

ILicenseCheckCallback callback = new ILicenseCheckCallback() {
    // implements method
}

// License key for your app registered in the ONE store Developer Center.
var licenseKey = "...";
var licenseChecker = new OneStoreAppLicenseCheckerImpl(licenseKey);
licenseChecker.Initialize(callback);

Refer to the ALC documentation for more information.

Change Note

  • 2023-12-05
    • Fixed a bug where the PurchaseClientImpl.QueryPurchases() request was not responding when no purchases were found
    • Change the folder structure
    • Remove the AAR physical file and apply the gradle dependency.
    • EDM4U(External Dependency Manager for Unity) to enforce Gradle dependencies is mandatorily distributed with it.
    • sdk-configuration-xx is deprecated.
  • 2023-05-18
  • 2023-01-10
    • Exception handling when the purchase data is null when calling consume and acknowlege API.
    • Track the connection status of the service and control it through queue management, even if you request the API multiple times in a short time.
  • 2022-11-10
    • Release to samples with the integrated in-app SDK v1.1.0 for the unity.

License

Copyright 2023 One store Co., Ltd.

Licensed under the Apache License, Version 2.0 (the "License"); 
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, 
software distributed under the License is distributed on an "AS IS" BASIS, 
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
See the License for the specific language governing permissions and
limitations under the License.