Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e8dd22a

Browse files
author
Zheng Jing Tan
committed
Merge tag 'v8.5.2'
2 parents 89e3d06 + 9e08371 commit e8dd22a

File tree

208 files changed

+22437
-3939
lines changed

Some content is hidden

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

208 files changed

+22437
-3939
lines changed

.circleci/config.yml

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,179 @@
1+
version: 2
2+
jobs:
3+
danger:
4+
docker:
5+
- image: dantoml/danger:latest
6+
steps:
7+
- checkout
8+
- run: danger
9+
test_module:
10+
working_directory: ~/project
11+
docker:
12+
- image: circleci/node:8
13+
steps:
14+
- checkout:
15+
path: ~/project
16+
17+
- restore_cache:
18+
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
19+
20+
- restore_cache:
21+
key: node-v1-{{ checksum "package.json" }}-{{ arch }}
22+
23+
- run: yarn install
24+
25+
- save_cache:
26+
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
27+
paths:
28+
- ~/.cache/yarn
29+
30+
- save_cache:
31+
key: node-v1-{{ checksum "package.json" }}-{{ arch }}
32+
paths:
33+
- node_modules
34+
35+
- run:
36+
name: jest tests
37+
command: |
38+
mkdir -p test-results/jest
39+
yarn run test
40+
environment:
41+
JEST_JUNIT_OUTPUT: test-results/jest/junit.xml
42+
43+
- persist_to_workspace:
44+
root: ~/project
45+
paths:
46+
- node_modules
47+
48+
- store_test_results:
49+
path: test-results
50+
51+
- store_artifacts:
52+
path: test-results
53+
54+
test_sample:
55+
working_directory: ~/project
56+
docker:
57+
- image: circleci/node:8
58+
steps:
59+
- checkout:
60+
path: ~/project
61+
62+
- restore_cache:
63+
key: yarn-v1-{{ checksum "InstabugSample/yarn.lock" }}-{{ arch }}
64+
65+
- restore_cache:
66+
key: node-v1-{{ checksum "InstabugSample/package.json" }}-{{ arch }}
67+
68+
- run: cd InstabugSample && yarn install
69+
70+
- save_cache:
71+
key: yarn-v1-{{ checksum "InstabugSample/yarn.lock" }}-{{ arch }}
72+
paths:
73+
- ~/.cache/yarn
74+
75+
- save_cache:
76+
key: node-v1-{{ checksum "InstabugSample/package.json" }}-{{ arch }}
77+
paths:
78+
- InstabugSample/node_modules
79+
80+
- run:
81+
name: jest tests
82+
command: |
83+
cd InstabugSample
84+
mkdir -p test-results/jest
85+
yarn test
86+
environment:
87+
JEST_JUNIT_OUTPUT: test-results/jest/junit.xml
88+
89+
- persist_to_workspace:
90+
root: ~/project
91+
paths:
92+
- InstabugSample/node_modules
93+
94+
- store_test_results:
95+
path: InstabugSample/test-results
96+
97+
- store_artifacts:
98+
path: InstabugSample/test-results
99+
100+
test_android:
101+
working_directory: ~/project/InstabugSample
102+
docker:
103+
- image: circleci/android:api-28-node
104+
environment:
105+
JVM_OPTS: -Xmx3200m
106+
steps:
107+
- checkout:
108+
path: ~/project
109+
- run: yarn install
110+
- run:
111+
name: chmod permissions
112+
command: cd android && chmod +x ./gradlew
113+
- run:
114+
name: Download Dependencies
115+
command: cd android && ./gradlew androidDependencies
116+
- run:
117+
name: Run UnitTest
118+
command: cd android && ./gradlew test
119+
120+
121+
ios_test:
122+
macos:
123+
xcode: "10.2.0"
124+
working_directory: ~/project/InstabugSample/ios
125+
environment:
126+
FL_OUTPUT_DIR: output
127+
steps:
128+
- checkout:
129+
path: ~/project
130+
- run:
131+
name: Install node_modules
132+
command: cd .. && yarn
133+
- run:
134+
name: Fetch CocoaPods Specs
135+
command: curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
136+
- run:
137+
name: Install CocoaPods
138+
command: pod install
139+
- run:
140+
name: Build and run tests
141+
command: xcodebuild -workspace InstabugSample.xcworkspace -scheme InstabugSample -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone X,OS=12.2' test | xcpretty
142+
143+
publish:
144+
macos:
145+
xcode: "10.1.0"
146+
steps:
147+
- checkout
148+
- run: git clone https://InstabugCI:[email protected]/Instabug/Escape.git
149+
- run: cd Escape; swift build -c release -Xswiftc -static-stdlib
150+
- run: cd Escape/.build/release; cp -f Escape /usr/local/bin/escape
151+
- run: Escape react-native publish
152+
153+
154+
workflows:
155+
version: 2
156+
publish:
157+
jobs:
158+
- danger
159+
- test_module
160+
- test_sample
161+
- test_android
162+
- ios_test
163+
- hold:
164+
requires:
165+
- test_module
166+
- test_sample
167+
- test_android
168+
- ios_test
169+
type: approval
170+
filters:
171+
branches:
172+
only: master
173+
- publish:
174+
requires:
175+
- hold
176+
filters:
177+
branches:
178+
only: master
179+

.github/auto-assign-issues.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
assignees:
2+
- AliAbdelfattah

.github/issue_template.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,15 @@ your issue will help us a lot.
1313
### Actual Behavior
1414

1515
### Instabug integration code
16-
*Make sure to remove your app token.*
16+
<!--Make sure to remove your app token.-->
1717

1818
### SDK Version
19+
<!--Which version of Instabug React Native are you on?.-->
1920

2021
### React Native, iOS and Android Versions
2122

2223
### Device Model
24+
<!--If this issue is happening on specific devices, please mention them.-->
2325

2426
### [Optional] Project That Reproduces the Issue
27+
<!--While not required, providing a sample project that reproduces the issue you're having will help us solve it much faster.-->

.github/lock.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Configuration for Lock Threads - https://github.com/dessant/lock-threads
2+
daysUntilLock: 45
3+
4+
# Limit to issues only
5+
only: issues

.github/no-response.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Configuration for probot-no-response - https://github.com/probot/no-response
2+
3+
# Number of days of inactivity before an issue is closed for lack of response
4+
daysUntilClose: 7
5+
6+
# Label requiring a response
7+
responseRequiredLabel: Pending Feedback
8+
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
9+
closeComment: >
10+
This issue has been automatically closed since we haven't heard back from
11+
you. Please feel free to reopen the issue if you have more information
12+
to add.

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ android/.DS_Store
66
ios/.DS_Store
77

88
build/
9+
.gradle
10+
local.properties
11+
.idea
912
/android/src/main/java/com/instabug/reactlibrary/wrappedAPIs
1013

14+
.vscode/
15+
1116
# Xcode
1217

1318
## Build generated
@@ -26,6 +31,7 @@ DerivedData/
2631
xcuserdata/
2732

2833

34+
coverage/
2935
*node_modules/
3036
*Pods/
3137
*Podfile.lock

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,6 @@ android/local.properties
1111
ios/.DS_Store
1212

1313
build/
14-
InstabugSample
14+
InstabugSample/
15+
node_modules/
16+
coverage/

CHANGELOG.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
## v8.5.2 (2019-08-04)
2+
3+
* Fixes an issue that would cause Android to throw ArrayIndexOutOfBoundsException.
4+
5+
## v8.5.1 (2019-07-22)
6+
7+
* Fixes an issue that would cause Instabug.framework to appear twice when using CocoaPods.
8+
* Fixes a deadlock that would happen when `console.log` is called immediately after `startWithToken`.
9+
* Fixes an issue that prevented app token from being detected correctly when uploading source map files.
10+
* Fixes an issue that caused Android release builds to fail when building on a Windows machine.
11+
12+
## v8.5.0 (2019-07-11)
13+
14+
**⚠️ 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)**
15+
16+
* Support for React Native 0.60
17+
* Updates native iOS and Android SDKs to version 8.5
18+
19+
## v8.4.4 (2019-07-08)
20+
21+
* Fixes an issue that causes the sdk to crash when a network request has no headers.
22+
23+
## v8.4.3 (2019-07-03)
24+
25+
* Fixes an issue that caused Android release builds to fail when building on a Windows machine.
26+
* Fixes an issue that caused apps to freeze when `onReportSubmitHandler` is called in certain cases.
27+
28+
## v8.4.2 (2019-06-19)
29+
30+
* Fixes valid email written but gets enter valid email error message on Android.
31+
32+
## v8.4.1 (2019-06-17)
33+
34+
* Fixes Surveys.getAvailableSurveys API not returning the list of surveys on iOS.
35+
* Fixes typescript definition for the API Surveys.getAvailableSurveys.
36+
37+
## v8.4.0 (2019-06-11)
38+
39+
* Updates native iOS and Android SDKs to version 8.4.
40+
41+
## v8.3.4 (2019-06-06)
42+
43+
* Fixes build failure on iOS caused by IBGUserStepsModeEnable not found in SDK.
44+
45+
## v8.3.3 (2019-05-31)
46+
47+
* Fixes crash caused when calling the setReproStepsMode API with enum value enabled.
48+
* Fixes wrong typescript definition for the setReportTypes API param.
49+
50+
## v8.3.2 (2019-05-23)
51+
52+
* Fixes an issue that causes release builds to fail on Windows
53+
54+
## v8.3.1 (2019-05-11)
55+
56+
* Hotfix captureJsErrors
57+
58+
59+
## v8.3.0 (2019-05-11)
60+
61+
* Update native android and iOS versions to 8.3.0.
62+
* Fixes Network logging crashes and immutability
63+
* Added new OnReportSubmitHandler API
64+
* Fixed linking script
65+
* Api Name Changes
66+
67+

Dangerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
has_app_changes = !git.modified_files.grep(/lib/).empty?
2+
declared_trivial = (github.pr_title + github.pr_body).include?("#trivial") || !has_app_changes || github.pr_labels.include?("trivial")
3+
4+
5+
# Make sure PR has a description.
6+
if github.pr_body.length < 3 && git.lines_of_code > 10
7+
fail "Please provide a summary of the changes in the pull request description."
8+
end
9+
10+
if !git.modified_files.include?("CHANGELOG.md") && !declared_trivial
11+
fail("Please include a CHANGELOG entry. \nYou can find it at [CHANGELOG.md](https://github.com/Instabug/Instabug-Flutter/blob/master/CHANGELOG.md).", sticky: false)
12+
end

InstabugSample/.babelrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

InstabugSample/.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native-community',
4+
};

0 commit comments

Comments
 (0)