0312 增加切换账号,充值主线程,替换新的SdkProject/library/google-services.json但是手改包名是secondworld(观察)
| | |
| | | <?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" |
| | |
| | | android:extractNativeLibs="true" |
| | | tools:replace="android:name"> |
| | | |
| | | |
| | | <provider |
| | | android:name="androidx.core.content.FileProvider" |
| | | android:authorities="${applicationId}.fileprovider" |
| | | android:exported="false" |
| | | android:grantUriPermissions="true"> |
| | | <meta-data |
| | | android:name="android.support.FILE_PROVIDER_PATHS" |
| | | android:resource="@xml/milu_provider_paths" /> |
| | | |
| | | </provider> |
| | | |
| | | <!--适配全面屏--> |
| | | <meta-data |
| | | android:name="android.max_aspect" |
| | |
| | | <meta-data |
| | | android:name="com.huawei.hms.client.service.name:ads-identifier" |
| | | android:value="ads-identifier:3.4.39.302" /> |
| | | |
| | | <provider |
| | | android:name="androidx.core.content.FileProvider" |
| | | android:authorities="${applicationId}.fileprovider" |
| | | android:exported="false" |
| | | android:grantUriPermissions="true"> |
| | | <meta-data |
| | | android:name="android.support.FILE_PROVIDER_PATHS" |
| | | android:resource="@xml/milu_provider_paths" /> |
| | | |
| | | </provider> |
| | | |
| | | <activity |
| | | android:name="com.maiyou.maiysdk.ui.activity.MLLoginActivity" |
| | | android:configChanges="keyboard|keyboardHidden|navigation|orientation|screenLayout|screenSize|smallestScreenSize" |
| | |
| | | }); |
| | | } |
| | | |
| | | private void LogOutInitialize() { |
| | | //退出登录的回调监听 |
| | | miluSDKManager.logout(new PersonalCenterCallBack() { |
| | | public void LogOutInitialize() { |
| | | GameActivityProxy.I.activity.runOnUiThread(new Runnable() |
| | | { |
| | | @Override |
| | | public void getCallBack() { |
| | | //请在此处做游戏退出到登录页面的操作 |
| | | //注销成功,需要把游戏切换回登陆前的场景,并重新弹出登录框等操作 |
| | | UnityMsgHandler.sendMessageToUnity(CodeA2U.PlatformLogoutOk); |
| | | public void run() |
| | | { |
| | | //退出登录的回调监听 |
| | | miluSDKManager.logout(new PersonalCenterCallBack() { |
| | | @Override |
| | | public void getCallBack() { |
| | | //请在此处做游戏退出到登录页面的操作 |
| | | //注销成功,需要把游戏切换回登陆前的场景,并重新弹出登录框等操作 |
| | | UnityMsgHandler.sendMessageToUnity(CodeA2U.PlatformLogoutOk); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | |
| | | public void pay(String roleID, String money, String serverID, String productID, String productName, String Extra) { |
| | | miluSDKManager.showPay(GTGameMain.I.activity, money, productID, roleID, productName, productName, serverID, Extra, |
| | | new OnPaymentListener() { |
| | | @Override |
| | | public void paymentSuccess(PaymentCallbackInfo callbackInfo) { |
| | | //H5支付回调不准,请自行查询 |
| | | } |
| | | |
| | | @Override |
| | | public void paymentError(PaymentErrorMsg errorMsg) { |
| | | //H5支付回调不准,请自行查询 |
| | | } |
| | | }); |
| | | GameActivityProxy.I.activity.runOnUiThread(new Runnable() |
| | | { |
| | | @Override |
| | | public void run() |
| | | { |
| | | miluSDKManager.showPay(GTGameMain.I.activity, money, productID, roleID, productName, productName, serverID, Extra, |
| | | new OnPaymentListener() { |
| | | @Override |
| | | public void paymentSuccess(PaymentCallbackInfo callbackInfo) { |
| | | //H5支付回调不准,请自行查询 |
| | | } |
| | | |
| | | @Override |
| | | public void paymentError(PaymentErrorMsg errorMsg) { |
| | | //H5支付回调不准,请自行查询 |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | public void onResume() { |
| | | //显示悬浮窗 |
| | | if (null != miluSDKManager) { |
| | | miluSDKManager.showFloatball(); |
| | | } |
| | | GameActivityProxy.I.activity.runOnUiThread(new Runnable() |
| | | { |
| | | @Override |
| | | public void run() |
| | | { |
| | | //显示悬浮窗 |
| | | if (null != miluSDKManager) { |
| | | miluSDKManager.showFloatball(); |
| | | } |
| | | } |
| | | }); |
| | | |
| | | } |
| | | |
| | | public void onStop() { |
| | | //隐藏悬浮窗 |
| | | if (null != miluSDKManager) { |
| | | miluSDKManager.hideFloatball(); |
| | | } |
| | | GameActivityProxy.I.activity.runOnUiThread(new Runnable() |
| | | { |
| | | @Override |
| | | public void run() |
| | | { |
| | | //隐藏悬浮窗 |
| | | if (null != miluSDKManager) { |
| | | miluSDKManager.hideFloatball(); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | | |
| | | public void onDestroy() { |
| | |
| | | package com.secondworld.sdk.command; |
| | | import com.secondworld.sdk.MySdkMgr; |
| | | import com.secondworld.sdk.utils.CodeU2A; |
| | | |
| | | import org.json.JSONObject; |
| | |
| | | |
| | | @Override |
| | | public void process(JSONObject json) throws Exception { |
| | | MySdkMgr.I.LogOutInitialize(); |
| | | } |
| | | } |
| | |
| | | "client_info": { |
| | | "mobilesdk_app_id": "1:966789831936:android:f381abd6b3cbbf70ff67e5", |
| | | "android_client_info": { |
| | | "package_name": "com.hhxk.djmx" |
| | | } |
| | | }, |
| | | "oauth_client": [ |
| | | { |
| | | "client_id": "966789831936-5tlhorb43f1t8o4v8opughmb0ufd8ddg.apps.googleusercontent.com", |
| | | "client_type": 1, |
| | | "android_info": { |
| | | "package_name": "com.hhxk.djmx", |
| | | "certificate_hash": "ce8703d5734e0e1e6e9eb0766c6954fb1b269802" |
| | | } |
| | | }, |
| | | { |
| | | "client_id": "966789831936-7kvc289ui991rool953ms9btb7dcihuv.apps.googleusercontent.com", |
| | | "client_type": 1, |
| | | "android_info": { |
| | | "package_name": "com.hhxk.djmx", |
| | | "certificate_hash": "182d414a78abee730625ac28dc5354e71e3cf27f" |
| | | } |
| | | }, |
| | | { |
| | | "client_id": "966789831936-h1aps8f3s0v6rgbdu4lt2h74933m7661.apps.googleusercontent.com", |
| | | "client_type": 3 |
| | | } |
| | | ], |
| | | "api_key": [ |
| | | { |
| | | "current_key": "AIzaSyCKWCtHXjIkHtnnKcoua1yf-YXxXmrXla8" |
| | | } |
| | | ], |
| | | "services": { |
| | | "appinvite_service": { |
| | | "other_platform_oauth_client": [ |
| | | { |
| | | "client_id": "966789831936-h1aps8f3s0v6rgbdu4lt2h74933m7661.apps.googleusercontent.com", |
| | | "client_type": 3 |
| | | } |
| | | ] |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | "client_info": { |
| | | "mobilesdk_app_id": "1:966789831936:android:9bcdeeea75060602ff67e5", |
| | | "android_client_info": { |
| | | "package_name": "com.secondworld.sdk" |
| | | } |
| | | }, |
| | | "oauth_client": [ |
| | | { |
| | | "client_id": "966789831936-3dmgiepupci14n7gh0ihsv3abqb9fnj1.apps.googleusercontent.com", |
| | | "client_id": "966789831936-7kvc289ui991rool953ms9btb7dcihuv.apps.googleusercontent.com", |
| | | "client_type": 1, |
| | | "android_info": { |
| | | "package_name": "com.secondworld.sdk", |
| | |
| | | } |
| | | }, |
| | | { |
| | | "client_id": "966789831936-ifl0c6lnuroou9mpj74dkk8kphhblq56.apps.googleusercontent.com", |
| | | "client_id": "966789831936-9kja3dtiub1ec4bof4tta3p5virkf2ci.apps.googleusercontent.com", |
| | | "client_type": 1, |
| | | "android_info": { |
| | | "package_name": "com.secondworld.sdk", |
| | | "certificate_hash": "ce8703d5734e0e1e6e9eb0766c6954fb1b269802" |
| | | "certificate_hash": "ce8703d5734e0e1e6e9eb0766c6954fb1b2c9802" |
| | | } |
| | | }, |
| | | { |