Initial commit

This commit is contained in:
2025-05-13 19:24:51 +02:00
commit a950f49678
10604 changed files with 932663 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
package com.unity3d.ads.purchasing;
/* loaded from: classes2.dex */
public interface IPurchasing {
void onGetProductCatalog();
void onGetPurchasingVersion();
void onInitializePurchasing();
void onPurchasingCommand(String str);
}

View File

@@ -0,0 +1,28 @@
package com.unity3d.ads.purchasing;
import com.unity3d.ads.webview.WebViewApp;
import com.unity3d.ads.webview.WebViewEventCategory;
/* loaded from: classes2.dex */
public class Purchasing {
public enum UnityAdsPurchasingEvent {
COMMAND,
VERSION,
CATALOG,
INITIALIZATION,
EVENT
}
public static void dispatchReturnEvent(int i, String str) {
WebViewApp currentApp = WebViewApp.getCurrentApp();
if (currentApp == null || !currentApp.isWebAppLoaded()) {
return;
}
currentApp.sendEvent(WebViewEventCategory.PURCHASING, UnityAdsPurchasingEvent.values()[i], str);
}
public static void initialize(IPurchasing iPurchasing) {
com.unity3d.ads.api.Purchasing.setPurchasingInterface(iPurchasing);
}
}

View File

@@ -0,0 +1,6 @@
package com.unity3d.ads.purchasing;
/* loaded from: classes2.dex */
public enum PurchasingError {
PURCHASE_INTERFACE_NULL
}