Skip to content

Commit 55a1ec4

Browse files
committed
restructure, depend on the iOS SDK using SwiftPM, and update Android SDK to 3.4.0
1 parent c853cc9 commit 55a1ec4

81 files changed

Lines changed: 69 additions & 10377 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
using UnityEditor;
2+
using System.IO;
3+
using UnityEditor.Callbacks;
4+
using UnityEditor.iOS.Xcode;
5+
6+
public class IOSProjectBuildCustomizer
7+
{
8+
[PostProcessBuild]
9+
public static void OnPostprocessBuild(BuildTarget buildTarget, string pathToBuiltProject)
10+
{
11+
12+
// Stop processing if build target is not iOS
13+
if (buildTarget != BuildTarget.iOS)
14+
return;
15+
16+
// Initialize PBXProject
17+
string projectPath = PBXProject.GetPBXProjectPath(pathToBuiltProject);
18+
PBXProject pbxProject = new PBXProject();
19+
pbxProject.ReadFromFile(projectPath);
20+
21+
// Get the GUID you want to add the package to
22+
string mainTargetGuid = pbxProject.GetUnityMainTargetGuid();
23+
24+
// Get the remote package GUID
25+
string packageGuid = pbxProject.AddRemotePackageReferenceAtVersionUpToNextMajor("https://github.com/bugfender/BugfenderSDK-iOS", "2.0.0");
26+
27+
// Add the Remote Package to the Xcode project
28+
pbxProject.AddRemotePackageFrameworkToProject(pbxProject.GetUnityMainTargetGuid(), "BugfenderLibrary", packageGuid, false /* required dependency */);
29+
30+
// Apply changes to the pbxproj file
31+
pbxProject.WriteToFile(projectPath);
32+
}
33+
}

Editor/IOSProjectBuildCustomizer.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Plugins/Android/android-3.3.1.aar

-182 KB
Binary file not shown.

Plugins/iOS/BugfenderBridge.mm.meta

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

Plugins/iOS/BugfenderSDK.xcframework/Info.plist

Lines changed: 0 additions & 61 deletions
This file was deleted.
-156 Bytes
Binary file not shown.
-176 Bytes
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)