update:flexion 打包修改
This commit is contained in:
@@ -6,7 +6,7 @@ public class ConfigManager {
|
||||
public static String SDK_GAMEID = "20587";
|
||||
public static String SDK_PROJECTID = "20587";
|
||||
public static String SDK_CLOUDID = "128";
|
||||
public static String SDK_CLIENTID = "Android_5.00_tyGuest,facebook.googleplay.0-hall20587.googleplay.FishingMaster";
|
||||
public static String SDK_CLIENTID = "Android_5.00_tyGuest,facebook.googleplay.0-hall20587.flexion.FishingMaster";
|
||||
|
||||
public static String SDK_LOGIN_SERVER_URL = "https://128-hwsfsdk-sdk-online01.qijihdhk.com";
|
||||
|
||||
|
||||
@@ -46,6 +46,7 @@ public class FlexionSDKHelper implements SDKManager.ISDKHelper {
|
||||
public void init(Activity activity) {
|
||||
activity.runOnUiThread(() -> {
|
||||
SDKAPI.getIns().lightModeEnable();
|
||||
boolean sdkInitOk = false;
|
||||
try {
|
||||
SDKAPI.getIns().init(new InitParam.Builder()
|
||||
.withActivity(activity)
|
||||
@@ -55,23 +56,27 @@ public class FlexionSDKHelper implements SDKManager.ISDKHelper {
|
||||
.build());
|
||||
SDKAPI.getIns().onActivityStart(activity);
|
||||
SDKAPI.getIns().onActivityResume(activity);
|
||||
sdkInitOk = true;
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "TuYoo SDK init Exception: " + e);
|
||||
Log.e(TAG, "TuYoo SDK init failed, skip FLX init: " + e);
|
||||
TYUnityActivity.setSdkInited();
|
||||
}
|
||||
|
||||
FLX.init(activity, (initCode, initMsg) -> {
|
||||
Log.i(TAG, "FLX.init result=" + initCode);
|
||||
if (initCode == 0) {
|
||||
FLX.showFlexionScreens(activity, (screenCode, screenMsg) -> {
|
||||
Log.i(TAG, "FLX.showFlexionScreens result=" + screenCode);
|
||||
initBillingService(activity);
|
||||
if (sdkInitOk) {
|
||||
FLX.init(activity, (initCode, initMsg) -> {
|
||||
Log.i(TAG, "FLX.init result=" + initCode);
|
||||
if (initCode == 0) {
|
||||
FLX.showFlexionScreens(activity, (screenCode, screenMsg) -> {
|
||||
Log.i(TAG, "FLX.showFlexionScreens result=" + screenCode);
|
||||
initBillingService(activity);
|
||||
TYUnityActivity.setSdkInited();
|
||||
});
|
||||
} else {
|
||||
Log.e(TAG, "FLX.init failed: " + initCode);
|
||||
TYUnityActivity.setSdkInited();
|
||||
});
|
||||
} else {
|
||||
Log.e(TAG, "FLX.init failed: " + initCode);
|
||||
TYUnityActivity.setSdkInited();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user