Skip to content

Commit 903a0b5

Browse files
authored
📝 8.5.0 bug fixes (#329)
1 parent e1a13af commit 903a0b5

File tree

8 files changed

+13
-9
lines changed

8 files changed

+13
-9
lines changed

.circleci/config.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,6 @@ jobs:
130130
- run:
131131
name: Install node_modules
132132
command: cd .. && yarn
133-
- run:
134-
name: Remove instabug.framework
135-
command: rm -rf ../node_modules/instabug-reactnative/ios/Instabug.framework
136133
- run:
137134
name: Fetch CocoaPods Specs
138135
command: curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## v8.5.1 (2019-07-22)
2+
3+
* Fixes an issue that would cause Instabug.framework to appear twice when using CocoaPods.
4+
* Fixes a deadlock that would happen when `console.log` is called immediately after `startWithToken`.
5+
* Fixes an issue that prevented app token from being detected correctly when uploading source map files.
6+
* Fixes an issue that caused Android release builds to fail when building on a Windows machine.
7+
18
## v8.5.0 (2019-07-11)
29

310
**⚠️ If you are using React Native 0.60, please follow our migration guide [here](https://github.com/Instabug/Instabug-React-Native/blob/master/README.md#updating-to-version-85)**

android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ dependencies {
4242
import org.apache.tools.ant.taskdefs.condition.Os
4343
task upload_sourcemap(type: Exec) {
4444
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
45+
commandLine 'cmd', '/c', 'echo Automatic Upload of sourcemap files is currently not available on windows, please generate the sourcemapfiles and upload them to the dashboard'
4546
project.logger.lifecycle('Automatic Upload of sourcemap files is currently not available on windows, please generate the sourcemapfiles and upload them to the dashboard')
4647
} else {
4748
environment "INSTABUG_APP_TOKEN", "YOUR_APP_TOKEN"

android/upload_sourcemap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ zip ./android-sourcemap.zip ./android-sourcemap.json
1818

1919
if [ ${INSTABUG_APP_TOKEN} == "YOUR_APP_TOKEN" ]; then
2020
echo "Instabug: Looking for Token..."
21+
INSTABUG_APP_TOKEN='';
2122
if [ ! "${INSTABUG_APP_TOKEN}" ]; then
2223
INSTABUG_APP_TOKEN=$(grep -r --exclude-dir={node_modules,ios,android} 'Instabug.startWithToken(\"[0-9a-zA-Z]*\"' ./ -m 1 | grep -o '\"[0-9a-zA-Z]*\"' | cut -d "\"" -f 2)
2324
fi

autolink.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env ruby
2-
require 'fileutils'
2+
# require 'fileutils'
33

4-
FileUtils.rm_rf('node_modules/instabug-reactnative/ios/Instabug.framework')
4+
# FileUtils.rm_rf('node_modules/instabug-reactnative/ios/Instabug.framework')
55

66
begin
77
require 'xcodeproj'

instabug-reactnative.podspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,4 @@ Pod::Spec.new do |s|
1515
s.static_framework = true
1616
s.ios.vendored_frameworks = 'ios/Instabug.framework'
1717
s.dependency 'React'
18-
s.dependency 'Instabug', '8.5.2'
1918
end

ios/RNInstabug/InstabugReactBridge.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ - (dispatch_queue_t)methodQueue {
5050
for (NSNumber *boxedValue in invocationEventsArray) {
5151
invocationEvents |= [boxedValue intValue];
5252
}
53-
[[NSRunLoop mainRunLoop] performBlock:^{
54-
[Instabug startWithToken:token invocationEvents:invocationEvents];
55-
}];
53+
[Instabug startWithToken:token invocationEvents:invocationEvents];
5654

5755
RCTAddLogFunction(InstabugReactLogFunction);
5856
RCTSetLogThreshold(RCTLogLevelInfo);

ios/upload_sourcemap.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ zip ./ios-sourcemap.zip ./ios-sourcemap.json
1717

1818
if [ ${INSTABUG_APP_TOKEN} == "YOUR_APP_TOKEN" ]; then
1919
echo "Instabug: Looking for Token..."
20+
INSTABUG_APP_TOKEN='';
2021
if [ ! "${INSTABUG_APP_TOKEN}" ]; then
2122
INSTABUG_APP_TOKEN=$(grep -r --exclude-dir={node_modules,ios,android} 'Instabug.startWithToken(\"[0-9a-zA-Z]*\"' ./ -m 1 | grep -o '\"[0-9a-zA-Z]*\"' | cut -d "\"" -f 2)
2223
fi

0 commit comments

Comments
 (0)