Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ plugins {

id 'org.jetbrains.kotlin.android' version libs.versions.kotlin apply false
id "com.vanniktech.maven.publish" version libs.versions.mavenPublish apply false
id 'org.jetbrains.kotlin.plugin.compose' version libs.versions.kotlin apply false
// Just for Gradle Build, included build will be applied
id("io.github.takahirom.roborazzi") version "1.0.0" apply false
}
Expand Down
3 changes: 0 additions & 3 deletions gradle/android.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ android {
}
buildFeatures {
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}
testOptions {
unitTests {
includeAndroidResources = true
Expand Down
6 changes: 3 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ javaToolchain = "17"
javaTarget = "11"
agp = "7.3.1"
commons-compress = "1.23.0"
kotlin = "1.9.22"
kotlin = "2.0.0"
mavenPublish = "0.25.3"
composeCompiler = "1.5.10"
composeMultiplatform = "1.6.2"
composeMultiplatform = "1.6.11"
robolectric = "4.12.2"
robolectric-android-all = "Q-robolectric-5415296"

Expand Down Expand Up @@ -36,7 +36,7 @@ dropbox-differ = "0.0.2"
google-android-material = "1.5.0"
junit = "4.13.2"
ktor-serialization-kotlinx-xml = "2.3.11"
kotlinx-serialization = "1.6.3"
kotlinx-serialization = "1.7.2"
squareup-okhttp = "5.0.0-alpha.11"
kotlinx-io = "0.3.3"
webjar-material-design-icons = "4.0.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ class PreviewModule(
id("com.android.library")
id("org.jetbrains.compose")
id("io.github.takahirom.roborazzi")
id("org.jetbrains.kotlin.plugin.compose")
}

kotlin {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ android {

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}

buildTypes {
release {
Expand Down
1 change: 1 addition & 0 deletions roborazzi-compose-desktop/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id 'org.jetbrains.kotlin.multiplatform'
id 'org.jetbrains.compose'
id 'org.jetbrains.kotlin.plugin.compose'
}
if (System.getenv("INTEGRATION_TEST") != "true") {
pluginManager.apply("com.vanniktech.maven.publish")
Expand Down
2 changes: 1 addition & 1 deletion roborazzi-compose-ios/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id 'io.github.takahirom.roborazzi'
id("org.jetbrains.kotlin.plugin.serialization")
.version(libs.versions.kotlin)
id 'org.jetbrains.kotlin.plugin.compose'
}
if (System.getenv("INTEGRATION_TEST") != "true") {
pluginManager.apply("com.vanniktech.maven.publish")
Expand Down Expand Up @@ -43,7 +44,6 @@ kotlin {
dependencies {
implementation(compose.material3)
implementation(libs.kotlin.test)
implementation(libs.kotlin.test.junit)
}
}
}
Expand Down
1 change: 1 addition & 0 deletions roborazzi-compose-preview-scanner-support/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.kotlin.plugin.compose'
}
if (System.getenv("INTEGRATION_TEST") != "true") {
pluginManager.apply("com.vanniktech.maven.publish")
Expand Down
2 changes: 1 addition & 1 deletion roborazzi-compose/build.gradle
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.kotlin.plugin.compose'
}
if (System.getenv("INTEGRATION_TEST") != "true") {
pluginManager.apply("com.vanniktech.maven.publish")
}

// TODO: Use build-logic
apply from: rootProject.file('gradle/android.gradle')
android.buildFeatures.compose = true

android.namespace 'com.github.takahirom.roborazzi.compose'

Expand Down
3 changes: 0 additions & 3 deletions roborazzi-junit-rule/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ android {
}
buildFeatures {
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}
testOptions {
unitTests {
includeAndroidResources = true
Expand Down
5 changes: 1 addition & 4 deletions sample-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'io.github.takahirom.roborazzi'
id 'org.jetbrains.kotlin.plugin.compose'
}

android {
Expand All @@ -25,10 +26,6 @@ android {
}
buildFeatures {
viewBinding true
compose true
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}
testOptions {
unitTests {
Expand Down
1 change: 1 addition & 0 deletions sample-compose-desktop-jvm/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
kotlin("jvm")
id("org.jetbrains.compose")
id("io.github.takahirom.roborazzi")
id("org.jetbrains.kotlin.plugin.compose")
}

group = "com.github.takahirom.roborazzi.compose.desktop.jvm.sample"
Expand Down
1 change: 1 addition & 0 deletions sample-compose-desktop-multiplatform/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
kotlin("multiplatform")
id("org.jetbrains.compose")
id("io.github.takahirom.roborazzi")
id("org.jetbrains.kotlin.plugin.compose")
}

group = "com.github.takahirom.roborazzi.compose.desktop.kmp.sample"
Expand Down
7 changes: 1 addition & 6 deletions sample-generate-preview-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
// id("com.android.library")
id("org.jetbrains.kotlin.android")
id("io.github.takahirom.roborazzi")
id("org.jetbrains.kotlin.plugin.compose")
}

roborazzi {
Expand All @@ -27,12 +28,6 @@ android {

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildFeatures {
compose = true
}
composeOptions {
kotlinCompilerExtensionVersion = libs.versions.composeCompiler.get()
}

buildTypes {
release {
Expand Down