Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HB-6168] Fixing Bug with Build-Postprocessor #157

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
#if UNITY_IOS
using System.Collections.Generic;
using UnityEditor.iOS.Xcode;
Expand All @@ -11,11 +12,14 @@

namespace Chartboost.Editor.BuildTools
{
internal sealed class ChartboostMediationPostprocessor
internal sealed class ChartboostMediationPostprocessor : IPostprocessBuildWithReport
{
[PostProcessBuild]
public static void PostProcess(BuildTarget buildTarget, string pathToBuiltProject)
public int callbackOrder { get; }
public void OnPostprocessBuild(BuildReport report)
{
var buildTarget = report.summary.platform;
var pathToBuiltProject = report.summary.outputPath;

if (buildTarget != BuildTarget.iOS)
return;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@

namespace Chartboost.Editor.BuildTools
{
public class ChartboostMediationPreprocessor : IPreprocessBuildWithReport
internal class ChartboostMediationPreprocessor : IPreprocessBuildWithReport
{
public int callbackOrder { get; }

public void OnPreprocessBuild(BuildReport report)
{
if (report.summary.platform != BuildTarget.Android)
Expand Down