Skip to content

Commit

Permalink
Merge pull request #131 from Grigory-Rylov/support_AS_242
Browse files Browse the repository at this point in the history
support AS 242
  • Loading branch information
Grigory-Rylov authored Jan 15, 2025
2 parents c5dd76b + a3a2dbe commit 43d93c9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ studioCompilePath=/Applications/Android Studio.app/Contents

pluginGroup = com.github.grishberg
pluginName = android-methods-profiler
yampVersion = 24.10.19
yampVersion = 25.01.09

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild = 231
pluginUntilBuild = 241.*
pluginSinceBuild = 223
pluginUntilBuild = 242.*

# IntelliJ Platform Properties -> https://github.com/JetBrains/gradle-intellij-plugin#intellij-platform-properties
platformType = AI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ class PluginProjectInfo(
override val activityName: String?

init {
val facets = getAndroidFacets(project)
val facets = try{
getAndroidFacets(project)
} catch (e: Exception) {
logger.e("getAndroidFacets error", e)
emptyList()
}
packageName = createPackageName(facets)
val devices = AndroidSdkUtils.getDebugBridge(project)?.devices ?: emptyArray()
activityName = try {
Expand Down

0 comments on commit 43d93c9

Please sign in to comment.