appium-webdriveragent 8.2.1 → 8.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [8.3.0](https://github.com/appium/WebDriverAgent/compare/v8.2.1...v8.3.0) (2024-03-29)
2
+
3
+
4
+ ### Features
5
+
6
+ * Add module version to the /status output ([#878](https://github.com/appium/WebDriverAgent/issues/878)) ([a9603f8](https://github.com/appium/WebDriverAgent/commit/a9603f82acbdacdeb7a55b857512ba35353a4bc3))
7
+
1
8
  ## [8.2.1](https://github.com/appium/WebDriverAgent/compare/v8.2.0...v8.2.1) (2024-03-28)
2
9
 
3
10
 
@@ -279,6 +279,11 @@
279
279
  if (nil != upgradeTimestamp && upgradeTimestamp.length > 0) {
280
280
  [buildInfo setObject:upgradeTimestamp forKey:@"upgradedAt"];
281
281
  }
282
+ NSDictionary *infoDict = [[NSBundle bundleForClass:self.class] infoDictionary];
283
+ NSString *version = [infoDict objectForKey:@"CFBundleShortVersionString"];
284
+ if (nil != version) {
285
+ [buildInfo setObject:version forKey:@"version"];
286
+ }
282
287
 
283
288
  return FBResponseWithObject(
284
289
  @{
@@ -1,26 +1,26 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
3
  <plist version="1.0">
4
- <dict>
5
- <key>CFBundleDevelopmentRegion</key>
6
- <string>en</string>
7
- <key>CFBundleExecutable</key>
8
- <string>$(EXECUTABLE_NAME)</string>
9
- <key>CFBundleIdentifier</key>
10
- <string>com.facebook.wda.lib</string>
11
- <key>CFBundleInfoDictionaryVersion</key>
12
- <string>6.0</string>
13
- <key>CFBundleName</key>
14
- <string>$(PRODUCT_NAME)</string>
15
- <key>CFBundlePackageType</key>
16
- <string>FMWK</string>
17
- <key>CFBundleShortVersionString</key>
18
- <string>1.0</string>
19
- <key>CFBundleSignature</key>
20
- <string>????</string>
21
- <key>CFBundleVersion</key>
22
- <string>$(CURRENT_PROJECT_VERSION)</string>
23
- <key>NSPrincipalClass</key>
24
- <string></string>
25
- </dict>
26
- </plist>
4
+ <dict>
5
+ <key>CFBundleDevelopmentRegion</key>
6
+ <string>en</string>
7
+ <key>CFBundleExecutable</key>
8
+ <string>$(EXECUTABLE_NAME)</string>
9
+ <key>CFBundleIdentifier</key>
10
+ <string>com.facebook.wda.lib</string>
11
+ <key>CFBundleInfoDictionaryVersion</key>
12
+ <string>6.0</string>
13
+ <key>CFBundleName</key>
14
+ <string>$(PRODUCT_NAME)</string>
15
+ <key>CFBundlePackageType</key>
16
+ <string>FMWK</string>
17
+ <key>CFBundleShortVersionString</key>
18
+ <string>8.3.0</string>
19
+ <key>CFBundleSignature</key>
20
+ <string>????</string>
21
+ <key>CFBundleVersion</key>
22
+ <string>8.3.0</string>
23
+ <key>NSPrincipalClass</key>
24
+ <string/>
25
+ </dict>
26
+ </plist>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "appium-webdriveragent",
3
- "version": "8.2.1",
3
+ "version": "8.3.0",
4
4
  "description": "Package bundling WebDriverAgent",
5
5
  "main": "./build/index.js",
6
6
  "scripts": {
@@ -11,12 +11,14 @@
11
11
  "format": "prettier -w ./lib",
12
12
  "lint:fix": "npm run lint -- --fix",
13
13
  "prepare": "npm run build",
14
+ "version": "npm run sync-wda-version",
14
15
  "test": "mocha --exit --timeout 1m \"./test/unit/**/*-specs.js\"",
15
16
  "e2e-test": "mocha --exit --timeout 10m \"./test/functional/**/*-specs.js\"",
16
17
  "bundle": "npm run bundle:ios && npm run bundle:tv",
17
18
  "bundle:ios": "TARGET=runner SDK=sim node ./Scripts/build-webdriveragent.js",
18
19
  "bundle:tv": "TARGET=tv_runner SDK=tv_sim node ./Scripts/build-webdriveragent.js",
19
- "fetch-prebuilt-wda": "node ./Scripts/fetch-prebuilt-wda.js"
20
+ "fetch-prebuilt-wda": "node ./Scripts/fetch-prebuilt-wda.js",
21
+ "sync-wda-version": "node ./scripts/update-wda-version.js --package-version=${npm_package_version} && git add WebDriverAgentLib/Info.plist"
20
22
  },
21
23
  "engines": {
22
24
  "node": ">=14",
@@ -73,10 +75,12 @@
73
75
  "eslint-plugin-import": "^2.28.0",
74
76
  "eslint-plugin-mocha": "^10.1.0",
75
77
  "eslint-plugin-promise": "^6.1.1",
78
+ "fancy-log": "^2.0.0",
76
79
  "node-simctl": "^7.0.1",
77
80
  "mocha": "^10.0.0",
78
81
  "prettier": "^3.0.0",
79
82
  "semantic-release": "^23.0.0",
83
+ "semver": "^7.3.7",
80
84
  "sinon": "^17.0.0",
81
85
  "ts-node": "^10.9.1",
82
86
  "typescript": "^5.4.2"