Skip to content

Get rid of "Android" plugin dependency #934 #935

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

Conversation

Vassiliy-Kudryashov
Copy link
Member

@Vassiliy-Kudryashov Vassiliy-Kudryashov commented Sep 15, 2022

Description

Utility methods from com.android.* were replaced to platform API alternatives plus reflection.

Fixes #934

  • Refactoring

How Has This Been Tested?

Manual Scenario

See the steps in relevant issue

Checklist (remove irrelevant options):

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • No new warnings

@Vassiliy-Kudryashov Vassiliy-Kudryashov linked an issue Sep 15, 2022 that may be closed by this pull request
@@ -37,10 +37,19 @@ object IntelliJApiHelper {
private val isAndroidPluginAvailable: Boolean = !PluginManagerCore.isDisabled(PluginId.getId("org.jetbrains.android"))

fun isAndroidStudio(): Boolean =
isAndroidPluginAvailable && IdeInfo.getInstance().isAndroidStudio
isAndroidPluginAvailable && ("AndroidStudio" == PlatformUtils.getPlatformPrefix())
Copy link
Collaborator

Choose a reason for hiding this comment

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

We need to move AS-specific code in a separate Gradle sub-project in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Get rid of "Android" plugin dependency
2 participants