Skip to content

Commit 07e2a96

Browse files
committed
update build instructions
1 parent 75c4e3f commit 07e2a96

2 files changed

Lines changed: 12 additions & 7 deletions

File tree

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,15 @@ If you use Bugfender in a platform other than iOS or Android, any calls to Bugfe
1414
## How to update the libraries
1515

1616
To update the Android library:
17-
* Download the Bugfender Android SDK aar file
18-
* Replace it in your project in Assets/Plugins/Android
17+
* Download the [Bugfender Android SDK aar file](https://search.maven.org/search?q=g:com.bugfender.sdk)
18+
* Delete the current file in `Assets/Plugins/Android` and replace it with the .aar file just downloaded
1919

2020
To update the iOS framework:
21-
* Download the latest Bugfender iOS SDK release: static-lib.zip
22-
* Unzip it
23-
* Replace it in your project in Assets/Plugins/iOS
21+
* Download the latest [Bugfender iOS SDK release](https://github.com/bugfender/BugfenderSDK-iOS/releases): `static-lib.zip`
22+
* Under `Assets/Plugins/iOS`, delete all items except `BugfenderBridge`
23+
* Unzip the `static-lib.zip` file and add its contents to `Assets/Plugins/iOS`
24+
* Edit the `libBugfenderSDK` item and add the following **Framework Dependencies**: `MobileCoreServices` and `Security`
25+
26+
## Exporting the `.unitypackage`
27+
28+
* Run `./export.sh`

export.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
2-
UNITY_BIN="/Applications/Unity/Hub/Editor/2020.1.4f1/Unity.app/Contents/MacOS/Unity"
2+
UNITY_BIN="/Applications/Unity/Hub/Editor/2021.3.*/Unity.app/Contents/MacOS/Unity"
33
IOS_VERSION="$(cat Assets/Plugins/iOS/BugfenderSDK.h | perl -ne '/BFLibraryVersionNumber_([\d_]+)/s and $v=$1; END {$v=~s/_/./g; print $v}')"
44
ANDROID_VERSION="$(ls Assets/Plugins/Android/android-*.aar | perl -ne 'print $1 if /.*-([\d.]+)\.aar/s')"
55
PACKAGE_NAME="Bugfender-android${ANDROID_VERSION}-iOS${IOS_VERSION}.unitypackage"
66

77
echo "Detected SDK versions: android: ${ANDROID_VERSION} - iOS: ${IOS_VERSION}"
8-
"$UNITY_BIN" -gvh_disable -projectPath . -quit -batchmode -exportPackage Assets/Bugfender Assets/Plugins "$PACKAGE_NAME"
8+
$UNITY_BIN -gvh_disable -projectPath . -quit -batchmode -exportPackage Assets/Bugfender Assets/Plugins "$PACKAGE_NAME"

0 commit comments

Comments
 (0)