Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.105.0"
".": "0.105.1"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 169
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-1d44bb7fad99487af1161eb24dfd5369440eda7e80ed237cbc1acc6802a7d212.yml
openapi_spec_hash: 1b6b6215b60094b76b91c56b925a251a
config_hash: e68a052fd109c0885732114753abc739
config_hash: 768e8f0faa1a21e26b07e6cdc395cebf
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Changelog

## 0.105.1 (2025-09-15)

Full Changelog: [v0.105.0...v0.105.1](https://github.com/lithic-com/lithic-java/compare/v0.105.0...v0.105.1)

### Bug Fixes

* **client:** incorrect `getPackageVersion` impl ([a70d854](https://github.com/lithic-com/lithic-java/commit/a70d854e542a55828d246ef266c4d1ba49d7bc95))


### Chores

* **internal:** codegen related update ([2a2668c](https://github.com/lithic-com/lithic-java/commit/2a2668c5c0a415c518caccaf4a463ec9af92a567))
* **internal:** codegen related update ([97051d9](https://github.com/lithic-com/lithic-java/commit/97051d95c205b511461c7cd891abcf9416e35341))
* **internal:** codegen related update ([5d6f0c6](https://github.com/lithic-com/lithic-java/commit/5d6f0c66ec9f014020b266a413ceffbcbfc0cee1))

## 0.105.0 (2025-09-10)

Full Changelog: [v0.104.0...v0.105.0](https://github.com/lithic-com/lithic-java/compare/v0.104.0...v0.105.0)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- x-release-please-start-version -->

[![Maven Central](https://img.shields.io/maven-central/v/com.lithic.api/lithic-java)](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.105.0)
[![javadoc](https://javadoc.io/badge2/com.lithic.api/lithic-java/0.105.0/javadoc.svg)](https://javadoc.io/doc/com.lithic.api/lithic-java/0.105.0)
[![Maven Central](https://img.shields.io/maven-central/v/com.lithic.api/lithic-java)](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.105.1)
[![javadoc](https://javadoc.io/badge2/com.lithic.api/lithic-java/0.105.1/javadoc.svg)](https://javadoc.io/doc/com.lithic.api/lithic-java/0.105.1)

<!-- x-release-please-end -->

Expand All @@ -13,7 +13,7 @@ The Lithic Java SDK is similar to the Lithic Kotlin SDK but with minor differenc

<!-- x-release-please-start-version -->

The REST API documentation can be found on [docs.lithic.com](https://docs.lithic.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.lithic.api/lithic-java/0.105.0).
The REST API documentation can be found on [docs.lithic.com](https://docs.lithic.com). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.lithic.api/lithic-java/0.105.1).

<!-- x-release-please-end -->

Expand All @@ -24,7 +24,7 @@ The REST API documentation can be found on [docs.lithic.com](https://docs.lithic
### Gradle

```kotlin
implementation("com.lithic.api:lithic-java:0.105.0")
implementation("com.lithic.api:lithic-java:0.105.1")
```

### Maven
Expand All @@ -33,7 +33,7 @@ implementation("com.lithic.api:lithic-java:0.105.0")
<dependency>
<groupId>com.lithic.api</groupId>
<artifactId>lithic-java</artifactId>
<version>0.105.0</version>
<version>0.105.1</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ repositories {

allprojects {
group = "com.lithic.api"
version = "0.105.0" // x-release-please-version
version = "0.105.1" // x-release-please-version
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

package com.lithic.api.core

import java.util.Properties
import com.lithic.api.client.LithicClient

fun getOsArch(): String {
val osArch = System.getProperty("os.arch")
Expand All @@ -16,7 +16,7 @@ fun getOsArch(): String {
"x86_64" -> "x64"
"arm" -> "arm"
"aarch64" -> "arm64"
else -> "other:${osArch}"
else -> "other:$osArch"
}
}

Expand All @@ -30,13 +30,13 @@ fun getOsName(): String {
osName.startsWith("Linux") -> "Linux"
osName.startsWith("Mac OS") -> "MacOS"
osName.startsWith("Windows") -> "Windows"
else -> "Other:${osName}"
else -> "Other:$osName"
}
}

fun getOsVersion(): String = System.getProperty("os.version", "unknown")

fun getPackageVersion(): String =
Properties::class.java.`package`.implementationVersion ?: "unknown"
LithicClient::class.java.`package`.implementationVersion ?: "unknown"

fun getJavaVersion(): String = System.getProperty("java.version", "unknown")
39 changes: 39 additions & 0 deletions scripts/fast-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/usr/bin/env bash

set -euo pipefail

cd "$(dirname "$0")/.."

if [ $# -eq 0 ]; then
echo "Usage: $0 <file-with-paths> [additional-formatter-args...]"
echo "The file should contain one file path per line"
exit 1
fi

FILE_LIST="$1"

if [ ! -f "$FILE_LIST" ]; then
echo "Error: File '$FILE_LIST' not found"
exit 1
fi

if ! command -v ktfmt-fast-format &> /dev/null; then
echo "Error: ktfmt-fast-format not found"
exit 1
fi

# Process Kotlin files
kt_files=$(grep -E '\.kt$' "$FILE_LIST" | grep -v './buildSrc/build/')
kt_files=$(grep -E '\.kt$' "$FILE_LIST" | grep -v './buildSrc/build/')
echo "==> Found $(echo "$kt_files" | wc -l) Kotlin files:"

if [[ -n "$kt_files" ]]; then
echo "==> will format Kotlin files"
echo "$kt_files" | tr '\n' '\0' | xargs -0 ktfmt-fast-format --kotlinlang-style "$@"
else
echo "No Kotlin files to format -- expected outcome during incremental formatting"
fi

# TODO(mbudayr): support palantir-java-format
# Process Java files
# grep -E '\.java$' "$FILE_LIST" | grep -v './buildSrc/build/' | tr '\n' '\0' | xargs -0 -r palantir-java-format --palantir --replace "$@"