Skip to content

Commit

Permalink
Fixing Bug with Postprocessor (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
SCastanedaMunoz authored Jul 7, 2023
1 parent 99bacaa commit 41116c4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
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

0 comments on commit 41116c4

Please sign in to comment.