-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relocate a bundled KotlinPoet to the internal package
- Loading branch information
Showing
8 changed files
with
71 additions
and
2 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
25 changes: 25 additions & 0 deletions
25
gradle-plugins/compose/src/test/test-projects/misc/bundledKotlinPoet/app/build.gradle.kts
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
plugins { | ||
kotlin("multiplatform") | ||
id("org.jetbrains.compose") | ||
id("com.github.gmazzo.buildconfig") | ||
} | ||
|
||
group = "app.group" | ||
|
||
kotlin { | ||
jvm() | ||
|
||
sourceSets { | ||
commonMain { | ||
dependencies { | ||
implementation(compose.runtime) | ||
implementation(compose.material) | ||
implementation(compose.components.resources) | ||
} | ||
} | ||
} | ||
} | ||
|
||
buildConfig { | ||
buildConfigField(String::class.java, "str", "") | ||
} |
9 changes: 9 additions & 0 deletions
9
...ns/compose/src/test/test-projects/misc/bundledKotlinPoet/app/src/commonMain/kotlin/App.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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import androidx.compose.material.Text | ||
import androidx.compose.runtime.Composable | ||
import app.group.empty_res.generated.resources.Res | ||
|
||
@Composable | ||
fun App() { | ||
val res = Res | ||
Text("text") | ||
} |
4 changes: 4 additions & 0 deletions
4
gradle-plugins/compose/src/test/test-projects/misc/bundledKotlinPoet/build.gradle.kts
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
plugins { | ||
kotlin("multiplatform").apply(false) | ||
id("org.jetbrains.compose").apply(false) | ||
} |
1 change: 1 addition & 0 deletions
1
gradle-plugins/compose/src/test/test-projects/misc/bundledKotlinPoet/gradle.properties
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
org.gradle.jvmargs=-Xmx8096M |
24 changes: 24 additions & 0 deletions
24
gradle-plugins/compose/src/test/test-projects/misc/bundledKotlinPoet/settings.gradle.kts
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
rootProject.name = "bundled_kp" | ||
include(":app") | ||
pluginManagement { | ||
repositories { | ||
mavenLocal() | ||
gradlePluginPortal() | ||
google() | ||
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") | ||
} | ||
plugins { | ||
id("org.jetbrains.kotlin.multiplatform").version("KOTLIN_VERSION_PLACEHOLDER") | ||
id("org.jetbrains.compose").version("COMPOSE_GRADLE_PLUGIN_VERSION_PLACEHOLDER") | ||
id("com.github.gmazzo.buildconfig").version("5.3.5") | ||
} | ||
} | ||
dependencyResolutionManagement { | ||
repositories { | ||
mavenLocal() | ||
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev") | ||
mavenCentral() | ||
gradlePluginPortal() | ||
google() | ||
} | ||
} |
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