-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fixed KMP-Platforms and attribute information for InfoPanel Fixed warning log readability in KMP-modifier module Simplified the KMP-Attributes computation for KMP packages (remote or declared) Clarify ui events by using more accurate names Clarified tabs in InfoPanel, by changing tab name from Platforms to KMP-Platforms Refactor code for readability in PackageSearchInfoPanel (cherry picked from commit fac3e91)
- Loading branch information
Showing
11 changed files
with
364 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 17 additions & 44 deletions
61
plugin/gradle/kmp/src/main/kotlin/com/jetbrains/packagesearch/plugin/gradle/KMPAttributes.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,20 @@ | ||
package com.jetbrains.packagesearch.plugin.gradle | ||
|
||
import com.jetbrains.packagesearch.plugin.core.data.PackageSearchModuleVariant | ||
|
||
object KMPAttributes { | ||
val iosArm64 = PackageSearchModuleVariant.Attribute.StringAttribute("ios_arm64") | ||
val iosX64 = PackageSearchModuleVariant.Attribute.StringAttribute("ios_x64") | ||
val ios = PackageSearchModuleVariant.Attribute.NestedAttribute("iOS", listOf(iosArm64, iosX64)) | ||
|
||
val macosX64 = PackageSearchModuleVariant.Attribute.StringAttribute("macos_x64") | ||
val macosArm64 = PackageSearchModuleVariant.Attribute.StringAttribute("macos_arm64") | ||
val macos = PackageSearchModuleVariant.Attribute.NestedAttribute("macOs", listOf(macosX64, macosArm64)) | ||
|
||
val watchosArm32 = PackageSearchModuleVariant.Attribute.StringAttribute("watchos_arm32") | ||
val watchosArm64 = PackageSearchModuleVariant.Attribute.StringAttribute("watchos_arm64") | ||
val watchosX64 = PackageSearchModuleVariant.Attribute.StringAttribute("watchos_x64") | ||
val watchosDevice = | ||
PackageSearchModuleVariant.Attribute.NestedAttribute("watchOs", listOf(watchosArm32, watchosArm64)) | ||
val watchos = PackageSearchModuleVariant.Attribute.NestedAttribute("watchOs", listOf(watchosDevice, watchosX64)) | ||
|
||
val tvosArm64 = PackageSearchModuleVariant.Attribute.StringAttribute("tvos_arm64") | ||
val tvosX64 = PackageSearchModuleVariant.Attribute.StringAttribute("tvos_x64") | ||
val tvos = PackageSearchModuleVariant.Attribute.NestedAttribute("tvOs", listOf(tvosArm64, tvosX64)) | ||
|
||
val apple = PackageSearchModuleVariant.Attribute.NestedAttribute("Apple", listOf(ios, macos, watchos, tvos)) | ||
|
||
val jsLegacy = PackageSearchModuleVariant.Attribute.StringAttribute("jsLegacy") | ||
val jsIr = PackageSearchModuleVariant.Attribute.StringAttribute("jsIr") | ||
val js = PackageSearchModuleVariant.Attribute.NestedAttribute("JavaScript", listOf(jsLegacy, jsIr)) | ||
|
||
val linuxArm64 = PackageSearchModuleVariant.Attribute.StringAttribute("linuxArm64") | ||
val linuxX64 = PackageSearchModuleVariant.Attribute.StringAttribute("linuxX64") | ||
val linux = PackageSearchModuleVariant.Attribute.NestedAttribute("Linux", listOf(linuxArm64, linuxX64)) | ||
|
||
val android = PackageSearchModuleVariant.Attribute.StringAttribute("android") | ||
|
||
val androidArm32 = PackageSearchModuleVariant.Attribute.StringAttribute("androidArm32") | ||
val androidArm64 = PackageSearchModuleVariant.Attribute.StringAttribute("androidArm64") | ||
val androidX64 = PackageSearchModuleVariant.Attribute.StringAttribute("androidX64") | ||
val androidX86 = PackageSearchModuleVariant.Attribute.StringAttribute("androidX86") | ||
val androidNative = | ||
PackageSearchModuleVariant.Attribute.NestedAttribute( | ||
"Android Native", | ||
listOf(androidArm32, androidArm64, androidX64, androidX86) | ||
) | ||
|
||
} | ||
data class KmpAttributesGroups( | ||
val displayName: String, | ||
val aggregationKeyword: String = displayName, | ||
) | ||
|
||
val KMP_ATTRIBUTES_GROUPS = listOf( | ||
KmpAttributesGroups("iOS"), | ||
KmpAttributesGroups("macOS"), | ||
KmpAttributesGroups("tvOS"), | ||
KmpAttributesGroups("watchOS"), | ||
KmpAttributesGroups("JS"), | ||
KmpAttributesGroups("JVM"), | ||
KmpAttributesGroups("Linux"), | ||
KmpAttributesGroups("Android"), | ||
KmpAttributesGroups("WASM"), | ||
KmpAttributesGroups("Windows", "mingw"), | ||
) |
Oops, something went wrong.