Skip to content

Commit 2b94242

Browse files
authored
Merge pull request #1 from Instabug/master
update1
2 parents 4b02f0d + 995d6cb commit 2b94242

File tree

54 files changed

+243
-147
lines changed

Some content is hidden

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

54 files changed

+243
-147
lines changed

README.md

Lines changed: 26 additions & 0 deletions

android/build.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11

22
apply plugin: 'com.android.library'
33

4+
def DEFAULT_COMPILE_SDK_VERSION = 28
5+
def DEFAULT_BUILD_TOOLS_VERSION = "28.0.0"
6+
def DEFAULT_TARGET_SDK_VERSION = 28
7+
48
android {
5-
compileSdkVersion 26
6-
buildToolsVersion "26.0.2"
9+
compileSdkVersion rootProject.hasProperty('compileSdkVersion') ? rootProject.compileSdkVersion : DEFAULT_COMPILE_SDK_VERSION
10+
buildToolsVersion rootProject.hasProperty('buildToolsVersion') ? rootProject.buildToolsVersion : DEFAULT_BUILD_TOOLS_VERSION
711

812
defaultConfig {
913
minSdkVersion 16
10-
targetSdkVersion 26
14+
targetSdkVersion rootProject.hasProperty('targetSdkVersion') ? rootProject.targetSdkVersion : DEFAULT_TARGET_SDK_VERSION
1115
versionCode 1
1216
versionName "1.0"
1317
ndk {
@@ -20,8 +24,8 @@ android {
2024
}
2125

2226
dependencies {
23-
compile 'com.facebook.react:react-native:0.20.+'
24-
compile ('com.instabug.library:instabug:8.0.10'){
27+
implementation 'com.facebook.react:react-native:0.20.+'
28+
implementation ('com.instabug.library:instabug:8.0.12'){
2529
exclude group: 'com.android.support:appcompat-v7'
2630
}
2731
}

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -807,12 +807,17 @@ public void getUnreadMessagesCount(Callback messageCountCallback) {
807807
* @see InstabugInvocationEvent
808808
*/
809809
@ReactMethod
810-
public void setInvocationEvent(String invocationEventValue) {
811-
try {
812-
BugReporting.setInvocationEvents(getInvocationEventById(invocationEventValue));
813-
} catch (Exception e) {
814-
e.printStackTrace();
815-
}
810+
public void setInvocationEvent(final String invocationEventValue) {
811+
new Handler(Looper.getMainLooper()).post(new Runnable() {
812+
@Override
813+
public void run() {
814+
try {
815+
BugReporting.setInvocationEvents(getInvocationEventById(invocationEventValue));
816+
} catch (Exception e) {
817+
e.printStackTrace();
818+
}
819+
}
820+
});
816821
}
817822

818823
/**

instabug-reactnative.podspec

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
require 'json'
2+
package = JSON.parse(File.read('package.json'))
3+
version = JSON.parse(File.read('package.json'))["version"]
4+
5+
Pod::Spec.new do |s|
6+
s.name = package["name"]
7+
s.version = version
8+
s.summary = package["description"]
9+
s.author = package["author"]
10+
s.license = package["license"]
11+
s.homepage = package["homepage"]
12+
s.source = { :git => "https://github.com/Instabug/instabug-reactnative.git", :tag => 'v' + version }
13+
s.source_files = 'ios/RNInstabug/*'
14+
s.platform = :ios, "9.0"
15+
s.static_framework = true
16+
s.ios.vendored_frameworks = 'ios/Instabug.framework'
17+
s.dependency 'React'
18+
end

ios/Instabug.framework/Headers/IBGTypes.h

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ extern NSString * const kIBGInvocationTitleStringName;
3939
extern NSString * const kIBGTalkToUsStringName;
4040
extern NSString * const kIBGReportBugStringName;
4141
extern NSString * const kIBGReportFeedbackStringName;
42+
extern NSString * const kIBGPhotoPickerTitle;
43+
extern NSString * const kIBGProgressViewTitle;
44+
extern NSString * const kIBGGalleryPermissionDeniedAlertTitle;
45+
extern NSString * const kIBGGalleryPermissionDeniedAlertMessage;
46+
extern NSString * const kIBGMaximumSizeExceededAlertTitle;
47+
extern NSString * const kIBGMaximumSizeExceededAlertMessage;
48+
extern NSString * const kIBGiCloudImportErrorAlertTitle;
49+
extern NSString * const kIBGiCloudImportErrorAlertMessage;
4250
extern NSString * const kIBGEmailFieldPlaceholderStringName;
4351
extern NSString * const kIBGCommentFieldPlaceholderForBugReportStringName;
4452
extern NSString * const kIBGCommentFieldPlaceholderForFeedbackStringName;
@@ -145,6 +153,10 @@ extern NSString * const kIBGDiscardAlertTitle;
145153
extern NSString * const kIBGDiscardAlertMessage;
146154
extern NSString * const kIBGDiscardAlertAction;
147155
extern NSString * const kIBGDiscardAlertCancel;
156+
extern NSString * const kIBGVideoGalleryErrorMessageStringName;
157+
extern NSString * const kIBGVideoDurationErrorTitle;
158+
extern NSString * const kIBGVideoDurationErrorMessage;
159+
148160

149161
/// -----------
150162
/// @name Enums
@@ -265,7 +277,8 @@ typedef NS_ENUM(NSInteger, IBGLocale) {
265277
IBGLocaleSlovak,
266278
IBGLocaleSpanish,
267279
IBGLocaleSwedish,
268-
IBGLocaleTurkish
280+
IBGLocaleTurkish,
281+
IBGLocaleHungarian
269282
};
270283

271284
/**
@@ -310,6 +323,16 @@ typedef NS_ENUM(NSInteger, IBGString) {
310323
IBGStringTalkToUs,
311324
IBGStringReportBug,
312325
IBGStringReportFeedback,
326+
IBGStringPhotoPickerTitle,
327+
IBGStringProgressViewTitle,
328+
IBGStringGalleryPermissionDeniedAlertTitle,
329+
IBGStringGalleryPermissionDeniedAlertMessage,
330+
IBGStringMaximumSizeExceededAlertTitle,
331+
IBGStringMaximumSizeExceededAlertMessage,
332+
IBGVideoDurationErrorTitle,
333+
IBGVideoDurationErrorMessage,
334+
IBGStringiCloudImportErrorAlertTitle,
335+
IBGStringiCloudImportErrorAlertMessage,
313336
IBGStringEmailFieldHint,
314337
IBGStringCommentFieldHintForBugReport,
315338
IBGStringCommentFieldHintForFeedback,
@@ -401,7 +424,8 @@ typedef NS_ENUM(NSInteger, IBGString) {
401424
IBGDiscardAlertTitleStringName,
402425
IBGDiscardAlertMessageStringName,
403426
IBGDiscardAlertActionStringName,
404-
IBGDiscardAlertCancelStringName
427+
IBGDiscardAlertCancelStringName,
428+
IBGVideoGalleryErrorMessageStringName
405429
};
406430

407431
/**

ios/Instabug.framework/Info.plist

0 Bytes
Binary file not shown.

ios/Instabug.framework/Instabug

1.29 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)