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

Commit

Permalink
fix: add fixed orientation
Browse files Browse the repository at this point in the history
- added versioning
- fixed the latests apps
  • Loading branch information
wswebcreation committed Mar 8, 2019
1 parent 5071af8 commit edfb776
Show file tree
Hide file tree
Showing 7 changed files with 196 additions and 11 deletions.
6 changes: 4 additions & 2 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
<activity
android:name=".SplashActivity"
android:label="@string/app_name"
android:theme="@style/SplashTheme">
android:theme="@style/SplashTheme"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -25,7 +26,8 @@
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:exported="true"
android:label="@string/app_name"
android:windowSoftInputMode="adjustPan"></activity>
android:windowSoftInputMode="adjustPan"
android:screenOrientation="portrait"></activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>

Expand Down
6 changes: 3 additions & 3 deletions ios/SwagLabsMobileApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@
ORGANIZATIONNAME = Facebook;
TargetAttributes = {
13B07F861A680F5B00A75B9A = {
DevelopmentTeam = "Sauce Labs";
DevelopmentTeam = 2ZQ6NMUD9U;
};
};
};
Expand Down Expand Up @@ -1206,7 +1206,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = 1;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = "Sauce Labs";
DEVELOPMENT_TEAM = 2ZQ6NMUD9U;
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
Expand All @@ -1232,7 +1232,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "Sauce Labs";
DEVELOPMENT_TEAM = 2ZQ6NMUD9U;
HEADER_SEARCH_PATHS = (
"$(inherited)",
"$(SRCROOT)/../node_modules/react-native-vector-icons/RNVectorIconsManager",
Expand Down
2 changes: 0 additions & 2 deletions ios/SwagLabsMobileApp/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
Expand Down
183 changes: 183 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"ios.rdc": "./node_modules/.bin/wdio ./tests/e2e/config/wdio.ios.rdc.conf.js",
"ios.clear.build": "npm run clear.cache && rm -rf ./ios/build/Build/Products/Release-iphonesimulator",
"ios.release": "react-native run-ios --configuration Release",
"ios.sim.build": "npm run ios.clear.build && npm run ios.release"
"ios.sim.build": "npm run ios.clear.build && npm run ios.release",
"postversion": "react-native-version"
},
"dependencies": {
"i18n-js": "^3.1.0",
Expand Down Expand Up @@ -57,6 +58,7 @@
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.49.0",
"node-fetch": "^2.3.0",
"react-native-version": "^2.6.8",
"react-test-renderer": "16.6.0-alpha.8af6728",
"webdriverio": "^5.6.2"
},
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/config/wdio.android.rdc.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ config.capabilities = [
deviceName: 'Google Pixel',
automationName: 'UiAutomator2',
// The reference to the app
testobject_app_id: '3',
testobject_app_id: '5',
// The api key that has a reference to the app-project in the TO cloud
testobject_api_key: process.env.SAUCE_RDC_EU_ACCESS_KEY_ANDROID,
// The name of the test for in the cloud
Expand Down
4 changes: 2 additions & 2 deletions tests/e2e/config/wdio.ios.rdc.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { config} = require('./wdio.rdc.shared');
const { config } = require('./wdio.rdc.shared');

// ============
// Capabilities
Expand All @@ -9,7 +9,7 @@ config.capabilities = [
{
deviceName: 'iPhone 8',
// The reference to the app
testobject_app_id: '1',
testobject_app_id: '2',
// The api key that has a reference to the app-project in the TO cloud
testobject_api_key: process.env.SAUCE_RDC_EU_ACCESS_KEY_IOS,
// The name of the test for in the cloud
Expand Down

0 comments on commit edfb776

Please sign in to comment.