fix:1、接入合作方的sdk。2、支付逻辑接入sdk中的接口

This commit is contained in:
2026-05-09 09:37:34 +08:00
parent 1599bf4bbb
commit ee55c03120
1011 changed files with 167108 additions and 33552 deletions
+1 -30
View File
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN-->
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unity3d.player"
@@ -14,33 +15,3 @@
</activity>
</application>
</manifest>
<!--<?xml version="1.0" encoding="utf-8"?>-->
<!--<manifest-->
<!-- xmlns:android="http://schemas.android.com/apk/res/android"-->
<!-- package="com.unity3d.player"-->
<!-- xmlns:tools="http://schemas.android.com/tools">-->
<!-- <uses-permission android:name="com.android.vending.BILLING" />-->
<!-- <queries>-->
<!-- <package android:name="com.facebook.katana" />-->
<!-- <package android:name="com.facebook.lite" />-->
<!-- <package android:name="com.zhiliaoapp.musically" />-->
<!-- <package android:name="com.tiktok.lite.go" />-->
<!-- <package android:name="com.instagram.android" />-->
<!-- <package android:name="com.twitter.android" />-->
<!-- <package android:name="com.instagram.barcelona" />-->
<!-- <package android:name="com.whatsapp" />-->
<!-- <package android:name="com.zhiliaoapp.musically.go" />-->
<!-- </queries>-->
<!-- <application android:name=".CustomApplication">-->
<!-- <activity android:name="com.unity3d.player.UnityPlayerActivity"-->
<!-- android:theme="@style/UnityThemeSelector">-->
<!-- <intent-filter>-->
<!-- <action android:name="android.intent.action.MAIN" />-->
<!-- <category android:name="android.intent.category.LAUNCHER" />-->
<!-- </intent-filter>-->
<!-- <meta-data android:name="unityplayer.UnityActivity" android:value="true" />-->
<!-- </activity>-->
<!-- </application>-->
<!--</manifest>-->
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5c7890a1c57739d4a864c0d6e3a210e0
guid: 5eea3d4fa71d3594ebc484be36832997
TextScriptImporter:
externalObjects: {}
userData:
@@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: 480ab794634c2944d944c5f3ac5cf15e
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:
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.firebase.app.unity"
android:versionCode="1"
android:versionName="1.0">
</manifest>
@@ -0,0 +1,2 @@
target=android-9
android.library=true
@@ -0,0 +1,3 @@
<?xml version='1.0' encoding='utf-8'?>
<resources xmlns:tools="http://schemas.android.com/tools">
</resources>
@@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: 49cafa14e5e14ad4399fe1dd0918f35c
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:
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.firebase.crashlytics.unity"
android:versionCode="1"
android:versionName="1.0">
</manifest>
@@ -0,0 +1,2 @@
target=android-9
android.library=true
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><resources><string name="com.crashlytics.android.build_id" translatable="false">360cc687-20b6-4da1-987e-70daa67adc9c</string></resources>
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?><resources><string name="com.google.firebase.crashlytics.unity_version" translatable="false">2022.3.62f2</string></resources>
@@ -0,0 +1,32 @@
fileFormatVersion: 2
guid: bc7ca36701d22f14ab56cac8b3fd7d74
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:
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.google.unity.ads">
<uses-sdk android:minSdkVersion="23" />
<uses-permission android:name="android.permission.INTERNET" />
<application>
<uses-library android:required="false" android:name="org.apache.http.legacy" />
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID" android:value="ca-app-pub-3940256099942544~3347511713" />
<meta-data android:name="com.google.unity.ads.UNITY_VERSION" android:value="2022.3.62f2" />
</application>
</manifest>
@@ -0,0 +1,5 @@
android {
packagingOptions {
pickFirst "META-INF/kotlinx_coroutines_core.version"
}
}
@@ -0,0 +1,2 @@
target=android-31
android.library=true
+4 -1
View File
@@ -1,6 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN-->
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unity3d.player"
xmlns:tools="http://schemas.android.com/tools"
android:installLocation="preferExternal">
<supports-screens
@@ -10,6 +12,7 @@
android:xlargeScreens="true"
android:anyDensity="true"/>
<application android:label="@string/app_name"
<application android:extractNativeLibs="true"
android:label="@string/app_name"
android:icon="@mipmap/app_icon"/>
</manifest>
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 1c06bf9a7be9e1c4e81425b3d04dd099
guid: 7409fae52bf1254479ea33489af7c957
TextScriptImporter:
externalObjects: {}
userData:
@@ -0,0 +1,82 @@
/*
* This file is generated by the FirebaseMessagingActivityGenerator script.
* Refer to that script for more information.
*/
package com.google.firebase;
import android.content.Intent;
import android.os.Bundle;
import com.google.firebase.messaging.MessageForwardingService;
import com.unity3d.player.UnityPlayerActivity;
/**
* MessagingUnityPlayerActivity is a UnityPlayerActivity that updates its intent when new intents
* are sent to it.
*
* This is a workaround for a known issue that prevents Firebase Cloud Messaging from responding to
* data payloads when both a data and notification payload are sent to the app while it is in the
* background.
*/
public class MessagingUnityPlayerActivity extends UnityPlayerActivity {
// The key in the intent's extras that maps to the incoming message's message ID. Only sent by
// the server, GmsCore sends EXTRA_MESSAGE_ID_KEY below. Server can't send that as it would get
// stripped by the client.
private static final String EXTRA_MESSAGE_ID_KEY_SERVER = "message_id";
// An alternate key value in the intent's extras that also maps to the incoming message's message
// ID. Used by upstream, and set by GmsCore.
private static final String EXTRA_MESSAGE_ID_KEY = "google.message_id";
// The key in the intent's extras that maps to the incoming message's sender value.
private static final String EXTRA_FROM = "google.message_id";
/**
* Workaround for when a message is sent containing both a Data and Notification payload.
*
* <p>When the app is in the background, if a message with both a data and notification payload is
* received the data payload is stored on the Intent passed to onNewIntent. By default, that
* intent does not get set as the Intent that started the app, so when the app comes back online
* it doesn't see a new FCM message to respond to. As a workaround, we override onNewIntent so
* that it sends the intent to the MessageForwardingService which forwards the message to the
* FirebaseMessagingService which in turn sends the message to the application.
*/
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
// If we do not have a 'from' field this intent was not a message and should not be handled. It
// probably means this intent was fired by tapping on the app icon.
Bundle extras = intent.getExtras();
if (extras == null) {
return;
}
String from = extras.getString(EXTRA_FROM);
String messageId = extras.getString(EXTRA_MESSAGE_ID_KEY);
if (messageId == null) {
messageId = extras.getString(EXTRA_MESSAGE_ID_KEY_SERVER);
}
if (from != null && messageId != null) {
Intent message = new Intent(this, MessageForwardingService.class);
message.setAction(MessageForwardingService.ACTION_REMOTE_INTENT);
message.putExtras(intent);
message.setData(intent.getData());
MessageForwardingService.enqueueWork(this, message);
}
setIntent(intent);
}
/**
* Dispose of the mUnityPlayer when restarting the app.
*
* <p>This ensures that when the app starts up again it does not start with stale data.
*/
@Override
protected void onCreate(Bundle savedInstanceState) {
if (mUnityPlayer != null) {
mUnityPlayer.quit();
mUnityPlayer = null;
}
super.onCreate(savedInstanceState);
}
}
@@ -0,0 +1,34 @@
fileFormatVersion: 2
guid: 2bfe1e2f6ccf50649b6b50becea1293f
labels:
- FirebaseMessagingActivityGenerated
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:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 59b3f9343bdac42318926c7944365bb9
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: ea6387b3379b4458498b339bcd316c7c
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 70fc6af576ac24f6aa283eecbf393621
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Binary file not shown.
@@ -0,0 +1,81 @@
fileFormatVersion: 2
guid: c318684db3e949ee938fbe37ab78acbb
labels:
- gvh
- gvh_version-10.6.0
- gvhp_exportpath-Plugins/Android/googlemobileads-unity.aar
timeCreated: 1480838400
PluginImporter:
serializedVersion: 1
iconMap: {}
executionOrder: {}
isPreloaded: 0
platformData:
Android:
enabled: 1
settings:
CPU: AnyCPU
Any:
enabled: 0
settings: {}
Editor:
enabled: 1
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: AnyOS
Linux:
enabled: 1
settings:
CPU: x86
Linux64:
enabled: 1
settings:
CPU: x86_64
LinuxUniversal:
enabled: 1
settings:
CPU: AnyCPU
OSXIntel:
enabled: 1
settings:
CPU: x86
OSXIntel64:
enabled: 1
settings:
CPU: x86_64
OSXUniversal:
enabled: 1
settings:
CPU: AnyCPU
Web:
enabled: 0
settings: {}
WebStreamed:
enabled: 0
settings: {}
Win:
enabled: 1
settings:
CPU: x86
Win64:
enabled: 1
settings:
CPU: x86_64
WindowsStoreApps:
enabled: 0
settings:
CPU: AnyCPU
iOS:
enabled: 0
settings:
CompileFlags:
FrameworkDependencies:
tvOS:
enabled: 0
settings:
CompileFlags:
FrameworkDependencies:
userData:
assetBundleName:
assetBundleVariant:
@@ -6,3 +6,7 @@ android.useAndroidX=true
android.enableJetifier=true
# Android Resolver Properties End
**ADDITIONAL_PROPERTIES**
android.jetifier.ignorelist=annotation-experimental-1.4.0.aar
android.enableLint=false
android.lint.disableLintTasks=true
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 33e1b0106030de34e8ef3cd4aaab65f0
guid: 40825427c859b6746a5509597a58a1f2
DefaultImporter:
externalObjects: {}
userData:
@@ -1,6 +1,7 @@
apply plugin: 'com.android.application'
dependencies {
implementation 'androidx.multidex:multidex:2.0.1'
implementation project(':unityLibrary')
}
@@ -25,6 +26,7 @@ android {
}
versionCode **VERSIONCODE**
versionName '**VERSIONNAME**'
multiDexEnabled true // 添加
}
aaptOptions {
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 183135ff29854ba48829ead460e31851
guid: 9e912912ee5108e4992059f4898a1c5d
DefaultImporter:
externalObjects: {}
userData:
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: f5e61bda1f8331849b4dbc939745c6d3
guid: ce27eea5dc4d2994090175237f56e154
DefaultImporter:
externalObjects: {}
userData:
+21 -13
View File
@@ -17,23 +17,31 @@ dependencyResolutionManagement {
google()
mavenCentral()
// Android Resolver Repos Start
maven {
url "file:///C:/WorkSpace/tron_gp/BallCrushBest_GP/Assets/GeneratedLocalRepo/Firebase/m2repository" // Assets/Firebase/Editor/AnalyticsDependencies.xml:18, Assets/Firebase/Editor/AppDependencies.xml:22, Assets/Firebase/Editor/CrashlyticsDependencies.xml:20, Assets/Firebase/Editor/MessagingDependencies.xml:24
}
maven {
url "https://maven.aliyun.com/repository/google" // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7, Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:12, Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:17, Assets/GoogleMobileAds/Editor/GoogleUmpDependencies.xml:7
}
maven {
url "https://artifactory.bidmachine.io/bidmachine" // Assets/MaxSdk/Mediation/BidMachine/Editor/Dependencies.xml:8
}
maven {
url "https://artifact.bytedance.com/repository/pangle" // Assets/MaxSdk/Mediation/ByteDance/Editor/Dependencies.xml:8
}
maven {
url "https://cboost.jfrog.io/artifactory/chartboost-ads/" // Assets/MaxSdk/Mediation/Chartboost/Editor/Dependencies.xml:8
}
maven {
url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea" // Assets/MaxSdk/Mediation/Mintegral/Editor/Dependencies.xml:8
}
maven {
url "https://repo1.maven.org/maven2/" // Assets/ZrZYFo6bYXYM71YyLSDK/ThirdParty/BigoAdsAll/BigoSDK/Editor/Dependencies.xml:11
}
mavenLocal()
// Android Resolver Repos End
flatDir {
dirs "${project(':unityLibrary').projectDir}/libs"
}
maven {
url 'https://maven.aliyun.com/repository/public'
}
// 阿里云制品库
maven {
credentials {
username '606ca7499a5742c775f4bf40'
password 'MXXC7iDjIPCK'
}
url 'https://packages.aliyun.com/606ca7f5fde602776f084c4d/maven/2092324-release-xt1lx3'
}
}
}
@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: c2d637abf2421c748a3be3ffadaff1b3
guid: a08fd354071782f4fb8aa5efd09c9867
DefaultImporter:
externalObjects: {}
userData: