Skip to content

Commit 578e3d7

Browse files
author
Milos Jakovljevic
committed
Supporting older versions of unity
1 parent 2f2f076 commit 578e3d7

File tree

2 files changed

+19
-30
lines changed

2 files changed

+19
-30
lines changed

LeanplumSample/Assets/Editor/LeanplumBuildProcessor.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,33 @@
55
using LeanplumSDK.MiniJSON;
66
using UnityEditor;
77
using UnityEditor.Build;
8+
9+
#if UNITY_2018_1_OR_NEWER
810
using UnityEditor.Build.Reporting;
11+
#endif
912

1013
namespace Leanplum.Private
1114
{
15+
#if UNITY_2018_1_OR_NEWER
1216
class LeanplumBuildProcessor : IPreprocessBuildWithReport
17+
#else
18+
class LeanplumBuildProcessor : IPreprocessBuild
19+
#endif
1320
{
1421

15-
public int callbackOrder { get { return 0; } }
22+
public int callbackOrder
23+
{
24+
get { return 0; }
25+
}
26+
27+
#if UNITY_2018_1_OR_NEWER
1628
public void OnPreprocessBuild(BuildReport report)
29+
{
30+
OnPreprocessBuild(report.summary.platform, report.summary.outputPath);
31+
}
32+
#endif
33+
34+
public void OnPreprocessBuild(BuildTarget target, string path)
1735
{
1836
string assets = Directory.GetCurrentDirectory() + "/Assets/";
1937

LeanplumSample/Assets/Plugins/Android/com.leanplum.unity-wrapper-1.6.5.aar.meta

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)