添加打包接口参数
parent
dc324db672
commit
f98ae3e001
|
|
@ -245,7 +245,7 @@ public class BuildTool
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void OnGuruSDKBuildPreprocess()
|
private static void OnGuruSDKBuildPreprocess(BuildTargetGroup targetGroup, BuildParam buildParam)
|
||||||
{
|
{
|
||||||
PlayerSettings.SplashScreen.show = false;
|
PlayerSettings.SplashScreen.show = false;
|
||||||
PlayerSettings.SplashScreen.showUnityLogo = false;
|
PlayerSettings.SplashScreen.showUnityLogo = false;
|
||||||
|
|
@ -261,7 +261,7 @@ public class BuildTool
|
||||||
{
|
{
|
||||||
var instance = Activator.CreateInstance(item) as IBuildImp;
|
var instance = Activator.CreateInstance(item) as IBuildImp;
|
||||||
Debug.Log(instance.GetType().Name);
|
Debug.Log(instance.GetType().Name);
|
||||||
instance.OnGuruSDKBuildPreprocess();
|
instance.OnGuruSDKBuildPreprocess(targetGroup, buildParam);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -271,7 +271,7 @@ public class BuildTool
|
||||||
private static void BuildAndroid(BuildParam buildParam)
|
private static void BuildAndroid(BuildParam buildParam)
|
||||||
{
|
{
|
||||||
Debug.Log("========Project Asset Process Start========");
|
Debug.Log("========Project Asset Process Start========");
|
||||||
OnGuruSDKBuildPreprocess();
|
OnGuruSDKBuildPreprocess(BuildTargetGroup.Android, buildParam);
|
||||||
Debug.Log("========Project Asset Process End========");
|
Debug.Log("========Project Asset Process End========");
|
||||||
|
|
||||||
Debug.Log("========Guru Build Start========");
|
Debug.Log("========Guru Build Start========");
|
||||||
|
|
@ -282,7 +282,7 @@ public class BuildTool
|
||||||
private static void BuildIOS(BuildParam buildParam)
|
private static void BuildIOS(BuildParam buildParam)
|
||||||
{
|
{
|
||||||
Debug.Log("========Project Asset Process Start========");
|
Debug.Log("========Project Asset Process Start========");
|
||||||
OnGuruSDKBuildPreprocess();
|
OnGuruSDKBuildPreprocess(BuildTargetGroup.iOS, buildParam);
|
||||||
Debug.Log("========Project Asset Process End========");
|
Debug.Log("========Project Asset Process End========");
|
||||||
|
|
||||||
Debug.Log("========Guru Build Start========");
|
Debug.Log("========Guru Build Start========");
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
|
using UnityEditor;
|
||||||
|
|
||||||
public interface IBuildImp
|
public interface IBuildImp
|
||||||
{
|
{
|
||||||
void OnGuruSDKBuildPreprocess();
|
void OnGuruSDKBuildPreprocess(BuildTargetGroup targetGroup, BuildTool.BuildParam buildParam);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue