-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New AGP target migration #5466
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
Merged
Merged
New AGP target migration #5466
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
25b4240
Update Gradle and AGP test versions; adjust exclusions accordingly
terrakok fe5ce5b
Replace `com.android.application` with `com.android.kotlin.multiplatf…
terrakok 5771850
Adjust test cases for new configurations.
terrakok b9da688
Update Gradle test version to 9.2.0.
terrakok b9fd7ab
Update Gradle to 8.13 and 9.2.0; AGP to 8.11.2, 8.12.3, and 9.0.0-alp…
terrakok 7ad9e92
Simplify test projects by removing explicit Kotlin version configurat…
terrakok bdd0b7c
Remove `jscanvas` experimental flag from test projects.
terrakok 2b7e3fa
Lower `minSdk` to 23 and align `compileSdk` to 35 in test projects.
terrakok 372d93c
Update AGP test version to 9.0.0-alpha13; adjust exclusions accordingly.
terrakok 2fb1184
Remove explicit `jvmToolchain` configuration from test projects.
terrakok f2e5a7e
Reintroduce `jvmToolchain` configuration with Java 11 in test projects.
terrakok e036ee3
Add conditional check in `ResourcesTest` for Windows+Gradle 9.0.0 to …
terrakok e18b370
Update `isMultiplatformAndroidTarget` to use `KotlinMultiplatformAndr…
terrakok a12196c
Skip `testAndroidAppWithResources` for Windows with Gradle 9.0.0; add…
terrakok File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
203 changes: 92 additions & 111 deletions
203
...ins/compose/src/test/kotlin/org/jetbrains/compose/test/tests/integration/ResourcesTest.kt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
18 changes: 6 additions & 12 deletions
18
gradle-plugins/compose/src/test/test-projects/application/nonJvm/build.gradle
This file contains hidden or 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,23 +1,17 @@ | ||
| plugins { | ||
| id "com.android.application" | ||
| id "com.android.kotlin.multiplatform.library" | ||
| id "org.jetbrains.kotlin.multiplatform" | ||
| id "org.jetbrains.kotlin.plugin.compose" | ||
| id "org.jetbrains.compose" | ||
| } | ||
|
|
||
| kotlin { | ||
| androidTarget() | ||
| androidLibrary { | ||
| namespace = "org.jetbrains.compose.testapp" | ||
| compileSdk = 35 | ||
| minSdk = 23 | ||
| } | ||
| iosX64() | ||
| iosArm64() | ||
| iosSimulatorArm64() | ||
| } | ||
|
|
||
| android { | ||
| namespace = "org.jetbrains.compose.testapp" | ||
| compileSdk = 35 | ||
|
|
||
| defaultConfig { | ||
| minSdk = 23 | ||
| targetSdk = 35 | ||
| } | ||
| } |
This file contains hidden or 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
21 changes: 21 additions & 0 deletions
21
...ns/compose/src/test/test-projects/misc/androidAppWithResources/appModule/build.gradle.kts
This file contains hidden or 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,21 @@ | ||
| plugins { | ||
| id("org.jetbrains.compose") | ||
| kotlin("plugin.compose") | ||
| id("com.android.application") | ||
| } | ||
|
|
||
| android { | ||
| namespace = "me.sample.app" | ||
| compileSdk = 35 | ||
| defaultConfig { | ||
| applicationId = "org.example.project" | ||
| minSdk = 23 | ||
| targetSdk = 35 | ||
| versionCode = 1 | ||
| versionName = "1.0" | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| implementation(project(":featureModule")) | ||
| } |
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or 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
1 change: 0 additions & 1 deletion
1
gradle-plugins/compose/src/test/test-projects/misc/commonResources/gradle.properties
This file contains hidden or 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,4 +1,3 @@ | ||
| org.gradle.jvmargs=-Xmx8096M | ||
| android.useAndroidX=true | ||
| org.jetbrains.compose.experimental.jscanvas.enabled=true | ||
| org.jetbrains.compose.resources.content.hash.generation.disable=true |
This file contains hidden or 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
48 changes: 48 additions & 0 deletions
48
...mpose/src/test/test-projects/misc/fullTargetsAppWithResources/androidApp/build.gradle.kts
This file contains hidden or 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,48 @@ | ||
| plugins { | ||
| id("com.android.application") | ||
| } | ||
|
|
||
| android { | ||
| namespace = "org.company.app.androidApp" | ||
| compileSdk = 35 | ||
|
|
||
| defaultConfig { | ||
| minSdk = 23 | ||
| targetSdk = 36 | ||
|
|
||
| applicationId = "org.company.app.androidApp" | ||
| versionCode = 1 | ||
| versionName = "1.0.0" | ||
| } | ||
| signingConfigs { | ||
| create("testkey") { | ||
| storeFile = project.file("key/debug.keystore") | ||
| storePassword = "android" | ||
| keyAlias = "androiddebugkey" | ||
| keyPassword = "android" | ||
| } | ||
| } | ||
| buildTypes { | ||
| getByName("release") { | ||
| isMinifyEnabled = false | ||
| signingConfig = signingConfigs.getByName("testkey") | ||
| } | ||
| getByName("debug") { | ||
| signingConfig = signingConfigs.getByName("testkey") | ||
| } | ||
| } | ||
| flavorDimensions += "version" | ||
| productFlavors { | ||
| create("demo") | ||
| create("full") | ||
| } | ||
| lint { | ||
| checkReleaseBuilds = false | ||
| } | ||
| } | ||
|
|
||
|
|
||
|
|
||
| dependencies { | ||
| implementation(project(":sharedUI")) | ||
| } |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...odule/src/androidMain/AndroidManifest.xml → ...s/androidApp/src/main/AndroidManifest.xml
This file contains hidden or 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,4 +1,4 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <manifest> | ||
| <application/> | ||
| </manifest> | ||
| </manifest> |
13 changes: 13 additions & 0 deletions
13
...isc/fullTargetsAppWithResources/androidApp/src/main/kotlin/org/company/app/AppActivity.kt
This file contains hidden or 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,13 @@ | ||
| package org.company.app | ||
|
|
||
| import androidx.compose.runtime.Composable | ||
| import multiplatform_app.sharedui.generated.resources.Res | ||
| import multiplatform_app.sharedui.generated.resources.cyclone | ||
| import org.jetbrains.compose.resources.stringResource | ||
|
|
||
|
|
||
| @Composable | ||
| fun Foo() { | ||
| val s = stringResource(Res.string.cyclone) | ||
| App() | ||
| } |
9 changes: 9 additions & 0 deletions
9
...-plugins/compose/src/test/test-projects/misc/fullTargetsAppWithResources/build.gradle.kts
This file contains hidden or 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 @@ | ||
| plugins { | ||
| id("com.android.kotlin.multiplatform.library").apply(false) | ||
| id("com.android.application").apply(false) | ||
| id("org.jetbrains.kotlin.multiplatform").apply(false) | ||
| id("org.jetbrains.kotlin.android").apply(false) | ||
| id("org.jetbrains.kotlin.jvm").apply(false) | ||
| id("org.jetbrains.kotlin.plugin.compose").apply(false) | ||
| id("org.jetbrains.compose").apply(false) | ||
| } |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.