6 Commits

Author SHA1 Message Date
22560c304e chore(deps): update plugin org.gradle.toolchains.foojay-resolver-convention to v0.7.0 2023-10-28 15:30:35 +00:00
3421b66613
feat: 升级依赖
Signed-off-by: 小草林(田梓萱) <xcl@xuegao-tzx.top>
2023-10-28 23:24:45 +08:00
Igor Demin
a8496f08ee Add org.gradle.toolchains.foojay-resolver-convention
According to https://developer.android.com/build/jdks we should:

1. [use JDK 17 for API 34](https://developer.android.com/build/jdks#compileSdk)
2. [use toolchain](https://developer.android.com/build/jdks#toolchain):
```
We recommend that you always specify the Java toolchain, and either ensure that the specified JDK is installed, or add a toolchain resolver to your build.
```

As we don't want to force people to have JDK 17 on their machine, we apply toolchain resolver that is recommended by Gradle:
```
id("org.gradle.toolchains.foojay-resolver-convention") version("0.4.0")
```

## Test
1. Remove JDK 17 from the computer, remove `jvmToolchain(17)`
2. Run `./gradlew assembleDebug`
3. It should fail with:
```
> Could not create task ':androidApp:compileDebugJavaWithJavac'.
   > Failed to calculate the value of task ':androidApp:compileDebugJavaWithJavac' property 'javaCompiler'.
      > No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific} for WINDOWS on x86_64.
         > No locally installed toolchains match and toolchain download repositories have not been configured.
```
4. restore `jvmToolchain(17)`
5. Run `./gradlew assembleDebug` again
6. It should succeed

## Issues
Fixes https://github.com/JetBrains/compose-multiplatform/issues/3615
2023-09-12 21:19:31 +02:00
Alexey Tsvetkov
e0647e6aa2 Replace cocoapods with regular framework 2023-08-16 23:02:32 +02:00
dima.avdeev
29ce600cb8
fix iOS build with multiple modules (#14)
Describe problem here https://github.com/dima-avdeev-jb/kotlin-gradle-plugin-ios-root-project-name-with-space
2023-05-03 17:29:54 +03:00
Nikita Lipsky
a133881345 Compose Multiplatform Mobile project template 2023-03-23 15:44:18 +04:00