Revert Tuyoo SDK

This commit is contained in:
wsycarlos 2026-01-26 11:42:22 +08:00
parent 865885cd8b
commit 3fbb25b2a8
7 changed files with 1 additions and 124 deletions

View File

@ -4,16 +4,12 @@ import android.content.Context;
import com.tuyoo.sdk.sdk_inter_layer_unity.UnityInterface;
import com.appsflyer.adrevenue.AppsFlyerAdRevenue;
public class Application extends ${0} {
@Override
public void onCreate() {
super.onCreate();
UnityInterface.onApplicationCreate(this);
AppsFlyerAdRevenue.Builder afRevenueBuilder = new AppsFlyerAdRevenue.Builder(this);
AppsFlyerAdRevenue.initialize(afRevenueBuilder.build());
}
@Override

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dependencies>
<androidPackages>
<androidPackage spec="com.appsflyer:adrevenue:6.9.0"></androidPackage>
</androidPackages>
</dependencies>

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 638cc7c7117f3c448b98f7e5dae38c09
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 8be7d2eaa5b123c439dd1183effd7ba9
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,66 +0,0 @@
package com.bywaystudios.android;
/*import com.appsflyer.AFAdRevenueData;
import com.appsflyer.MediationNetwork;
import com.appsflyer.AdRevenueScheme;
import com.appsflyer.AppsFlyerLib;
import java.util.HashMap;
import java.util.Map;
public class AppsFlyerHelper
{
public static void LogAdRevenue(double revenue, String network, String adUnitId, String adFormat, String countryCode)
{
AppsFlyerLib appsflyer = AppsFlyerLib.getInstance();
// Create an instance of AFAdRevenueData
AFAdRevenueData adRevenueData = new AFAdRevenueData(
network, // monetizationNetwork
MediationNetwork.APPLOVIN_MAX, // mediationNetwork
"USD", // currencyIso4217Code
revenue // revenue
);
Map<String, Object> additionalParameters = new HashMap<>();
additionalParameters.put(AdRevenueScheme.COUNTRY, countryCode);
additionalParameters.put(AdRevenueScheme.AD_UNIT, adUnitId);
additionalParameters.put(AdRevenueScheme.AD_TYPE, adFormat);
additionalParameters.put(AdRevenueScheme.PLACEMENT, "place");
appsflyer.logAdRevenue(adRevenueData, additionalParameters);
}
}*/
// Make sure you import the following:
import com.appsflyer.adrevenue.adnetworks.AppsFlyerAdNetworkEventType;
import com.appsflyer.adrevenue.adnetworks.generic.MediationNetwork;
import com.appsflyer.adrevenue.adnetworks.generic.Scheme;
import java.util.Currency;
import java.util.HashMap;
import java.util.Locale;
public class AppsFlyerHelper
{
public static void LogAdRevenue(double revenue, String network, String adUnitId, String adFormat, String countryCode)
{
// Create optional customParams
Map<String, String> customParams = new HashMap<>();
customParams.put(Scheme.COUNTRY, countryCode);
customParams.put(Scheme.AD_UNIT, adUnitId);
customParams.put(Scheme.AD_TYPE, adFormat);
customParams.put(Scheme.PLACEMENT, "place");
customParams.put(Scheme.ECPM_PAYLOAD, "encrypt");
// Record a single impression
AppsFlyerAdRevenue.logAdRevenue(
network,
MediationNetwork.googleadmob,
Currency.getInstance(Locale.US),
revenue,
customParams
);
}
}

View File

@ -1,32 +0,0 @@
fileFormatVersion: 2
guid: 79314beb4e17df84b83fb32e123e0934
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,6 +1,6 @@
{
"name": "com.bywaystudios.tuyoosdk",
"displayName": "TuyooSDK",
"version": "1.0.27-exp.2",
"version": "1.0.27-exp.9",
"description": "Include Tuyoo SDK and Resolve Build Process Problems"
}