Skip to content

Commit

Permalink
Remove snapshots-processor and all KSP-related dependencies/references (
Browse files Browse the repository at this point in the history
#148)

* Remove snapshots-processor and all KSP-related dependencies/references

* Tweak
  • Loading branch information
rbro112 authored May 24, 2024
1 parent 40508a6 commit 53391c3
Show file tree
Hide file tree
Showing 61 changed files with 1 addition and 2,073 deletions.
1 change: 0 additions & 1 deletion .github/workflows/snapshots-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
paths:
- gradle/**
- snapshots/**
- snapshots-processor/**
- snapshots-shared/**

jobs:
Expand Down
55 changes: 0 additions & 55 deletions .github/workflows/snapshots-processor-checks.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .github/workflows/snapshots-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ jobs:
distribution: 'adopt'
- name: Sanity check snapshots test
run: ./gradlew :snapshots:snapshots:test -Pandroid.useAndroidX=true
- name: Sanity check snapshots-processor test
run: ./gradlew :snapshots:snapshots-processor:test
- name: Sanity check snapshots-shared test
run: ./gradlew :snapshots:snapshots-shared:test
- name: Deploy snapshots-shared
Expand All @@ -41,6 +39,3 @@ jobs:
run: ./gradlew :snapshots:snapshots-annotations:publishReleasePublicationToSonatypeStagingRepository
- name: Deploy snapshots
run: ./gradlew :snapshots:snapshots:publishReleasePublicationToSonatypeStagingRepository -Pandroid.useAndroidX=true
# Temporarily disabled for 1.0 release, TODO (ryan) fully remove once 1.0 stable is released
# - name: Deploy snapshots-processor
# run: ./gradlew :snapshots:snapshots-processor:publishReleasePublicationToSonatypeStagingRepository
13 changes: 0 additions & 13 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ compose-bom = "2023.10.01"
compose-compiler-extension = "1.5.10"
detekt = "1.22.0"
kotlin = "1.9.22"
kotlinpoet = "1.14.2"
kotlin-compile-testing = "1.5.0"
ksp = "1.9.22-1.0.17"
okhttp = "4.10.0"
junit-jupiter = "5.8.2"

Expand All @@ -27,9 +24,7 @@ buildconfig = "com.github.gmazzo.buildconfig:3.0.3"
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-kapt = { id = "org.jetbrains.kotlin.kapt", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
gradle-publish = { id = "com.gradle.plugin-publish", version = "0.20.0" }
grgit = { id = "org.ajoberstar.grgit", version = "5.0.0" }
plugin-best-practices = { id = "com.autonomousapps.plugin-best-practices-plugin", version = "0.10" }
Expand All @@ -51,9 +46,6 @@ androidx-tracing-ktx = { module = "androidx.tracing:tracing-ktx", version = "1.1

assertj = "org.assertj:assertj-core:3.21.0"

compile-testing = { module = "com.github.tschuchortdev:kotlin-compile-testing", version.ref = "kotlin-compile-testing" }
compile-testing-ksp = { module = "com.github.tschuchortdev:kotlin-compile-testing-ksp", version.ref = "kotlin-compile-testing" }

compose-bom = { module = "androidx.compose:compose-bom", version.ref = "compose-bom" }
compose-runtime = { group = "androidx.compose.runtime", name = "runtime" }
compose-material = { group = "androidx.compose.material3", name = "material3" }
Expand Down Expand Up @@ -83,11 +75,6 @@ kotlinx-serialization = "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.1"

ktor-network = { module = "io.ktor:ktor-network", version = "2.1.1" }

kotlinpoet = { module = "com.squareup:kotlinpoet", version.ref = "kotlinpoet" }
kotlinpoet-ksp = { module = "com.squareup:kotlinpoet-ksp", version.ref = "kotlinpoet" }
ksp-api = { module = "com.google.devtools.ksp:symbol-processing-api", version.ref = "ksp" }
ksp-gradle-plugin = { module = "com.google.devtools.ksp:com.google.devtools.ksp.gradle.plugin", version.ref = "ksp" }

okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okhttp" }
okhttp-mockwebserver = { module = "com.squareup.okhttp3:mockwebserver", version.ref = "okhttp" }

Expand Down
1 change: 0 additions & 1 deletion performance/sample/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.android)
alias(libs.plugins.ksp)
id("com.emergetools.android")
}

Expand Down
2 changes: 0 additions & 2 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ include(
":snapshots",
":snapshots:snapshots",
":snapshots:snapshots-annotations",
":snapshots:snapshots-processor",
":snapshots:snapshots-processor-test",
":snapshots:snapshots-shared",
":snapshots:sample",
":snapshots:sample:app",
Expand Down
12 changes: 1 addition & 11 deletions snapshots/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,14 @@ emerge {

See [gradle-plugin](../gradle-plugin/README.md) for more information.

### Add Snapshot SDK(s)
### Add Snapshot SDK

Add the Emerge snapshot SDK as an `androidTest` dependency to your application module. For automatic
compose `@Preview` snapshot generation, add the KSP processor as a `ksp` dependency.

```kotlin
plugins {
// For Compose @Preview snapshot generation:
id("com.google.devtools.ksp")
}

dependencies {
androidTestImplementation("com.emergetools.snapshots:snapshots:{latest_version}")
// For Compose @Preview snapshot generation from the main source set:
ksp("com.emergetools.snapshots:snapshots-processor:{latest_version}")
}
```

Expand Down Expand Up @@ -129,7 +122,6 @@ snapshot tests from the `androidTest` source set.
```kotlin
plugins {
id("com.emergetools.android")
id("com.google.devtools.ksp")
}

emerge {
Expand All @@ -138,8 +130,6 @@ emerge {

dependencies {
androidTestImplementation("com.emergetools.snapshots:snapshots:{latest_version}")
// For Compose @Preview snapshot generation from androidTest source set:
kspAndroidTest("com.emergetools.snapshots:snapshots-processor:{latest_version}")
}
```

Expand Down
45 changes: 0 additions & 45 deletions snapshots/snapshots-processor-test/build.gradle.kts

This file was deleted.

This file was deleted.

Loading

0 comments on commit 53391c3

Please sign in to comment.