# (Unity) 使用Unity编辑选项中的minify时

关于GamePod方面，Proguard File中所有GamePod相关内容都要进行例外处理。

请在Build Settings > Player Settings > Publishing Settings > Build路径中确认Custom Proguard File设置，\
根据使用下列内容的库,追加定义后使用即可。

以下内容 :

```
-keep class io.gamepot.common.GamePot { *; }
-keep class io.gamepot.common.GamePotAppStatus { *; }
-keep class io.gamepot.common.GamePotError { *; }
-keep class io.gamepot.common.GamePotLicenseRestfulRequest { *; }
-keep class io.gamepot.common.GamePotLog { *; }
-keep class io.gamepot.common.GamePotSharedPref { *; }
-keep class io.gamepot.common.GamePotPurchaseDetailList { *; }
-keep class io.gamepot.common.GamePotAgreeBuilder { *; }
-keep class io.gamepot.common.GamePotAgreeInfo { *; }
-keep class io.gamepot.common.GamePotLocalPushBuilder { *; }
-keep class io.gamepot.common.GamePotNoticeDialog { *; }
-keep class io.gamepot.common.GamePotChat { *; }
-keep class io.gamepot.common.GamePotChatMessage { *; }
-keep class io.gamepot.common.GamePotLocale { *; }
-keep class io.gamepot.common.GamePotPurchaseInfo { ; }
-keep class io.gamepot.common.GamePotUtils { ; }
-keep class io.gamepot.common.LinkingsQuery$ { ; }
-keep class io.gamepot.common.GamePotPermission { ; }
-keep public interface io.gamepot.common. {;}
-keep class io.gamepot.unity.plugin.GamePotUnityPlugin$SDK { *; }
-keep class com.google.firebase.FirebaseApp { *; }

-keep class io.gamepot.channel.** { *; }
-keep class io.gamepot.channel.google.signin { *; }

-keep class com.google.firebase.iid { *; }
-keep class com.android.billingclient { *; }
-keep class com.android.billingclient.api { *; }

-keep class com.google.gms.** {*;}
-keep class com.google.android.gms.auth.** { *; }

-keep class com.gaa.sdk.iap.** { ; }
-keep class com.gaa.iap.sdk.unity.* { *; }

-keep class com.samsung.android { *; }
-dontwarn com.samsung.**
```


---

# Agent Instructions: 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.gamepot.io/basics/gamepot-2.0/zhong-wen/troubleshooting/unity-shi-yong-unity-bian-ji-xuan-xiang-zhong-de-minify-shi.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.
