Compare commits

...
Author SHA1 Message Date
dpgraham cb8dbdb4b2 1.11.2-rc.1 2019-02-22 05:38:55 -08:00
Dan Graham 234cebdcc2 Add prepublish script to prune devDependencies from shrinkwrap (#12194) 2019-02-22 05:22:59 -08:00
dpgraham 2214c8093c Prepare for rc 2019-02-21 20:19:14 -08:00
dpgraham 4cc435b13f Update appium-ios-driver to v4 2019-02-21 20:08:29 -08:00
dpgraham e6a2dd73c6 Release 1.11.1 2019-02-19 11:30:32 -08:00
dpgraham bca930cc07 Release 1.11.1-rc.1 2019-02-14 15:53:02 -08:00
dpgraham 2654c5911c Update appium server 2019-02-14 15:26:44 -08:00
dpgraham 64f83556b6 Prepare 1.11.1 release candidate 2019-02-14 14:43:23 -08:00
dpgraham 6d45010646 Prune dev dependencies 2019-02-14 14:30:46 -08:00
dpgraham 3efeb04c67 Update base driver and uiautomator2 driver 2019-02-14 14:23:00 -08:00
dpgraham 49c7a2574c Update YouIEngine Driver to 1.1.2 2019-02-13 16:33:47 -08:00
dpgraham 2ed55e8448 Release 1.11.0 2019-02-13 10:41:14 -08:00
dpgraham 350223eb10 Release 1.11.0-rc.5 2019-02-12 10:16:11 -08:00
dpgraham 444272321a Update appium-adb 2019-02-12 10:13:38 -08:00
dpgraham 986ba5620c Release 1.11.0-rc.4 2019-02-11 13:12:12 -08:00
dpgraham 4ec267217e Update appium-android-driver 2019-02-11 13:10:45 -08:00
dpgraham 4c518ddb02 Release 1.11.0-rc.3 2019-01-15 15:15:13 -08:00
dpgraham bd2fd7030b Update appium-espresso-driver 2019-01-15 15:13:57 -08:00
dpgraham 440b27d778 Update appium-uiautomator2-driver 2019-01-15 15:11:48 -08:00
Dan Graham 8edba58fc9 Add deprecation notice when automationName not set (#11979)
* Add deprecation notice when automationName not set

* PR changes
2019-01-15 14:53:21 -08:00
dpgraham df9fa1bac8 Bump version to rc2 2019-01-10 11:25:05 -08:00
dpgraham 474e482d6c Update appium-xcuitest-driver 2019-01-10 11:20:16 -08:00
dpgraham 831ddfd2d6 Release 1.11.0-rc.1 2019-01-09 11:03:27 -08:00
dpgraham abb94791b2 Revert version number 2019-01-09 10:59:49 -08:00
dpgraham 57a0fb6ba7 Do not ignore npm-shrinkwrap.json 2019-01-09 10:58:38 -08:00
dpgraham 4ee1daa1b5 Release 1.11.0-rc.1 2019-01-09 09:39:39 -08:00
dpgraham 24287354b8 Update way outdated dependencies 2019-01-09 09:32:33 -08:00
dpgraham 8b81fbbeb6 Release 1.11.0-rc.0 2019-01-03 11:20:20 -08:00
dpgraham dd0f928ca3 Change version name to make release RC work 2019-01-03 11:20:14 -08:00
dpgraham 55fb6e3c86 Prepare 1.11.0 release candidate 2019-01-03 11:18:33 -08:00
5 changed files with 12514 additions and 40 deletions
@@ -195,7 +195,7 @@ converted into the `npm-shrinkwrap.json` file.
1. Determine whether we have a `patch` (bugfix), `minor` (feature), or `major` (breaking) release according to the principles of SemVer.
1. Update `package.json` with the appropriate new version.
1. Update the CHANGELOG/README with appropriate changes and submit for review as a PR, along with shrinkwrap and `package.json` changes. Wait for it to be merged, then pull it into the release branch.
1. Run `npm run shrinkwrap-prod`. This script prunes dev dependencies (leaving only production dependencies), creates a production-only `npm-shrinkwrap.json` and then re-installs the dev dependencies by doing `npm install --no-shrinkwrap`.
1. Run `npm shrinkwrap` to generate the `npm-shrinkwrap.json`
1. Create a tag of the form `v<version>` on the release branch (usually a minor branch like `1.5` or `1.4`), with: `git tag -a v<version>`, e.g., `git tag -a v1.5.0`. This is not necessary for beta versions.
1. Push the tag to upstream: `git push --tags <remote> <branch>`
1. Run `npm publish` (with `--tag beta` if this isn't an official release).
+2 -5
View File
@@ -12,12 +12,9 @@ const path = require('path');
const fs = require('fs');
const log = require('fancy-log');
require('./ci/gulp');
// remove 'fsevents' from shrinkwrap, since it causes errors on non-Mac hosts
// see https://github.com/npm/npm/issues/2679
gulp.task('fixShrinkwrap', function (done) {
let shrinkwrap;
try {
@@ -27,6 +24,7 @@ gulp.task('fixShrinkwrap', function (done) {
`(Original error: ${err.message})`);
return done();
}
delete shrinkwrap.dependencies.fsevents;
const shrinkwrapString = JSON.stringify(shrinkwrap, null, ' ') + '\n';
fs.writeFile('./npm-shrinkwrap.json', shrinkwrapString, done);
@@ -44,7 +42,6 @@ boilerplate({
test: {
files: ['${testDir}/**/*-specs.js']
},
extraPrepublishTasks: ['fixShrinkwrap'],
preCommitTasks: ['eslint', 'once'],
});
+29 -11
View File
@@ -18,16 +18,26 @@ import AsyncLock from 'async-lock';
import { inspectObject, parseCapsForInnerDriver, getPackageVersion } from './utils';
import semver from 'semver';
const PLATFORMS = {
FAKE: 'fake',
ANDROID: 'android',
IOS: 'ios',
WINDOWS: 'windows',
MAC: 'mac',
TIZEN: 'tizen',
};
const AUTOMATION_NAMES = {
APPIUM: 'Appium',
SELENDROID: 'Selendroid',
UIAUTOMATOR2: 'UiAutomator2',
UIAUTOMATOR1: 'UiAutomator1',
XCUITEST: 'XCUITest',
YOUIENGINE: 'YouiEngine',
ESPRESSO: 'Espresso',
TIZEN: 'Tizen',
FAKE: 'Fake',
INSTRUMENTS: 'Instruments',
};
const DRIVER_MAP = {
SelendroidDriver: {
@@ -56,10 +66,12 @@ const DRIVER_MAP = {
},
AndroidDriver: {
driverClass: AndroidDriver,
automationName: AUTOMATION_NAMES.UIAUTOMATOR1,
version: getPackageVersion('appium-android-driver'),
},
IosDriver: {
driverClass: IosDriver,
automationName: AUTOMATION_NAMES.INSTRUMENTS,
version: getPackageVersion('appium-ios-driver'),
},
WindowsDriver: {
@@ -83,20 +95,24 @@ const DRIVER_MAP = {
};
const PLATFORMS_MAP = {
fake: () => FakeDriver,
android: (caps) => {
[PLATFORMS.FAKE]: () => FakeDriver,
[PLATFORMS.ANDROID]: (caps) => {
const platformVersion = semver.valid(semver.coerce(caps.platformVersion));
log.warn(`DeprecationWarning: 'automationName' capability was not provided. ` +
`Future versions of Appium will require 'automationName' capability to be set for Android sessions.`);
log.info(`Setting automation to '${AUTOMATION_NAMES.UIAUTOMATOR1}'. `);
if (platformVersion && semver.satisfies(platformVersion, '>=6.0.0')) {
log.warn("Consider setting 'automationName' capability to " +
`'${AUTOMATION_NAMES.UIAUTOMATOR2}' ` +
"on Android >= 6, since UIAutomator framework " +
"is not maintained anymore by the OS vendor.");
log.warn(`Consider setting 'automationName' capability to '${AUTOMATION_NAMES.UIAUTOMATOR2}' ` +
'on Android >= 6, since UIAutomator1 framework ' +
'is not maintained anymore by the OS vendor.');
}
return AndroidDriver;
},
ios: (caps) => {
[PLATFORMS.IOS]: (caps) => {
const platformVersion = semver.valid(semver.coerce(caps.platformVersion));
log.warn(`DeprecationWarning: 'automationName' capability was not provided. ` +
`Future versions of Appium will require 'automationName' capability to be set for iOS sessions.`);
if (platformVersion && semver.satisfies(platformVersion, '>=10.0.0')) {
log.info("Requested iOS support with version >= 10, " +
`using '${AUTOMATION_NAMES.XCUITEST}' ` +
@@ -107,9 +123,9 @@ const PLATFORMS_MAP = {
return IosDriver;
},
windows: () => WindowsDriver,
mac: () => MacDriver,
tizen: () => TizenDriver,
[PLATFORMS.WINDOWS]: () => WindowsDriver,
[PLATFORMS.MAC]: () => MacDriver,
[PLATFORMS.TIZEN]: () => TizenDriver,
};
const desiredCapabilityConstraints = {
@@ -174,6 +190,8 @@ class AppiumDriver extends BaseDriver {
throw new Error("You must include a platformName capability");
}
const platformName = caps.platformName.toLowerCase();
// we don't necessarily have an `automationName` capability,
if (_.isString(caps.automationName)) {
for (const {automationName, driverClass} of _.values(DRIVER_MAP)) {
@@ -183,7 +201,7 @@ class AppiumDriver extends BaseDriver {
}
}
const driverSelector = PLATFORMS_MAP[caps.platformName.toLowerCase()];
const driverSelector = PLATFORMS_MAP[platformName];
if (driverSelector) {
return driverSelector(caps);
}
+12456
View File
File diff suppressed because it is too large Load Diff
+26 -23
View File
@@ -11,7 +11,7 @@
"firefoxos",
"testing"
],
"version": "1.11.0-beta.3",
"version": "1.11.2-rc.1",
"author": "https://github.com/appium",
"license": "Apache-2.0",
"repository": {
@@ -36,27 +36,28 @@
"files": [
"bin",
"lib",
"build/lib"
"build/lib",
"npm-shrinkwrap.json"
],
"dependencies": {
"@babel/runtime": "^7.0.0",
"appium-android-driver": "^4.0.0",
"appium-base-driver": "3.x",
"appium-espresso-driver": "^1.0.0",
"appium-fake-driver": "^0.x",
"appium-ios-driver": "2.x",
"appium-mac-driver": "1.x",
"appium-selendroid-driver": "1.x",
"appium-support": "2.x",
"appium-android-driver": "^4.8.0",
"appium-base-driver": "^3.15.2",
"appium-espresso-driver": "^1.7.1",
"appium-fake-driver": "^0.6.2",
"appium-ios-driver": "^4.1.0",
"appium-mac-driver": "^1.4.1",
"appium-selendroid-driver": "^1.13.3",
"appium-support": "^2.25.0",
"appium-tizen-driver": "^1.1.1-beta.3",
"appium-uiautomator2-driver": "1.x",
"appium-windows-driver": "1.x",
"appium-xcuitest-driver": "2.x",
"appium-youiengine-driver": "^1.1.1",
"appium-uiautomator2-driver": "^1.29.1",
"appium-windows-driver": "^1.5.1",
"appium-xcuitest-driver": "^2.105.1",
"appium-youiengine-driver": "^1.1.2",
"argparse": "^1.0.10",
"async-lock": "^1.0.0",
"asyncbox": "2.x",
"bluebird": "3.x",
"asyncbox": "^2.5.2",
"bluebird": "^3.5.3",
"continuation-local-storage": "3.x",
"dateformat": "^3.0.3",
"find-root": "^1.1.0",
@@ -65,15 +66,18 @@
"npmlog": "4.x",
"request": "^2.81.0",
"request-promise": "4.x",
"semver": "^5.5.0",
"semver": "^5.6.0",
"source-map-support": "0.x",
"teen_process": "1.x",
"teen_process": "^1.14.1",
"winston": "3.x"
},
"scripts": {
"clean": "rm -rf node_modules && rm -f package-lock.json && npm install",
"prepare": "gulp prepublish",
"publish": "gulp prepublish",
"prepublish": "gulp prepublish",
"prepublishOnly": "npm run prune-shrinkwrap && gulp fixShrinkwrap",
"postpublish": "npm run restore-shrinkwrap",
"prune-shrinkwrap": "npm ci --production --ignore-scripts && npm shrinkwrap && npm install --only=dev --no-shrinkwrap",
"restore-shrinkwrap": "git checkout HEAD -- npm-shrinkwrap.json",
"test": "gulp once",
"e2e-test": "gulp e2e-test",
"watch": "gulp watch",
@@ -84,7 +88,6 @@
"lint": "gulp eslint",
"coverage": "gulp coveralls",
"generate-docs": "node ./build/commands-yml/parse.js",
"shrinkwrap-prod": "rimraf package-lock.json && npm prune --production && npm shrinkwrap && npm install --no-shrinkwrap",
"zip": "zip -qr appium.zip .",
"upload": "gulp github-upload",
"zip-and-upload": "npm run zip && npm run upload"
@@ -105,13 +108,13 @@
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-mocha": "^5.0.0",
"eslint-plugin-promise": "^4.0.0",
"fancy-log": "^1.3.2",
"fancy-log": "^1.3.3",
"gulp": "^4.0.0",
"handlebars": "^4.0.10",
"mocha": "5.x",
"pre-commit": "1.x",
"replace-ext": "^1.0.0",
"rimraf": "^2.6.2",
"rimraf": "^2.6.3",
"sinon": "^6.0.0",
"validate.js": "^0.12.0",
"wd": "^1.10.0",