Browse Source

Add IDE resolution warning for examples sharing JVM & Android code. (#49)

Co-authored-by: Sebastian Aigner <sebastian.aigner@jetbrains.com>
pull/50/head
Sebastian Aigner 4 years ago committed by GitHub
parent
commit
c151746e53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 15
      examples/imageviewer/common/src/commonMain/kotlin/example/imageviewer/model/ImageRepository.kt
  2. 14
      examples/imageviewer/common/src/commonMain/kotlin/example/imageviewer/model/Miniatures.kt
  3. 14
      examples/imageviewer/common/src/commonMain/kotlin/example/imageviewer/utils/Network.kt
  4. 15
      examples/issues/common/src/commonMain/kotlin/androidx/ui/examples/jetissues/data/IssuesRepository.kt
  5. 14
      examples/issues/common/src/commonMain/kotlin/androidx/ui/examples/jetissues/view/JetIssuesView.kt

15
examples/imageviewer/common/src/commonMain/kotlin/example/imageviewer/model/ImageRepository.kt

@ -1,3 +1,18 @@
// READ ME FIRST!
//
// Code in this file is shared between the Android and Desktop JVM targets.
// Kotlin's hierarchical multiplatform projects currently
// don't support sharing code depending on JVM declarations.
//
// You can follow the progress for HMPP JVM & Android intermediate source sets here:
// https://youtrack.jetbrains.com/issue/KT-42466
//
// The workaround used here to access JVM libraries causes IntelliJ IDEA to not
// resolve symbols in this file properly.
//
// Resolution errors in your IDE do not indicate a problem with your setup.
package example.imageviewer.model
import example.imageviewer.core.Repository

14
examples/imageviewer/common/src/commonMain/kotlin/example/imageviewer/model/Miniatures.kt

@ -1,3 +1,17 @@
// READ ME FIRST!
//
// Code in this file is shared between the Android and Desktop JVM targets.
// Kotlin's hierarchical multiplatform projects currently
// don't support sharing code depending on JVM declarations.
//
// You can follow the progress for HMPP JVM & Android intermediate source sets here:
// https://youtrack.jetbrains.com/issue/KT-42466
//
// The workaround used here to access JVM libraries causes IntelliJ IDEA to not
// resolve symbols in this file properly.
//
// Resolution errors in your IDE do not indicate a problem with your setup.
package example.imageviewer.model

14
examples/imageviewer/common/src/commonMain/kotlin/example/imageviewer/utils/Network.kt

@ -1,3 +1,17 @@
// READ ME FIRST!
//
// Code in this file is shared between the Android and Desktop JVM targets.
// Kotlin's hierarchical multiplatform projects currently
// don't support sharing code depending on JVM declarations.
//
// You can follow the progress for HMPP JVM & Android intermediate source sets here:
// https://youtrack.jetbrains.com/issue/KT-42466
//
// The workaround used here to access JVM libraries causes IntelliJ IDEA to not
// resolve symbols in this file properly.
//
// Resolution errors in your IDE do not indicate a problem with your setup.
package example.imageviewer.utils
import java.net.InetAddress

15
examples/issues/common/src/commonMain/kotlin/androidx/ui/examples/jetissues/data/IssuesRepository.kt

@ -1,3 +1,18 @@
// READ ME FIRST!
//
// Code in this file is shared between the Android and Desktop JVM targets.
// Kotlin's hierarchical multiplatform projects currently
// don't support sharing code depending on JVM declarations.
//
// You can follow the progress for HMPP JVM & Android intermediate source sets here:
// https://youtrack.jetbrains.com/issue/KT-42466
//
// The workaround used here to access JVM libraries causes IntelliJ IDEA to not
// resolve symbols in this file properly.
//
// Resolution errors in your IDE do not indicate a problem with your setup.
package androidx.ui.examples.jetissues.data
import androidx.ui.examples.jetissues.query.IssueQuery

14
examples/issues/common/src/commonMain/kotlin/androidx/ui/examples/jetissues/view/JetIssuesView.kt

@ -1,3 +1,17 @@
// READ ME FIRST!
//
// Code in this file is shared between the Android and Desktop JVM targets.
// Kotlin's hierarchical multiplatform projects currently
// don't support sharing code depending on JVM declarations.
//
// You can follow the progress for HMPP JVM & Android intermediate source sets here:
// https://youtrack.jetbrains.com/issue/KT-42466
//
// The workaround used here to access JVM libraries causes IntelliJ IDEA to not
// resolve symbols in this file properly.
//
// Resolution errors in your IDE do not indicate a problem with your setup.
package androidx.ui.examples.jetissues.view
import androidx.compose.foundation.Box

Loading…
Cancel
Save