Commit Graph

11 Commits

Author SHA1 Message Date
2341596de4 fix(deps): update dependency androidx.appcompat:appcompat to v1.7.0-alpha03 2024-03-14 14:46:27 +00:00
83852c33d3 fix(deps): update dependency androidx.core:core-ktx to v1.12.0 2023-10-28 16:02:48 +00:00
42f5d906fa fix(deps): update dependency androidx.activity:activity-compose to v1.8.0 2023-10-28 15:30:37 +00: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
Igor Demin
34847c6a3e Update Android project
- update AGP
- update targetSdk=34
- update versions
- update Gradle
- targetSdk in library projects is deprecated
2023-08-25 12:51:32 +02:00
Alexey Tsvetkov
e0647e6aa2 Replace cocoapods with regular framework 2023-08-16 23:02:32 +02:00
dima.avdeev
c20faa0995
Gradle, android -> androidTarget (#20) 2023-07-27 15:09:17 +03:00
Nikita Lipsky
0673d97a0d Remove internal from common public @Composable as it is not required for 1.4.0-rc03 2023-04-07 14:53:50 +03:00
Sebastian Aigner
d2f327f649 Add Compose Multiplatform XML Vector Graphics and use it . 2023-03-27 16:54:48 +02:00
Sebastian Aigner
9108e078b7 Add file to resources directory to make sure it is included in the template. 2023-03-26 16:49:57 +02:00
Nikita Lipsky
a133881345 Compose Multiplatform Mobile project template 2023-03-23 15:44:18 +04:00