NHN Cloud SDK for Android consists of the following:
You can selectively apply the required feature among the services provided by NHN Cloud SDK.
Gradle Dependency | Service |
---|---|
com.nhncloud.android:nhncloud-common:1.9.4 | Common |
com.nhncloud.android:nhncloud-core:1.9.4 | Core |
com.nhncloud.android:nhncloud-logger:1.9.4 | Log & Crash |
com.nhncloud.android:nhncloud-crash-reporter-ndk:1.9.4 | Native Crash Reporter |
com.nhncloud.android:nhncloud-iap-core:1.9.4 | In-app Purchase Core |
com.nhncloud.android:nhncloud-iap-google:1.9.4 | In-app Purchase Google Play Store |
com.nhncloud.android:nhncloud-iap-onestore:1.9.4 | In-app Purchase ONE store |
com.nhncloud.android:nhncloud-iap-galaxy:1.9.4 | In-app Purchase Galaxy Store |
com.nhncloud.android:nhncloud-push-core:1.9.4 | Push Core |
com.nhncloud.android:nhncloud-push-fcm:1.9.4 | Push Firebase Cloud Messaging |
com.nhncloud.android:nhncloud-creditcard-recognizer:1.9.4 | Credit Card Recognizer |
To use all NHN Cloud SDK services, set dependency as shown below.
If you are using Unity, separate dependency setting is required. For more details, see Guide for Unity.
repositories {
mavenCentral()
}
dependencies {
implementation 'com.nhncloud.android:nhncloud-sdk:1.9.4'
}
The following describes how to set dependency for each product of NHN Cloud SDK.
Android SDK can be downloaded from the Downloads page.
User ID can be set for NHN Cloud SDK. The configured User ID is commonly used in each module of NHN Cloud SDK. Whenever Log Sending API of NhnCloudLogger is called, the configured User ID is sent to a server along with logs.
/* NhnCloudSdk.java */
public static void setUserId(String userId);
Parameters | |
---|---|
userId | String: User ID |
// Login.
NhnCloudSdk.setUserId(userId);
// Logout.
NhnCloudSdk.setUserId(null);
To check internal logs of NHN Cloud SDK, the debug mode can be set. When you make an inquiry regarding NHN Cloud SDK, sending the logs with the debug mode enabled can be helpful for faster response.
/* NhnCloudSdk.java */
public static void setDebugMode(boolean debug);
Parameters | |
---|---|
debug | boolean: true to enable debug mode, false otherwise. |
// Enable debug mode.
NhnCloudSdk.setDebugMode(true);
// Disable debug mode.
NhnCloudSdk.setDebugMode(false);
[Caution] The debug mode must be disabled before releasing an app.