Skip to content

Commit 72a4177

Browse files
author
Ali Abdelfattah
authored
Merge branch 'rel/10.3.0' into fix/setVideoRecordingFloatingButtonPosition
2 parents c3cb210 + 67e86ab commit 72a4177

File tree

280 files changed

+77940
-131
lines changed

Some content is hidden

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

280 files changed

+77940
-131
lines changed

.circleci/config.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
test_sample:
4343
working_directory: ~/project
4444
docker:
45-
- image: circleci/node:8
45+
- image: circleci/node:lts
4646
steps:
4747
- checkout:
4848
path: ~/project
@@ -91,35 +91,38 @@ jobs:
9191

9292
test_ios:
9393
macos:
94-
xcode: "10.2.0"
95-
working_directory: ~/project/InstabugSample/ios
94+
xcode: "12.3.0"
95+
working_directory: ~/project/InstabugSample
9696
environment:
9797
FL_OUTPUT_DIR: output
9898
steps:
9999
- checkout:
100100
path: ~/project
101101
- run:
102-
name: Install node_modules
103-
command: cd .. && yarn
102+
name: Install CocoaPods
103+
command: sudo gem install cocoapods
104104
- run:
105-
name: Fetch CocoaPods Specs
106-
command: curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
105+
name: Install node_modules
106+
command: yarn
107107
- run:
108-
name: Install CocoaPods
109-
command: pod install
108+
name: Install Pods
109+
command: cd ios && pod install
110110
- run:
111111
name: Build and run tests
112-
command: xcodebuild -workspace InstabugSample.xcworkspace -scheme InstabugSample -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone X,OS=12.2' test | xcpretty
112+
command: cd ios && xcodebuild -allowProvisioningUpdates -workspace InstabugSample.xcworkspace -scheme InstabugSample -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 12 Pro Max,OS=14.3' test | xcpretty
113113

114114
e2e_ios:
115115
macos:
116-
xcode: "10.2.0"
116+
xcode: "12.3.0"
117117
working_directory: ~/project/InstabugSample
118118
environment:
119119
FL_OUTPUT_DIR: output
120120
steps:
121121
- checkout:
122122
path: ~/project
123+
- run:
124+
name: Install CocoaPods
125+
command: sudo gem install cocoapods
123126
- run:
124127
name: Install React Native CLI
125128
command: npm install -g react-native-cli
@@ -133,10 +136,7 @@ jobs:
133136
name: Install Node Packages
134137
command: yarn
135138
- run:
136-
name: Fetch CocoaPods Specs
137-
command: cd ios && curl https://cocoapods-specs.circleci.com/fetch-cocoapods-repo-from-s3.sh | bash -s cf
138-
- run:
139-
name: Install CocoaPods
139+
name: Install Pods
140140
command: cd ios && pod install
141141
- run:
142142
name: Detox - Build Release App

CHANGELOG.md

Lines changed: 4 additions & 2 deletions

InstabugSample/__e2e__/firstTest.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
describe('Example', () => {
22
beforeEach(async () => {
3-
await device.reloadReactNative();
3+
await device.launchApp();
44
});
55

66
it('should have welcome screen', async () => {

InstabugSample/ios/InstabugSample.xcodeproj/project.pbxproj

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
BAD36E2F22F19788007F5E74 /* InstabugFeatureRequestsTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BAD36E2E22F19788007F5E74 /* InstabugFeatureRequestsTests.m */; };
2121
BAD36E3122F19973007F5E74 /* InstabugRepliesTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BAD36E3022F19973007F5E74 /* InstabugRepliesTests.m */; };
2222
BAD36E3322F19B1B007F5E74 /* InstabugSurveysTests.m in Sources */ = {isa = PBXBuildFile; fileRef = BAD36E3222F19B1B007F5E74 /* InstabugSurveysTests.m */; };
23-
C006102922E9EBCA00EDC852 /* libOCMock.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C006102822E9EBCA00EDC852 /* libOCMock.a */; };
2423
C0AB369625854A6100F1E21E /* InstabugAPMTests.m in Sources */ = {isa = PBXBuildFile; fileRef = C0AB369525854A6100F1E21E /* InstabugAPMTests.m */; };
2524
/* End PBXBuildFile section */
2625

@@ -63,7 +62,6 @@
6362
BAD36E2E22F19788007F5E74 /* InstabugFeatureRequestsTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = InstabugFeatureRequestsTests.m; sourceTree = "<group>"; };
6463
BAD36E3022F19973007F5E74 /* InstabugRepliesTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = InstabugRepliesTests.m; sourceTree = "<group>"; };
6564
BAD36E3222F19B1B007F5E74 /* InstabugSurveysTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = InstabugSurveysTests.m; sourceTree = "<group>"; };
66-
C006102822E9EBCA00EDC852 /* libOCMock.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; name = libOCMock.a; path = usr/lib/libOCMock.a; sourceTree = "<group>"; };
6765
C0AB369525854A6100F1E21E /* InstabugAPMTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = InstabugAPMTests.m; sourceTree = "<group>"; };
6866
C74E4010ABE7AFC7DB5E79DC /* Pods-InstabugSampleTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-InstabugSampleTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-InstabugSampleTests/Pods-InstabugSampleTests.debug.xcconfig"; sourceTree = "<group>"; };
6967
ED297162215061F000B7C4FE /* JavaScriptCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = JavaScriptCore.framework; path = System/Library/Frameworks/JavaScriptCore.framework; sourceTree = SDKROOT; };
@@ -74,7 +72,6 @@
7472
isa = PBXFrameworksBuildPhase;
7573
buildActionMask = 2147483647;
7674
files = (
77-
C006102922E9EBCA00EDC852 /* libOCMock.a in Frameworks */,
7875
39B75062AA5F42B6E4C8E3C7 /* libPods-InstabugSampleTests.a in Frameworks */,
7976
);
8077
runOnlyForDeploymentPostprocessing = 0;
@@ -132,7 +129,6 @@
132129
2D16E6871FA4F8E400B85C8A /* Frameworks */ = {
133130
isa = PBXGroup;
134131
children = (
135-
C006102822E9EBCA00EDC852 /* libOCMock.a */,
136132
ED297162215061F000B7C4FE /* JavaScriptCore.framework */,
137133
A0EF1FBF0176E13B30EA2D29 /* libPods-InstabugSample.a */,
138134
7A03A15E2685C1231729CA8B /* libPods-InstabugSampleTests.a */,
@@ -221,6 +217,7 @@
221217
00DD1BFF1BD5951E006B06BC /* Bundle React Native code and images */,
222218
21BA34F4E1FA153B4E4FB519 /* Upload Sourcemap */,
223219
A4F6B49E8609FD1652D0F43E /* [CP] Embed Pods Frameworks */,
220+
FE69A7F8F5762FFBE1CCA9AC /* [CP-User] [instabug-reactnative] Upload Sourcemap */,
224221
);
225222
buildRules = (
226223
);
@@ -402,6 +399,16 @@
402399
shellScript = "export RCT_METRO_PORT=\"${RCT_METRO_PORT:=8081}\"\necho \"export RCT_METRO_PORT=${RCT_METRO_PORT}\" > \"${SRCROOT}/../node_modules/react-native/scripts/.packager.env\"\nif [ -z \"${RCT_NO_LAUNCH_PACKAGER+xxx}\" ] ; then\n if nc -w 5 -z localhost ${RCT_METRO_PORT} ; then\n if ! curl -s \"http://localhost:${RCT_METRO_PORT}/status\" | grep -q \"packager-status:running\" ; then\n echo \"Port ${RCT_METRO_PORT} already in use, packager is either not running or not running correctly\"\n exit 2\n fi\n else\n open \"$SRCROOT/../node_modules/react-native/scripts/launchPackager.command\" || echo \"Can't start packager automatically\"\n fi\nfi\n";
403400
showEnvVarsInLog = 0;
404401
};
402+
FE69A7F8F5762FFBE1CCA9AC /* [CP-User] [instabug-reactnative] Upload Sourcemap */ = {
403+
isa = PBXShellScriptBuildPhase;
404+
buildActionMask = 2147483647;
405+
files = (
406+
);
407+
name = "[CP-User] [instabug-reactnative] Upload Sourcemap";
408+
runOnlyForDeploymentPostprocessing = 0;
409+
shellPath = /bin/sh;
410+
shellScript = "bash \"../node_modules/instabug-reactnative/ios/upload_sourcemap.sh\"\n";
411+
};
405412
/* End PBXShellScriptBuildPhase section */
406413

407414
/* Begin PBXSourcesBuildPhase section */

InstabugSample/ios/Podfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ target 'InstabugSample' do
3131
target 'InstabugSampleTests' do
3232
inherit! :search_paths
3333
# Pods for testing
34+
pod 'OCMock'
3435
end
3536

3637
use_native_modules!
-2.06 MB
Binary file not shown.

InstabugSample/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@babel/runtime": "^7.5.4",
1818
"@react-native-community/eslint-config": "^0.0.5",
1919
"babel-jest": "^24.8.0",
20-
"detox": "^13.2.0",
20+
"detox": "^18.12.0",
2121
"eslint": "^6.0.1",
2222
"jest": "^24.8.0",
2323
"metro-react-native-babel-preset": "^0.55.0",
@@ -37,13 +37,13 @@
3737
"binaryPath": "ios/build/Build/Products/Debug-iphonesimulator/InstabugSample.app",
3838
"build": "xcodebuild -workspace ios/InstabugSample.xcworkspace -scheme InstabugSample -configuration Debug -sdk iphonesimulator -derivedDataPath ios/build",
3939
"type": "ios.simulator",
40-
"name": "iPhone X"
40+
"name": "iPhone 12"
4141
},
4242
"ios.sim.release": {
4343
"binaryPath": "ios/build/Build/Products/Release-iphonesimulator/InstabugSample.app",
4444
"build": "xcodebuild -workspace ios/InstabugSample.xcworkspace -scheme InstabugSample -configuration Release -sdk iphonesimulator -derivedDataPath ios/build",
4545
"type": "ios.simulator",
46-
"name": "iPhone X"
46+
"name": "iPhone 12"
4747
},
4848
"android.emu.debug": {
4949
"binaryPath": "android/app/build/outputs/apk/debug/app-debug.apk",

autolink.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,6 @@
1515
project_path = Dir.glob("#{current_path}/ios/*.xcodeproj").first
1616
file_name = File.basename(project_path, ".xcodeproj")
1717
project_location = "./ios/#{file_name}.xcodeproj"
18-
default_target_name = file_name
19-
framework_root = '../node_modules/instabug-reactnative/ios'
20-
framework_name = 'Instabug.framework'
21-
22-
INSTABUG_PHASE_NAME = "Strip Frameworks"
23-
24-
INSTABUG_PHASE_SCRIPT = <<-SCRIPTEND
25-
bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Instabug.framework/strip-frameworks.sh"
26-
SCRIPTEND
2718

2819
INSTABUG_UPLOAD_NAME = "Upload Sourcemap"
2920

@@ -33,13 +24,9 @@
3324

3425
# Get useful variables
3526
project = Xcodeproj::Project.open(project_location)
36-
frameworks_group = project.groups.find { |group| group.display_name == 'Frameworks' }
37-
frameworks_group ||= project.new_group('Frameworks')
38-
default_target = project.targets.find { |target| target.to_s == default_target_name } || project.targets.first
3927
targets = project.targets.select { |target| (target.is_a? Xcodeproj::Project::Object::PBXNativeTarget) &&
4028
(target.product_type == "com.apple.product-type.application") &&
4129
(target.platform_name == :ios) }
42-
framework_ref = frameworks_group.new_file("#{framework_root}/#{framework_name}")
4330

4431
targets.each do |target|
4532
#Add New Run Script Phase to Build Phases

autounlink.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,14 @@
1111
project_path = Dir.glob("#{current_path}/ios/*.xcodeproj").first
1212
file_name = File.basename(project_path, ".xcodeproj")
1313
project_location = "./ios/#{file_name}.xcodeproj"
14-
framework_root = '../node_modules/instabug-reactnative/ios'
15-
framework_name = 'Instabug.framework'
16-
17-
INSTABUG_PHASE_NAME = "Strip Frameworks"
1814

1915
INSTABUG_UPLOAD_NAME = "Upload Sourcemap"
2016

2117
# Get useful variables
2218
project = Xcodeproj::Project.open(project_location)
23-
frameworks_group = project.groups.find { |group| group.display_name == 'Frameworks' }
2419
targets = project.targets.select { |target| (target.is_a? Xcodeproj::Project::Object::PBXNativeTarget) &&
2520
(target.product_type == "com.apple.product-type.application") &&
2621
(target.platform_name == :ios) }
27-
framework_ref = frameworks_group.files.find { |file_reference| file_reference.path == "#{framework_root}/#{framework_name}"}
28-
29-
# # Remove Instabug's framework from the Frameworks group
30-
# frameworks_group.children.delete(framework_ref)
3122

3223
targets.each do |target|
3324
#Delete New Run Script Phase from Build Phases

instabug-reactnative.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ Pod::Spec.new do |s|
1313
s.source_files = 'ios/RNInstabug/*'
1414
s.platform = :ios, "9.0"
1515
s.static_framework = true
16-
s.ios.vendored_frameworks = 'ios/Instabug.framework'
16+
s.ios.vendored_frameworks = 'ios/Instabug.xcframework'
1717
s.dependency 'React'
1818
end

0 commit comments

Comments
 (0)