diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6ca81200..db6f03e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,6 @@ jobs: - uses: actions/setup-java@v4 with: distribution: 'zulu' - java-version: 11 + java-version: 21 - uses: gradle/actions/setup-gradle@v3 - run: ./gradlew build diff --git a/build.gradle.kts b/build.gradle.kts index 67bc048b..9da025f5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,8 +14,8 @@ repositories { dependencies { implementation("com.google.guava:guava:33.0.0-jre") - implementation("com.android.tools:sdk-common:27.2.2") - implementation("com.android.tools:common:27.2.2") + implementation("com.android.tools:sdk-common:31.2.2") + implementation("com.android.tools:common:31.2.2") implementation("com.squareup:kotlinpoet:1.16.0") implementation("org.ogce:xpp3:1.1.6") @@ -27,7 +27,7 @@ tasks.test { } java { - toolchain.languageVersion = JavaLanguageVersion.of(8) + toolchain.languageVersion = JavaLanguageVersion.of(11) } publishing { diff --git a/src/main/kotlin/br/com/devsrsouza/svg2compose/Svg2Compose.kt b/src/main/kotlin/br/com/devsrsouza/svg2compose/Svg2Compose.kt index ae6d2995..e32c7a90 100644 --- a/src/main/kotlin/br/com/devsrsouza/svg2compose/Svg2Compose.kt +++ b/src/main/kotlin/br/com/devsrsouza/svg2compose/Svg2Compose.kt @@ -66,7 +66,7 @@ object Svg2Compose { val parsedFile = File(drawableDir, "${iconName}.xml") parsedFile.parentFile.mkdirs() - Svg2Vector.parseSvgToXml(it, parsedFile.outputStream()) + Svg2Vector.parseSvgToXml(it.toPath(), parsedFile.outputStream()) it to parsedFile }.toList()