Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support of executeMethodMap #982

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

mykola-mokhnach
Copy link
Contributor

@mykola-mokhnach mykola-mokhnach commented Jan 31, 2025

BREAKING CHANGE: The following driver methods and properties were removed:

  • executeMobile
  • mobileCommandsMapping
  • mobileLock
  • mobilePushFile
  • mobilePullFolder
  • mobilePullFile
  • mobileActivateApp
  • mobileQueryAppState

BREAKING CHANGE: Arguments of the following driver methods were changed:

  • mobileExecEmuConsoleCommand
  • mobileShell
  • mobileChangePermissions
  • mobileGetPermissions
  • mobilePerformEditorAction
  • mobileGetDeviceTime
  • mobileStartScreenStreaming
  • mobileDeleteFile
  • mobileIsAppInstalled
  • mobileRemoveApp
  • mobileTerminateApp
  • mobileInstallApp
  • mobileClearApp
  • mobileStartService
  • mobileStopService
  • mobileStartActivity
  • mobileBroadcast
  • mobileGetContexts
  • mobileUnlock
  • mobileRefreshGpsCache
  • mobileStartMediaProjectionRecording
  • mobileStopMediaProjectionRecording
  • mobileGetConnectivity
  • mobileSetConnectivity
  • mobileDeviceidle
  • mobileBluetooth
  • mobileNfc
  • mobileSetUiMode
  • mobileGetUiMode
  • mobileInjectEmulatorCameraImage
  • mobileSendTrimMemory
  • mobileGetPerformanceData
  • mobilePerformStatusBarCommand
  • mobileFingerprint
  • mobileSendSms
  • mobileGsmCall
  • mobileGsmSignal
  • mobileGsmVoice
  • mobilePowerAc
  • mobilePowerCapacity
  • mobileNetworkSpeed
  • sensorSet
  • mobileSetGeolocation

BREAKING CHANGE: The following obsolete type definitions were removed:

  • ExecOptions
  • ShellOpts
  • ChangePermissionsOpts
  • GetPermissionsOpts
  • PerformEditorActionOpts
  • DeviceTimeOpts
  • StartScreenStreamingOpts
  • PushFileOpts
  • PullFolderOpts
  • PullFileOpts
  • DeleteFileOpts
  • IsAppInstalledOpts
  • ActivateAppOpts
  • QueryAppStateOpts
  • RemoveAppOpts
  • TerminateAppOpts
  • InstallAppOpts
  • ClearAppOpts
  • StartServiceOpts
  • StopServiceOpts
  • StartActivityOpts
  • BroadcastOpts
  • LockOpts
  • UnlockOptions
  • GpsCacheRefreshOpts
  • StartMediaProjectionRecordingOpts
  • StopMediaProjectionRecordingOpts
  • GetConnectivityOpts
  • SetConnectivityOpts
  • DeviceidleOpts
  • BluetoothOptions
  • NfcOptions
  • SetUiModeOpts
  • GetUiModeOpts
  • ImageInjectionOpts
  • SendTrimMemoryOpts
  • PerformanceDataOpts
  • StatusBarCommandOpts
  • FingerprintOpts
  • SendSMSOpts
  • GsmCallOpts
  • GsmSignalStrengthOpts
  • GsmVoiceState
  • PowerACOpts
  • PowerCapacityOpts
  • NetworkSpeedOpts
  • SensorSetOpts
  • DragOpts
  • SwipeOpts

Copy link
Member

@KazuCocoa KazuCocoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

* @param {import('./types').QueryAppStateOpts} opts
* @returns {Promise<import('./types').AppState>}
*/
export async function mobileQueryAppState(opts) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, ok. like this method is a thin wrapper, so drivers will map with this.queryAppState

@mykola-mokhnach mykola-mokhnach merged commit b68f3fa into appium:master Jan 31, 2025
5 checks passed
@mykola-mokhnach mykola-mokhnach deleted the exec_method_map branch January 31, 2025 09:29
github-actions bot pushed a commit that referenced this pull request Jan 31, 2025
## [10.0.0](v9.15.1...v10.0.0) (2025-01-31)

### ⚠ BREAKING CHANGES

* The following driver methods and properties were removed:

- executeMobile
- mobileCommandsMapping
- mobileLock
- mobilePushFile
- mobilePullFolder
- mobilePullFile
- mobileActivateApp
- mobileQueryAppState
* Arguments of the following driver methods were changed:

- mobileExecEmuConsoleCommand
- mobileShell
- mobileChangePermissions
- mobileGetPermissions
- mobilePerformEditorAction
- mobileGetDeviceTime
- mobileStartScreenStreaming
- mobileDeleteFile
- mobileIsAppInstalled
- mobileRemoveApp
- mobileTerminateApp
- mobileInstallApp
- mobileClearApp
- mobileStartService
- mobileStopService
- mobileStartActivity
- mobileBroadcast
- mobileGetContexts
- mobileUnlock
- mobileRefreshGpsCache
- mobileStartMediaProjectionRecording
- mobileStopMediaProjectionRecording
- mobileGetConnectivity
- mobileSetConnectivity
- mobileDeviceidle
- mobileBluetooth
- mobileNfc
- mobileSetUiMode
- mobileGetUiMode
- mobileInjectEmulatorCameraImage
- mobileSendTrimMemory
- mobileGetPerformanceData
- mobilePerformStatusBarCommand
- mobileFingerprint
- mobileSendSms
- mobileGsmCall
- mobileGsmSignal
- mobileGsmVoice
- mobilePowerAc
- mobilePowerCapacity
- mobileNetworkSpeed
- sensorSet
- mobileSetGeolocation
* The following obsolete type definitions were removed:

- ExecOptions
- ShellOpts
- ChangePermissionsOpts
- GetPermissionsOpts
- PerformEditorActionOpts
- DeviceTimeOpts
- StartScreenStreamingOpts
- PushFileOpts
- PullFolderOpts
- PullFileOpts
- DeleteFileOpts
- IsAppInstalledOpts
- ActivateAppOpts
- QueryAppStateOpts
- RemoveAppOpts
- TerminateAppOpts
- InstallAppOpts
- ClearAppOpts
- StartServiceOpts
- StopServiceOpts
- StartActivityOpts
- BroadcastOpts
- LockOpts
- UnlockOptions
- GpsCacheRefreshOpts
- StartMediaProjectionRecordingOpts
- StopMediaProjectionRecordingOpts
- GetConnectivityOpts
- SetConnectivityOpts
- DeviceidleOpts
- BluetoothOptions
- NfcOptions
- SetUiModeOpts
- GetUiModeOpts
- ImageInjectionOpts
- SendTrimMemoryOpts
- PerformanceDataOpts
- StatusBarCommandOpts
- FingerprintOpts
- SendSMSOpts
- GsmCallOpts
- GsmSignalStrengthOpts
- GsmVoiceState
- PowerACOpts
- PowerCapacityOpts
- NetworkSpeedOpts
- SensorSetOpts
- DragOpts
- SwipeOpts

### Features

* Add support of executeMethodMap ([#982](#982)) ([b68f3fa](b68f3fa))
Copy link

🎉 This PR is included in version 10.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

mykola-mokhnach added a commit to appium/appium-espresso-driver that referenced this pull request Feb 1, 2025
BREAKING CHANGE: The following methods and properties were **removed**:
- mobileCommandsMapping
- mobileBackgroundApp

BREAKING CHANGE: The following methods signatures were **changed**:
- mobileSwipe
- mobileScrollToPage
- mobileClickAction
- mobileNavigateTo
- mobileIsToastVisible
- mobileOpenDrawer
- mobileCloseDrawer
- mobileSetDate
- mobileSetTime
- mobileBackdoor
- mobileFlashElement
- mobileUiautomator
- mobileWebAtoms
- mobileDismissAutofill
- mobileRegisterIdlingResources
- mobileUnregisterIdlingResources
- mobilePressKey
- mobileSetClipboard
- mobileStartService
- mobileStopService
- mobileStartActivity
- mobileScreenshots

Based on appium/appium-android-driver#982
github-actions bot pushed a commit to appium/appium-espresso-driver that referenced this pull request Feb 1, 2025
## [4.0.0](v3.6.0...v4.0.0) (2025-02-01)

### ⚠ BREAKING CHANGES

* The following methods and properties were **removed**:
- mobileCommandsMapping
- mobileBackgroundApp
* The following methods signatures were **changed**:
- mobileSwipe
- mobileScrollToPage
- mobileClickAction
- mobileNavigateTo
- mobileIsToastVisible
- mobileOpenDrawer
- mobileCloseDrawer
- mobileSetDate
- mobileSetTime
- mobileBackdoor
- mobileFlashElement
- mobileUiautomator
- mobileWebAtoms
- mobileDismissAutofill
- mobileRegisterIdlingResources
- mobileUnregisterIdlingResources
- mobilePressKey
- mobileSetClipboard
- mobileStartService
- mobileStopService
- mobileStartActivity
- mobileScreenshots

Based on appium/appium-android-driver#982

### Features

* Add support of executeMethodMap ([#1042](#1042)) ([00a38a2](00a38a2))
mykola-mokhnach added a commit to appium/appium-uiautomator2-driver that referenced this pull request Feb 1, 2025
BREAKING CHANGE: The following methods and properties were **removed**:
- mobileSetClipboard -> replaced by setClipboard
- mobileGetClipboard -> replaced by getClipboard
- executeMobile -> replaced by execute (the` script` argument must also be changed to start with `mobile: `)
- mobileCommandsMapping -> replaced by executeMethodsMap
- mobileGetAppStrings -> replaced by getStrings

BREAKING CHANGE: The following methods were **changed**:
- mobileDragGesture
- mobileFlingGesture
- mobileDoubleClickGesture
- mobileClickGesture
- mobilePinchOpenGesture
- mobilePinchCloseGesture
- mobileSwipeGesture
- mobileScrollGesture
- mobileScrollBackTo
- mobileScroll
- mobileDeepLink
- mobileAcceptAlert
- mobileDismissAlert
- mobileType
- mobileReplaceElementValue
- mobileInstallMultipleApks
- mobileBackgroundApp
- mobilePressKey
- mobileScreenshots
- mobileScheduleAction
- mobileUnscheduleAction
- mobileGetActionHistory

BREAKING CHANGE: The following obsolete type definitions were **removed**:
- DragOptions
- FlingOptions
- ClickOptions
- LongClickOptions
- PinchOptions
- SwipeOptions
- ScrollGestureOptions
- ScrollElementToElementOpts
- ScrollOptions
- DeepLinkOpts
- AcceptAlertOptions
- DismissAlertOptions
- TypingOptions
- ReplaceValueOptions
- InstallMultipleApksOptions
- BackgroundAppOptions
- PressKeyOptions
- ScreenshotsOpts
- ActionArgs
- SetClipboardOpts
- GetAppStringsOptions


Based on appium/appium-android-driver#982
github-actions bot pushed a commit to appium/appium-uiautomator2-driver that referenced this pull request Feb 1, 2025
## [4.0.0](v3.10.0...v4.0.0) (2025-02-01)

### ⚠ BREAKING CHANGES

* The following methods and properties were **removed**:
- mobileSetClipboard -> replaced by setClipboard
- mobileGetClipboard -> replaced by getClipboard
- executeMobile -> replaced by execute (the` script` argument must also be changed to start with `mobile: `)
- mobileCommandsMapping -> replaced by executeMethodsMap
- mobileGetAppStrings -> replaced by getStrings
* The following methods were **changed**:
- mobileDragGesture
- mobileFlingGesture
- mobileDoubleClickGesture
- mobileClickGesture
- mobilePinchOpenGesture
- mobilePinchCloseGesture
- mobileSwipeGesture
- mobileScrollGesture
- mobileScrollBackTo
- mobileScroll
- mobileDeepLink
- mobileAcceptAlert
- mobileDismissAlert
- mobileType
- mobileReplaceElementValue
- mobileInstallMultipleApks
- mobileBackgroundApp
- mobilePressKey
- mobileScreenshots
- mobileScheduleAction
- mobileUnscheduleAction
- mobileGetActionHistory
* The following obsolete type definitions were **removed**:
- DragOptions
- FlingOptions
- ClickOptions
- LongClickOptions
- PinchOptions
- SwipeOptions
- ScrollGestureOptions
- ScrollElementToElementOpts
- ScrollOptions
- DeepLinkOpts
- AcceptAlertOptions
- DismissAlertOptions
- TypingOptions
- ReplaceValueOptions
- InstallMultipleApksOptions
- BackgroundAppOptions
- PressKeyOptions
- ScreenshotsOpts
- ActionArgs
- SetClipboardOpts
- GetAppStringsOptions

Based on appium/appium-android-driver#982

### Features

* Add support of executeMethodMap ([#863](#863)) ([4c45c3a](4c45c3a))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants