Skip to content

Commit a3709b0

Browse files
committed
v6.2
1 parent c8fae94 commit a3709b0

File tree

676 files changed

+1397
-52
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

676 files changed

+1397
-52
lines changed
-3.68 KB
Binary file not shown.
-3.85 KB
Binary file not shown.
-3.36 KB
Binary file not shown.

Instabug.bundle/IBGBugVC-iPhone.nib

-7.76 KB
Binary file not shown.

Instabug.bundle/IBGChatCell.nib

-3.63 KB
Binary file not shown.

Instabug.bundle/IBGChatVC-iPhone.nib

-3.73 KB
Binary file not shown.

Instabug.bundle/IBGChatsVC-iPhone.nib

-3.01 KB
Binary file not shown.
Binary file not shown.

Instabug.bundle/IBGMessagesView.nib

-1.94 KB
Binary file not shown.

Instabug.bundle/IBGPoweredByView.nib

-3.1 KB
Binary file not shown.

Instabug.bundle/IBGPromptCell.nib

-4.45 KB
Binary file not shown.
-5.97 KB
Binary file not shown.
-4.6 KB
Binary file not shown.
-6.62 KB
Binary file not shown.
-5.81 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Instabug.framework/Headers

Lines changed: 0 additions & 1 deletion
This file was deleted.

Instabug.framework/Versions/A/Headers/Instabug.h renamed to Instabug.framework/Headers/Instabug.h

Lines changed: 144 additions & 20 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.1.3
8+
Version: 6.2
99
*/
1010

1111
#import <Foundation/Foundation.h>
@@ -90,23 +90,6 @@ NS_ASSUME_NONNULL_BEGIN
9090
*/
9191
+ (void)setUserData:(NSString *)userData;
9292

93-
/**
94-
@brief Adds custom logs that will be sent with each report.
95-
96-
@discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.ibgLog()`.
97-
*
98-
* @param format Format string.
99-
* @param ... Optional varargs arguments.
100-
*/
101-
OBJC_EXTERN void IBGLog(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
102-
103-
/**
104-
@brief Adds custom logs that will be sent with each report.
105-
106-
@param log Message to be logged.
107-
*/
108-
+ (void)IBGLog:(NSString *)log;
109-
11093
/**
11194
@brief Sets whether the SDK is tracking user steps or not.
11295
@@ -501,7 +484,7 @@ OBJC_EXTERN void IBGLog(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
501484
@discussion Allows you to customize any of the strings shown to users in the SDK.
502485
503486
@param value String value to override the default one.
504-
@param forStringWithKey Key of string to override. Use predefined keys like IBGShakeStartAlertTextStringName,
487+
@param key Key of string to override. Use predefined keys like IBGShakeStartAlertTextStringName,
505488
IBGEmailFieldPlaceholderStringName, etc.
506489
507490
@see IBGTypes
@@ -559,11 +542,45 @@ OBJC_EXTERN void IBGLog(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
559542
to. Selected category will be shown as a tag on your dashboard.
560543
561544
@param titles Array of titles to be shown in the list.
562-
@param iconNames Array of names of icons to be shown along with titles. Use the same names you would use
545+
@param names Array of names of icons to be shown along with titles. Use the same names you would use
563546
with `+[UIImage imageNamed:]`.
564547
*/
565548
+ (void)setReportCategoriesWithTitles:(NSArray<NSString *> *)titles iconNames:(nullable NSArray<NSString *> *)names;
566549

550+
/**
551+
@brief Set custom user attributes that are going to be sent with each feedback, bug or crash.
552+
553+
@param value User attribute value.
554+
@param key User attribute key.
555+
*/
556+
+ (void)setUserAttribute:(NSString *)value withKey:(NSString *)key;
557+
558+
/**
559+
@brief Returns the user attribute associated with a given key.
560+
aKey
561+
562+
@param key The key for which to return the corresponding value..
563+
564+
@return The value associated with aKey, or nil if no value is associated with aKey.
565+
*/
566+
+ (nullable NSString *)userAttributeForKey:(NSString *)key;
567+
568+
/**
569+
@brief Removes a given key and its associated value from user attributes.
570+
571+
Does nothing if aKey does not exist.
572+
573+
@param key The key to remove.
574+
*/
575+
+ (void)removeUserAttributeForKey:(NSString *)key;
576+
577+
/**
578+
@brief Returns all user attributes.
579+
580+
@return A new dictionary containing all the currently set user attributes, or an empty dictionary if no user attributes have been set.
581+
*/
582+
+ (nullable NSDictionary *)userAttributes;
583+
567584
/// -------------------
568585
/// @name SDK Reporting
569586
/// -------------------
@@ -627,5 +644,112 @@ OBJC_EXTERN void IBGLog(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
627644
*/
628645
+ (void)didReceiveRemoteNotification:(NSDictionary *)userInfo;
629646

647+
/// -------------
648+
/// @name Logging
649+
/// -------------
650+
651+
/**
652+
@brief Adds custom logs that will be sent with each report.
653+
654+
@discussion Can be used in a similar fashion to NSLog. Logs are added with the debug log level.
655+
For usage in Swift, see `Instabug.ibgLog()`.
656+
*
657+
* @param format Format string.
658+
* @param ... Optional varargs arguments.
659+
*/
660+
OBJC_EXTERN void IBGLog(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
661+
662+
/**
663+
@brief Adds custom logs with the verbose log level. Logs will be sent with each report.
664+
665+
@discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logVerbose()`.
666+
*
667+
* @param format Format string.
668+
* @param ... Optional varargs arguments.
669+
*/
670+
OBJC_EXTERN void IBGLogVerbose(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
671+
672+
/**
673+
@brief Adds custom logs with the debug log level. Logs will be sent with each report.
674+
675+
@discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logDebug()`.
676+
*
677+
* @param format Format string.
678+
* @param ... Optional varargs arguments.
679+
*/
680+
OBJC_EXTERN void IBGLogDebug(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
681+
682+
/**
683+
@brief Adds custom logs with the info log level. Logs will be sent with each report.
684+
685+
@discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logInfo()`.
686+
*
687+
* @param format Format string.
688+
* @param ... Optional varargs arguments.
689+
*/
690+
OBJC_EXTERN void IBGLogInfo(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
691+
692+
/**
693+
@brief Adds custom logs with the warn log level. Logs will be sent with each report.
694+
695+
@discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logWarn()`.
696+
*
697+
* @param format Format string.
698+
* @param ... Optional varargs arguments.
699+
*/
700+
OBJC_EXTERN void IBGLogWarn(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
701+
702+
/**
703+
@brief Adds custom logs with the error log level. Logs will be sent with each report.
704+
705+
@discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logError()`.
706+
*
707+
* @param format Format string.
708+
* @param ... Optional varargs arguments.
709+
*/
710+
OBJC_EXTERN void IBGLogError(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2);
711+
712+
/**
713+
@brief Adds custom logs that will be sent with each report. Logs are added with the debug log level.
714+
715+
@param log Message to be logged.
716+
*/
717+
+ (void)IBGLog:(NSString *)log;
718+
719+
/**
720+
@brief Adds custom logs with the verbose log level. Logs will be sent with each report.
721+
722+
@param log Message to be logged.
723+
*/
724+
+ (void)logVerbose:(NSString *)log;
725+
726+
/**
727+
@brief Adds custom logs with the debug log level. Logs will be sent with each report.
728+
729+
@param log Message to be logged.
730+
*/
731+
+ (void)logDebug:(NSString *)log;
732+
733+
/**
734+
@brief Adds custom logs with the info log level. Logs will be sent with each report.
735+
736+
@param log Message to be logged.
737+
*/
738+
+ (void)logInfo:(NSString *)log;
739+
740+
/**
741+
@brief Adds custom logs with the warn log level. Logs will be sent with each report.
742+
743+
@param log Message to be logged.
744+
*/
745+
+ (void)logWarn:(NSString *)log;
746+
747+
/**
748+
@brief Adds custom logs with the error log level. Logs will be sent with each report.
749+
750+
@param log Message to be logged.
751+
*/
752+
+ (void)logError:(NSString *)log;
753+
630754
@end
631755
NS_ASSUME_NONNULL_END

Instabug.framework/Info.plist

587 Bytes
Binary file not shown.

Instabug.framework/Instabug

Lines changed: 0 additions & 1 deletion
This file was deleted.

Instabug.framework/Instabug

28.2 MB
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.
File renamed without changes.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
################################################################################
2+
#
3+
# Copyright 2015 Realm Inc.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
################################################################################
18+
19+
# This script strips all non-valid architectures from dynamic libraries in
20+
# the application's `Frameworks` directory.
21+
#
22+
# The following environment variables are required:
23+
#
24+
# BUILT_PRODUCTS_DIR
25+
# FRAMEWORKS_FOLDER_PATH
26+
# VALID_ARCHS
27+
# EXPANDED_CODE_SIGN_IDENTITY
28+
29+
30+
# Signs a framework with the provided identity
31+
code_sign() {
32+
# Use the current code_sign_identitiy
33+
echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}"
34+
echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1"
35+
/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1"
36+
}
37+
38+
echo "Stripping frameworks"
39+
cd "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}"
40+
41+
for file in $(find . -type f -perm +111); do
42+
# Skip non-dynamic libraries
43+
if ! [[ "$(file "$file")" == *"dynamically linked shared library"* ]]; then
44+
continue
45+
fi
46+
# Get architectures for current file
47+
archs="$(lipo -info "${file}" | rev | cut -d ':' -f1 | rev)"
48+
stripped=""
49+
for arch in $archs; do
50+
if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then
51+
# Strip non-valid architectures in-place
52+
lipo -remove "$arch" -output "$file" "$file" || exit 1
53+
stripped="$stripped $arch"
54+
fi
55+
done
56+
if [[ "$stripped" != "" ]]; then
57+
echo "Stripped $file of architectures:$stripped"
58+
if [ "${CODE_SIGNING_REQUIRED}" == "YES" ]; then
59+
code_sign "${file}"
60+
fi
61+
fi
62+
done
File renamed without changes.

0 commit comments

Comments
 (0)