> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/nfc-wallet-sdk-android/ja/get-started/configuration/1.-binary-integration.md).

# 1. バイナリ統合

## Android向け NFC Wallet SDK を統合する

このガイドを使用して、NFC Wallet SDK ライブラリを Android に追加します **デジタルウォレットアプリケーション**.

### サポートされる構成

最新の Android 向け NFC Wallet SDK は、この統合で次の構成をサポートします:

* **Android バージョン:** 8.1 〜 16.0
* **CPUアーキテクチャ（ABI）:** `armeabi-v7a`, `arm64-v8a`

{% hint style="info" %}
サポートされる Android バージョンは SDK リリースごとに異なります。最新の互換性状況については、次を参照してください。 [モバイル OS の互換性](/nfc-wallet-sdk-android/ja/general/mobile-os-compatibility.md).
{% endhint %}

### AAR ファイルをコピーする

SDK AAR ファイルを次から取得します [成果物](/nfc-wallet-sdk-android/ja/general/deliverables.md).

それらをプロジェクト内の専用フォルダにコピーします。例:

```
./dependencies
 ├── TSHPaySDK-dev-[version].[qualifier].aar
 └── TSHPaySDK-release-[version].[qualifier].aar
```

{% hint style="info" %}
NFC Wallet SDK は以前は次の名前でした **TSH Pay SDK**.

一部の提供物では、依然として次が使用されています `TSHPaySDK-...` AAR ファイル名のプレフィックスとして。
{% endhint %}

### リポジトリを設定する

次を使用して、このフォルダをローカル Maven リポジトリとして追加します `flatDir`.

{% tabs %}
{% tab title="Groovy（settings.gradle）" %}
{% code title="settings.gradle" %}

```groovy
dependencyResolutionManagement {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://developer.huawei.com/repo/' }
        flatDir { dirs "$rootDir/dependencies" }
    }
}
```

{% endcode %}
{% endtab %}

{% tab title="Groovy（root build.gradle）" %}
{% code title="build.gradle" %}

```groovy
allprojects {
    repositories {
        google()
        mavenCentral()
        maven { url 'https://developer.huawei.com/repo/' }
        flatDir { dirs "${rootProject.projectDir}/dependencies" }
    }
}
```

{% endcode %}
{% endtab %}
{% endtabs %}

### ABI スプリットを有効にする

APK サイズを削減するために ABI スプリットを有効にします（ABI ごとに 1 つの APK）。次を参照してください [複数 APK のビルド](/nfc-wallet-sdk-android/ja/get-started/configuration/1.-binary-integration/build-multiple-apks.md).

### 依存関係を追加する

依存関係に次を宣言します:

* NFC Wallet AAR
* 必須の外部ライブラリ依存関係:
  * JNA（[Java Native Access](https://github.com/java-native-access/jna/tree/5.17.0))

{% code title="app/build.gradle" expandable="true" %}

```groovy
def nfcWalletSdkVersion = "[version].[qualifier]"

dependencies {
    // NFC Wallet SDK（AAR ファイル名は引き続き "TSHPaySDK" で始まる場合があります）
    debugImplementation(name: "TSHPaySDK-dev-${nfcWalletSdkVersion}", ext: "aar")
    releaseImplementation(name: "TSHPaySDK-release-${nfcWalletSdkVersion}", ext: "aar")

    // SDK 依存関係
    // JNA
    implementation(libs.jna) { artifact { type = 'aar' } }
    
    // FCM - Google プッシュ通知
    implementation platform(libs.firebase.bom)
    implementation libs.firebase.messaging
    implementation libs.firebase.analytics

    // サイズの問題を防ぐためのマルチ dex アプリケーション。
    implementation libs.multidex
}
```

{% endcode %}

{% hint style="warning" %}
16 KB メモリページを使用するデバイスをサポートするには、JNA 5.17.0 以降が必要です。
{% endhint %}

{% hint style="info" %}
プッシュ通知（FCM または HMS Push Kit）を使用する場合は、必要な依存関係を追加してください。次を参照してください [プッシュプロバイダを設定する](/nfc-wallet-sdk-android/ja/get-started/configuration/5.-push-notifications/configure-push-provider.md).
{% endhint %}

### ビルドを確認する

これでプロジェクトの同期とコンパイルの準備が整いました。

1. Gradle を同期します。
2. dev をビルドします。 `dev` バリアント。

{% hint style="info" %}
新規または更新されたデジタルウォレットアプリケーションのリリースでは、Google Play の target API level 要件を満たす必要があります。次を参照してください [Google Play の target API level 要件を満たす](https://developer.android.com/google/play/requirements/target-sdk).
{% endhint %}


---

# 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:

```
GET https://docs.payments.thalescloud.io/nfc-wallet-sdk-android/ja/get-started/configuration/1.-binary-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
