Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit edfb776

Browse files
committed
fix: add fixed orientation
- added versioning - fixed the latests apps
1 parent 5071af8 commit edfb776

File tree

7 files changed

+196
-11
lines changed

7 files changed

+196
-11
lines changed

android/app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
<activity
1515
android:name=".SplashActivity"
1616
android:label="@string/app_name"
17-
android:theme="@style/SplashTheme">
17+
android:theme="@style/SplashTheme"
18+
android:screenOrientation="portrait">
1819
<intent-filter>
1920
<action android:name="android.intent.action.MAIN" />
2021
<category android:name="android.intent.category.LAUNCHER" />
@@ -25,7 +26,8 @@
2526
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
2627
android:exported="true"
2728
android:label="@string/app_name"
28-
android:windowSoftInputMode="adjustPan"></activity>
29+
android:windowSoftInputMode="adjustPan"
30+
android:screenOrientation="portrait"></activity>
2931
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
3032
</application>
3133

ios/SwagLabsMobileApp.xcodeproj/project.pbxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@
740740
ORGANIZATIONNAME = Facebook;
741741
TargetAttributes = {
742742
13B07F861A680F5B00A75B9A = {
743-
DevelopmentTeam = "Sauce Labs";
743+
DevelopmentTeam = 2ZQ6NMUD9U;
744744
};
745745
};
746746
};
@@ -1206,7 +1206,7 @@
12061206
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
12071207
CURRENT_PROJECT_VERSION = 1;
12081208
DEAD_CODE_STRIPPING = NO;
1209-
DEVELOPMENT_TEAM = "Sauce Labs";
1209+
DEVELOPMENT_TEAM = 2ZQ6NMUD9U;
12101210
HEADER_SEARCH_PATHS = (
12111211
"$(inherited)",
12121212
"$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
@@ -1232,7 +1232,7 @@
12321232
buildSettings = {
12331233
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
12341234
CURRENT_PROJECT_VERSION = 1;
1235-
DEVELOPMENT_TEAM = "Sauce Labs";
1235+
DEVELOPMENT_TEAM = 2ZQ6NMUD9U;
12361236
HEADER_SEARCH_PATHS = (
12371237
"$(inherited)",
12381238
"$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",

ios/SwagLabsMobileApp/Info.plist

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
<key>UISupportedInterfaceOrientations</key>
3636
<array>
3737
<string>UIInterfaceOrientationPortrait</string>
38-
<string>UIInterfaceOrientationLandscapeLeft</string>
39-
<string>UIInterfaceOrientationLandscapeRight</string>
4038
</array>
4139
<key>UIViewControllerBasedStatusBarAppearance</key>
4240
<false/>

package-lock.json

Lines changed: 183 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"ios.rdc": "./node_modules/.bin/wdio ./tests/e2e/config/wdio.ios.rdc.conf.js",
1616
"ios.clear.build": "npm run clear.cache && rm -rf ./ios/build/Build/Products/Release-iphonesimulator",
1717
"ios.release": "react-native run-ios --configuration Release",
18-
"ios.sim.build": "npm run ios.clear.build && npm run ios.release"
18+
"ios.sim.build": "npm run ios.clear.build && npm run ios.release",
19+
"postversion": "react-native-version"
1920
},
2021
"dependencies": {
2122
"i18n-js": "^3.1.0",
@@ -57,6 +58,7 @@
5758
"jest": "23.6.0",
5859
"metro-react-native-babel-preset": "0.49.0",
5960
"node-fetch": "^2.3.0",
61+
"react-native-version": "^2.6.8",
6062
"react-test-renderer": "16.6.0-alpha.8af6728",
6163
"webdriverio": "^5.6.2"
6264
},

tests/e2e/config/wdio.android.rdc.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ config.capabilities = [
1010
deviceName: 'Google Pixel',
1111
automationName: 'UiAutomator2',
1212
// The reference to the app
13-
testobject_app_id: '3',
13+
testobject_app_id: '5',
1414
// The api key that has a reference to the app-project in the TO cloud
1515
testobject_api_key: process.env.SAUCE_RDC_EU_ACCESS_KEY_ANDROID,
1616
// The name of the test for in the cloud

tests/e2e/config/wdio.ios.rdc.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { config} = require('./wdio.rdc.shared');
1+
const { config } = require('./wdio.rdc.shared');
22

33
// ============
44
// Capabilities
@@ -9,7 +9,7 @@ config.capabilities = [
99
{
1010
deviceName: 'iPhone 8',
1111
// The reference to the app
12-
testobject_app_id: '1',
12+
testobject_app_id: '2',
1313
// The api key that has a reference to the app-project in the TO cloud
1414
testobject_api_key: process.env.SAUCE_RDC_EU_ACCESS_KEY_IOS,
1515
// The name of the test for in the cloud

0 commit comments

Comments
 (0)