Ejemplo n.º 1
0
        public static void PreBuildSettingsIos()
        {
            EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTargetGroup.iOS, BuildTarget.iOS);
            var parameter = CommandArgumentsParser.Parse <PreBuildArgumentsIos>(Environment.GetCommandLineArgs());

            PlayerSettings.productName           = ProductName;
            PlayerSettings.companyName           = CompanyName;
            PlayerSettings.applicationIdentifier = ApplicationIdentifier;
            PlayerSettings.bundleVersion         = parameter.bundleVersion;
            PlayerSettings.SetStackTraceLogType(LogType.Error, StackTraceLogType.None);
            PlayerSettings.SetStackTraceLogType(LogType.Warning, StackTraceLogType.None);
            PlayerSettings.SetStackTraceLogType(LogType.Log, StackTraceLogType.None);
            PlayerSettings.iOS.buildNumber = parameter.bundleVersionCode;
            PlayerSettings.iOS.appleEnableAutomaticSigning = true;
            PlayerSettings.iOS.appleDeveloperTeamID        = parameter.teamId;
        }
Ejemplo n.º 2
0
        public static void PreBuildSettingsAndroid()
        {
            EditorUserBuildSettings.SwitchActiveBuildTarget(BuildTargetGroup.Android, BuildTarget.Android);
            var parameter = CommandArgumentsParser.Parse <PreBuildArgumentsAndroid>(Environment.GetCommandLineArgs());

            PlayerSettings.productName           = ProductName;
            PlayerSettings.companyName           = CompanyName;
            PlayerSettings.applicationIdentifier = ApplicationIdentifier;
            PlayerSettings.bundleVersion         = parameter.bundleVersion;
            PlayerSettings.SetStackTraceLogType(LogType.Error, StackTraceLogType.None);
            PlayerSettings.SetStackTraceLogType(LogType.Warning, StackTraceLogType.None);
            PlayerSettings.SetStackTraceLogType(LogType.Log, StackTraceLogType.None);
            PlayerSettings.Android.bundleVersionCode = int.Parse(parameter.bundleVersionCode);
            PlayerSettings.Android.keystoreName      = parameter.keystoreName;
            PlayerSettings.Android.keystorePass      = parameter.keystorePass;
            PlayerSettings.Android.keyaliasName      = parameter.keyaliasName;
            PlayerSettings.Android.keyaliasPass      = parameter.keyaliasPass;
        }