# Google.Play.Billing.Editor.GooglePlayBillingBuildHelper

Helper class to address building issues of [Google](https://developer.android.com/reference/unity/namespace/Google#namespaceGoogle)[Play](https://developer.android.com/reference/unity/namespace/Google/Play#namespaceGoogle_1_1Play)[Billing](https://developer.android.com/reference/unity/namespace/Google/Play/Billing#namespaceGoogle_1_1Play_1_1Billing) Plugin.

## Summary

| ### Public static functions ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Play/Billing/Editor/GooglePlayBillingBuildHelper#classGoogle_1_1Play_1_1Billing_1_1Editor_1_1GooglePlayBillingBuildHelper_1a0979b02d88c4ffb2df2a29b5f2ee6988()` | `bool` Returns whether there is a conflicting aar file that will cause failure when building the APK. |
| `https://developer.android.com/reference/unity/class/Google/Play/Billing/Editor/GooglePlayBillingBuildHelper#classGoogle_1_1Play_1_1Billing_1_1Editor_1_1GooglePlayBillingBuildHelper_1a61a8bd655c5ae6db3609c775b58df4bc()` | `bool` Remove the conflicting GoogleAIDL.aar and GooglePlayBilling.aar from Assets scope by moving it to a backup directory. |
| `https://developer.android.com/reference/unity/class/Google/Play/Billing/Editor/GooglePlayBillingBuildHelper#classGoogle_1_1Play_1_1Billing_1_1Editor_1_1GooglePlayBillingBuildHelper_1af688b8d3662abcef35a4b30911550d72()` | `bool` Restore the conflicting GoogleAIDL.aar and GooglePlayBilling.aar back to Assets scope by moving it back from the backup directory. |

## Public static functions

### HasConflictingGoogleAarFile

```c#
bool HasConflictingGoogleAarFile()
```
Returns whether there is a conflicting aar file that will cause failure when building the APK.

### RemoveConflictingAarFiles

```c#
bool RemoveConflictingAarFiles()
```
Remove the conflicting GoogleAIDL.aar and GooglePlayBilling.aar from Assets scope by moving it to a backup directory.


TODO (b/145928532): display error message on UI.

| Details ||
|---|---|
| **Returns** | true if operation succeed, otherwise false. |

### RestoreConflictingAarFiles

```c#
bool RestoreConflictingAarFiles()
```
Restore the conflicting GoogleAIDL.aar and GooglePlayBilling.aar back to Assets scope by moving it back from the backup directory.


TODO (b/145928532): display error message on UI.

| Details ||
|---|---|
| **Returns** | true if operation succeed, otherwise false. |