Skip to content

Commit

Permalink
Update android sdk common version, gradle and kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
DevSrSouza committed Sep 15, 2024
1 parent 8a145f5 commit 214a121
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
16 changes: 11 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
kotlin("jvm") version "1.5.21"
kotlin("jvm") version "1.9.20"
id("maven-publish")
}

group = "br.com.devsrsouza"
version = "0.7.0"
version = "0.10.0"

repositories {
mavenCentral()
Expand All @@ -16,8 +16,8 @@ repositories {

dependencies {
implementation("com.google.guava:guava:23.0")
implementation("com.android.tools:sdk-common:27.2.0-alpha16")
implementation("com.android.tools:common:27.2.0-alpha16")
implementation("com.android.tools:sdk-common:31.6.0")
implementation("com.android.tools:common:31.6.0")
implementation("com.squareup:kotlinpoet:1.9.0")
implementation("org.ogce:xpp3:1.1.6")

Expand All @@ -29,7 +29,13 @@ tasks.test {
}

tasks.withType<KotlinCompile>() {
kotlinOptions.jvmTarget = "1.8"
kotlinOptions.jvmTarget = "11"
}

kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of("11"))
}
}

publishing {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
3 changes: 2 additions & 1 deletion src/main/kotlin/br/com/devsrsouza/svg2compose/Svg2Compose.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -88,6 +88,7 @@ object Svg2Compose {
icons.values,
groupClassName,
iconsPackage,
generatePreview
)

val memberNames = writer.generateTo(outputSourceDirectory) { true }
Expand Down

0 comments on commit 214a121

Please sign in to comment.