Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

Commit

Permalink
Fixed post process build event forwarder (#838)
Browse files Browse the repository at this point in the history
updated android build info with manifest stubs
updated oulus submodule
  • Loading branch information
StephenHodgson authored May 12, 2021
1 parent 5ada62d commit 1df6888
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion Editor/BuildPipeline/AndroidBuildInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System.Linq;
using UnityEditor;
using UnityEditor.Build.Reporting;
using UnityEngine;
using XRTK.Attributes;
using XRTK.Definitions.Platforms;
using XRTK.Interfaces;
Expand All @@ -18,6 +17,7 @@ public class AndroidBuildInfo : BuildInfo
/// <inheritdoc />
public override BuildTarget BuildTarget => BuildTarget.Android;

/// <inheritdoc />
public override IMixedRealityPlatform BuildPlatform => new AndroidPlatform();

/// <inheritdoc />
Expand Down Expand Up @@ -47,6 +47,11 @@ public override void OnPreProcessBuild(BuildReport report)
// an APK with a lower versionCode than the version currently installed on their device.
PlayerSettings.Android.bundleVersionCode++;
}

if (BuildPlatform.GetType() == typeof(AndroidPlatform))
{
// TODO generate manifest
}
}
}
}
2 changes: 1 addition & 1 deletion Editor/BuildPipeline/UnityPlayerBuildTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public static async Task<bool> RestoreNugetPackagesAsync(string nugetPath, strin
public void OnPreprocessBuild(BuildReport report) => buildInfo?.OnPreProcessBuild(report);

/// <inheritdoc />
public void OnPostprocessBuild(BuildReport report) => buildInfo?.OnPreProcessBuild(report);
public void OnPostprocessBuild(BuildReport report) => buildInfo?.OnPostProcessBuild(report);

#endregion IOrderedCallback
}
Expand Down

0 comments on commit 1df6888

Please sign in to comment.