update:enjoy-pay 接入
This commit is contained in:
@@ -5,7 +5,7 @@ using UnityEngine;
|
||||
|
||||
public class ChannelBuildTool
|
||||
{
|
||||
public static readonly string[] SupportedChannels = { "GooglePlay", "Rustore", "Flexion" };
|
||||
public static readonly string[] SupportedChannels = { "GooglePlay", "Rustore", "Flexion", "EnjoyPay" };
|
||||
|
||||
private const string DefaultChannel = "GooglePlay";
|
||||
private const string DefaultAndroidBundleIdentifier = "com.arkgame.ft";
|
||||
@@ -101,6 +101,7 @@ public class ChannelBuildTool
|
||||
var bundleId = channel switch
|
||||
{
|
||||
"Flexion" => "com.arkgame.ft.flexion",
|
||||
"EnjoyPay" => "com.arkgame.ft.ep",
|
||||
_ => "com.arkgame.ft"
|
||||
};
|
||||
PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.Android, bundleId);
|
||||
@@ -176,6 +177,9 @@ public class ChannelBuildTool
|
||||
[MenuItem("Tools/Switch Channel/Flexion")]
|
||||
public static void Switch_Flexion() => SwitchChannel("Flexion");
|
||||
|
||||
[MenuItem("Tools/Switch Channel/EnjoyPay")]
|
||||
public static void Switch_EnjoyPay() => SwitchChannel("EnjoyPay");
|
||||
|
||||
// ==================== Menu: Build ====================
|
||||
|
||||
[MenuItem("Tools/Build Android (Channel)/GooglePlay")]
|
||||
@@ -195,4 +199,10 @@ public class ChannelBuildTool
|
||||
|
||||
[MenuItem("Tools/Build Android (Channel)/Flexion Debug")]
|
||||
public static void Build_Flexion_Debug() => BuildAndroidForChannel("Flexion", true);
|
||||
|
||||
[MenuItem("Tools/Build Android (Channel)/EnjoyPay")]
|
||||
public static void Build_EnjoyPay() => BuildAndroidForChannel("EnjoyPay", false);
|
||||
|
||||
[MenuItem("Tools/Build Android (Channel)/EnjoyPay Debug")]
|
||||
public static void Build_EnjoyPay_Debug() => BuildAndroidForChannel("EnjoyPay", true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user