Skip to content

Commit a593054

Browse files
committed
test: update e2e test app to react-native 0.63.4
1 parent 6234a23 commit a593054

File tree

8 files changed

+277
-324
lines changed

8 files changed

+277
-324
lines changed

tests/android/app/build.gradle

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -99,27 +99,6 @@ android {
9999
}
100100
}
101101
}
102-
103-
packagingOptions {
104-
exclude 'META-INF/proguard/androidx-annotations.pro'
105-
exclude 'META-INF/-no-jdk.kotlin_module'
106-
exclude 'META-INF/DEPENDENCIES'
107-
exclude 'META-INF/NOTICE'
108-
exclude 'META-INF/LICENSE'
109-
exclude 'META-INF/LICENSE.txt'
110-
exclude 'META-INF/NOTICE.txt'
111-
pickFirst "lib/armeabi-v7a/libc++_shared.so"
112-
pickFirst "lib/arm64-v8a/libc++_shared.so"
113-
pickFirst "lib/x86/libc++_shared.so"
114-
pickFirst "lib/x86_64/libc++_shared.so"
115-
}
116-
}
117-
118-
// Can probably remove this when tests upgrades to react-native 0.63
119-
configurations.all {
120-
resolutionStrategy {
121-
force "com.facebook.soloader:soloader:0.8.2"
122-
}
123102
}
124103

125104
dependencies {

tests/app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ function Root() {
5252
testID="welcome"
5353
style={{ flex: 1, paddingTop: 20, justifyContent: 'center', alignItems: 'center' }}
5454
>
55-
<Text style={{ fontSize: 25, marginBottom: 30 }}>Testing App</Text>
55+
<Text style={{ fontSize: 25, marginBottom: 30 }}>React Native Firebase</Text>
56+
<Text style={{ fontSize: 25, marginBottom: 30 }}>End-to-End Testing App</Text>
5657
</View>
5758
);
5859
}

tests/ios/LaunchScreen.storyboard

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
3+
<device id="retina6_1" orientation="portrait" appearance="light"/>
4+
<dependencies>
5+
<deployment identifier="iOS"/>
6+
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
7+
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
8+
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
9+
</dependencies>
10+
<scenes>
11+
<!--View Controller-->
12+
<scene sceneID="EHf-IW-A2E">
13+
<objects>
14+
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
15+
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
16+
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
17+
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
18+
<subviews>
19+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Copyright © 2020 Invertase. All rights reserved." textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" minimumFontSize="9" translatesAutoresizingMaskIntoConstraints="NO" id="obG-Y5-kRd">
20+
<rect key="frame" x="0.0" y="855.5" width="414" height="20.5"/>
21+
<fontDescription key="fontDescription" type="system" pointSize="17"/>
22+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
23+
<nil key="highlightedColor"/>
24+
</label>
25+
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" misplaced="YES" text="React Native Firebase end-to-end test app" textAlignment="center" lineBreakMode="wordWrap" numberOfLines="2" baselineAdjustment="alignBaselines" minimumFontSize="18" translatesAutoresizingMaskIntoConstraints="NO" id="GJd-Yh-RWb">
26+
<rect key="frame" x="20" y="268" width="374" height="156"/>
27+
<fontDescription key="fontDescription" type="boldSystem" pointSize="32"/>
28+
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
29+
<nil key="highlightedColor"/>
30+
</label>
31+
</subviews>
32+
<viewLayoutGuide key="safeArea" id="Bcu-3y-fUS"/>
33+
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
34+
<constraints>
35+
<constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="obG-Y5-kRd" secondAttribute="centerX" id="5cz-MP-9tL"/>
36+
<constraint firstItem="Bcu-3y-fUS" firstAttribute="centerX" secondItem="GJd-Yh-RWb" secondAttribute="centerX" id="Q3B-4B-g5h"/>
37+
<constraint firstItem="obG-Y5-kRd" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="SfN-ll-jLj"/>
38+
<constraint firstAttribute="bottom" secondItem="obG-Y5-kRd" secondAttribute="bottom" constant="20" id="Y44-ml-fuU"/>
39+
<constraint firstItem="GJd-Yh-RWb" firstAttribute="centerY" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="1/3" constant="1" id="moa-c2-u7t"/>
40+
<constraint firstItem="GJd-Yh-RWb" firstAttribute="leading" secondItem="Bcu-3y-fUS" secondAttribute="leading" symbolic="YES" id="x7j-FC-K8j"/>
41+
</constraints>
42+
</view>
43+
</viewController>
44+
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
45+
</objects>
46+
<point key="canvasLocation" x="52.173913043478265" y="375"/>
47+
</scene>
48+
</scenes>
49+
</document>

tests/ios/Podfile

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,44 +4,15 @@ $RNFirebaseAsStaticFramework = false
44
# Version override testing
55
$FirebaseSDKVersion = '7.3.0'
66

7+
require_relative '../node_modules/react-native/scripts/react_native_pods'
78
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
89

910
target 'testing' do
1011
# use_frameworks!
1112

12-
pod 'FBLazyVector', :path => "../node_modules/react-native/Libraries/FBLazyVector"
13-
pod 'FBReactNativeSpec', :path => "../node_modules/react-native/Libraries/FBReactNativeSpec"
14-
pod 'RCTRequired', :path => "../node_modules/react-native/Libraries/RCTRequired"
15-
pod 'RCTTypeSafety', :path => "../node_modules/react-native/Libraries/TypeSafety"
16-
pod 'React', :path => '../node_modules/react-native/'
17-
pod 'React-Core', :path => '../node_modules/react-native/'
18-
pod 'React-CoreModules', :path => '../node_modules/react-native/React/CoreModules'
19-
pod 'React-Core/DevSupport', :path => '../node_modules/react-native/'
20-
pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'
21-
pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'
22-
pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'
23-
pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'
24-
pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'
25-
pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'
26-
pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'
27-
pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'
28-
pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'
29-
pod 'React-Core/RCTWebSocket', :path => '../node_modules/react-native/'
30-
31-
pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'
32-
pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'
33-
pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'
34-
pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'
35-
pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
36-
pod 'ReactCommon/turbomodule/core', :path => "../node_modules/react-native/ReactCommon"
37-
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga', :modular_headers => true
38-
39-
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
40-
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
41-
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
42-
43-
use_native_modules!
44-
# pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion
13+
config = use_native_modules!
14+
use_react_native!(:path => config["reactNativePath"])
15+
#pod 'FirebaseFirestore', :git => 'https://github.com/invertase/firestore-ios-sdk-frameworks.git', :tag => $FirebaseSDKVersion
4516
end
4617

4718
post_install do |installer|

0 commit comments

Comments
 (0)