Skip to content

Commit f932d66

Browse files
committed
v6.3
1 parent 5296bd9 commit f932d66

27 files changed

+97
-16
lines changed

Instabug.framework/Headers/Instabug.h

Lines changed: 56 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
Copyright: (c) 2013-2016 by Instabug, Inc., all rights reserved.
77
8-
Version: 6.2.1
8+
Version: 6.3
99
*/
1010

1111
#import <Foundation/Foundation.h>
@@ -72,13 +72,32 @@ NS_ASSUME_NONNULL_BEGIN
7272
/**
7373
@brief Attaches a file to each report being sent.
7474
75-
@discussion A new copy of the file at fileLocation will be attached with each bug report being sent.
76-
Each call to this method overrides the file to be attached.
77-
The file has to be available locally at the provided path.
75+
@deprecated Starting from v6.3, use `setFileAttachmentWithURL:` instead.
76+
77+
@discussion A new copy of the file at fileURL will be attached with each bug report being sent. The file is only copied
78+
at the time of sending the report, so you could safely call this API whenever the file is available on disk, and the copy
79+
attached to your bug reports will always contain that latest changes at the time of sending the report.
80+
81+
Each call to this method overrides the file to be attached, and the file has to be available locally at the provided
82+
path when the report is being sent.
7883
7984
@param fileLocation Path to a file that's going to be attached to each report.
8085
*/
81-
+ (void)setFileAttachment:(NSString *)fileLocation;
86+
+ (void)setFileAttachment:(NSString *)fileLocation DEPRECATED_MSG_ATTRIBUTE("Starting from v6.3, use setFileAttachmentWithURL: instead.");;
87+
88+
/**
89+
@brief Attaches a file to each report being sent.
90+
91+
@discussion A new copy of the file at fileURL will be attached with each bug report being sent. The file is only copied
92+
at the time of sending the report, so you could safely call this API whenever the file is available on disk, and the copy
93+
attached to your bug reports will always contain that latest changes at the time of sending the report.
94+
95+
Each call to this method overrides the file to be attached, and the file has to be available locally at the provided
96+
path when the report is being sent.
97+
98+
@param fileURL Path to a file that's going to be attached to each report.
99+
*/
100+
+ (void)setFileAttachmentWithURL:(NSURL *)fileURL;
82101

83102
/**
84103
@brief Attaches user data to each report being sent.
@@ -102,6 +121,38 @@ NS_ASSUME_NONNULL_BEGIN
102121
*/
103122
+ (void)setUserStepsEnabled:(BOOL)isUserStepsEnabled;
104123

124+
/**
125+
@brief Sets whether to log network requests or not.
126+
127+
@discussion When enabled, Instabug will automtically log all network requests and responses. Logs are attached to
128+
each report being sent and are available on your Instabug dashboard.
129+
130+
Networking logging is enabled by default if it's available in your current plan.
131+
132+
@param isNetworkLoggingEnabled A boolean to set network logging to be enabled to disabled.
133+
*/
134+
+ (void)setNetworkLoggingEnabled:(BOOL)isNetworkLoggingEnabled;
135+
136+
/**
137+
@brief Specify an NSPredicate to be used to omit certain requests from being logged.
138+
139+
@discussion Predicate will be matched against an `NSURLRequest`. This can be used to filter out requests to a specific
140+
domain for example.
141+
142+
@param filterPredicate An NSPredicate to match against an NSURLRequest. Matching requests will be omitted.
143+
*/
144+
+ (void)setNetworkLoggingFilterPredicate:(NSPredicate *)filterPredicate;
145+
146+
/**
147+
@brief Enable logging for network requests and responses on a custom NSURLSessionConfiguration.
148+
149+
@discussion Logging for network requests and responses may not work if you're using a custom `NSURLSession` object.
150+
If this is the case, call this method passing in your custom NSURLSessions's configuration to enable logging for it.
151+
152+
@param URLSessionConfiguration The NSURLSessionConfiguration of your custom NSURLSession.
153+
*/
154+
+ (void)enableLoggingForURLSessionConfiguration:(NSURLSessionConfiguration *)URLSessionConfiguration;
155+
105156
/**
106157
@brief Sets whether to track and report crashes or not.
107158

Instabug.framework/Info.plist

0 Bytes
Binary file not shown.

Instabug.framework/Instabug

499 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Instabug.framework/Instabug.bundle/Instabug_dsym_upload.sh

Lines changed: 39 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,24 +70,52 @@ fi
7070
echo "Instabug: found DSYM_PATH=${DSYM_PATH}"
7171

7272
# Check if UUIDs exists
73-
DSYM_UUIDs=$(dwarfdump --uuid "${DSYM_PATH}" | cut -d' ' -f2)
73+
DSYMS_DIR="${TEMP_DIRECTORY}/dSYM"
74+
75+
if [ -d "${DSYMS_DIR}" ]; then
76+
rm -rf "${DSYMS_DIR}"
77+
fi
78+
79+
mkdir "$DSYMS_DIR"
80+
DSYM_UUIDs=""
81+
SEPARATOR=$'\n'
7482
DSYM_UUIDs_PATH="${TEMP_DIRECTORY}/UUIDs.dat"
75-
DSYM_UUIDs_TOKEN="${DSYM_UUIDs//$'\n'/-${APP_TOKEN}$'\n'}"-${APP_TOKEN}
7683

77-
if [ -f "${DSYM_UUIDs_PATH}" ]; then
78-
if grep -Fxq "${DSYM_UUIDs_TOKEN}" "${DSYM_UUIDs_PATH}"; then
79-
exit 0
84+
85+
find "${DWARF_DSYM_FOLDER_PATH}" -name "*.dSYM" | (while read -r file
86+
do
87+
UUIDs=$(dwarfdump --uuid "${file}" | cut -d ' ' -f2)
88+
if [ -f "${DSYM_UUIDs_PATH}" ]; then
89+
for uuid in $UUIDs
90+
do
91+
UUIDTOKEN="${uuid}"-"${APP_TOKEN}"
92+
if ! grep -w "${UUIDTOKEN}" "${DSYM_UUIDs_PATH}" ; then
93+
cp -r "${file}" "${DSYMS_DIR}"
94+
DSYM_UUIDs+=$uuid$SEPARATOR
95+
fi
96+
done
97+
else
98+
cp -r "${file}" "${DSYMS_DIR}"
99+
DSYM_UUIDs+=${UUIDs}$SEPARATOR
80100
fi
101+
done
102+
103+
if [ -z $DSYM_UUIDs ]; then
104+
rm -rf "${DSYMS_DIR}"
105+
exit 0
81106
fi
82107

108+
109+
DSYM_UUIDs_TOKEN="${DSYM_UUIDs//${SEPARATOR}/-${APP_TOKEN}$'\n'}"
110+
83111
# Create dSYM .zip file
84112
DSYM_PATH_ZIP="${TEMP_DIRECTORY}/$DWARF_DSYM_FILE_NAME.zip"
85113
if [ ! -d "$DSYM_PATH" ]; then
86114
echo "Instabug: err: dSYM not found: ${DSYM_PATH}"
87115
exit 0
88116
fi
89117
echo "Instabug: Compressing dSYM file..."
90-
(/usr/bin/zip --recurse-paths --quiet "${DSYM_PATH_ZIP}" "${DSYM_PATH}") || exit 0
118+
(/usr/bin/zip --recurse-paths --quiet "${DSYM_PATH_ZIP}" "${DSYMS_DIR}") || exit 0
91119

92120
# Upload dSYM
93121
echo "Instabug: Uploading dSYM file..."
@@ -96,13 +124,14 @@ STATUS=$(curl "${ENDPOINT}" --write-out %{http_code} --silent --output /dev/null
96124
if [ $STATUS -ne 200 ]; then
97125
echo "Instabug: err: dSYM archive not succesfully uploaded."
98126
echo "Instabug: deleting temporary dSYM archive..."
99-
/bin/rm -f "${DSYM_PATH_ZIP}"
127+
rm -f "${DSYM_PATH_ZIP}"
100128
exit 0
101129
fi
102130

103-
# Remove temp dSYM archive
131+
# Remove temp dSYM archive and dSYM DIR
104132
echo "Instabug: deleting temporary dSYM archive..."
105-
/bin/rm -f "${DSYM_PATH_ZIP}"
133+
rm -f "${DSYM_PATH_ZIP}"
134+
rm -rf "${DSYMS_DIR}"
106135

107136
# Save UUIDs
108137
echo "${DSYM_UUIDs_TOKEN}" >> "${DSYM_UUIDs_PATH}"
@@ -113,3 +142,4 @@ if [ "$?" -ne 0 ]; then
113142
echo "Instabug: err: an error was encountered uploading dSYM"
114143
exit 0
115144
fi
145+
)
Binary file not shown.
Binary file not shown.

Instabug.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Instabug"
3-
s.version = "6.2.1"
3+
s.version = "6.3"
44
s.summary = "Bug reporting for mobile apps. Learn more at http://instabug.com"
55
s.homepage = "http://instabug.com"
66
s.license = {
@@ -26,7 +26,7 @@ Pod::Spec.new do |s|
2626
s.source = { :git => "https://github.com/Instabug/Instabug-iOS.git", :tag => s.version.to_s }
2727
s.source_files = 'Instabug.framework/Headers/*.{h}'
2828
s.preserve_paths = 'Instabug.framework/*'
29-
s.frameworks = 'AVFoundation', 'CoreGraphics', 'CoreMotion', 'SystemConfiguration', 'CoreTelephony', 'UIKit', 'CoreMedia', 'CoreVideo'
29+
s.frameworks = 'AVFoundation', 'CoreGraphics', 'CoreMotion', 'SystemConfiguration', 'CoreTelephony', 'UIKit', 'CoreMedia', 'CoreVideo', 'CoreData'
3030
s.vendored_frameworks = 'Instabug.framework'
3131
s.resource = 'Instabug.framework/Instabug.bundle'
3232
s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/Instabug/"' }

0 commit comments

Comments
 (0)