-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Finish migration of Android source set. * Configure the default OkHttp engine with ping interval support. * Expose function for making a single filter request. * Use varargs for the different Filter builder functions. * Add Kind 1111(comment) to list of kinds. Update README to show new API usage. * Remove Ktor-OkHttp engine ping config, until we find a reliable one. * NostrService refactor: Remove questionable and useless code. Move Eose and Relay error counts inside requestWithResult. Improve message handling. Break should be called when we receive an EOSE. Add stopService() API. * Add custom Ktor HTTP client support. Update and make adjustments to README. * Re-enable Maven publish plugin. * Add config for Jitpack CI builds. * Tests: Migrate to new APi definitions. * Disable publish at the module level. * Rename project to Ballast. Refactor accordingly. * Move to vanniktech publish plugin. Add a publish release workflow. * Enable Jitpack support and automate release publication. * Rename Tag properties to align with meaning in protocol specs.
- Loading branch information
1 parent
8282ca1
commit 2ad6068
Showing
39 changed files
with
301 additions
and
164 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
name: Publish | ||
on: | ||
release: | ||
types: [released, prereleased] | ||
jobs: | ||
publish: | ||
name: Release build and publish | ||
runs-on: macOS-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK 21 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
- name: Publish to MavenCentral | ||
run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache | ||
env: | ||
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | ||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} | ||
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...in/ktnostr/crypto/CryptoProvider.apple.kt → ...in/ballast/crypto/CryptoProvider.apple.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...in/kotlin/ktnostr/net/HttpClient.apple.kt → ...in/kotlin/ballast/net/HttpClient.apple.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ktnostr.net | ||
package ballast.net | ||
|
||
import io.ktor.client.* | ||
import io.ktor.client.engine.darwin.* | ||
|
2 changes: 1 addition & 1 deletion
2
...tnostr/crypto/CryptoProvider.commonJvm.kt → ...allast/crypto/CryptoProvider.commonJvm.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...otlin/ktnostr/net/HttpClient.commonJvm.kt → ...otlin/ballast/net/HttpClient.commonJvm.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ktnostr.net | ||
package ballast.net | ||
|
||
import io.ktor.client.* | ||
import io.ktor.client.engine.okhttp.* | ||
|
2 changes: 1 addition & 1 deletion
2
...ommonMain/kotlin/ktnostr/DateTimeUtils.kt → ...ommonMain/kotlin/ballast/DateTimeUtils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ktnostr | ||
package ballast | ||
|
||
import kotlinx.datetime.Clock | ||
import kotlinx.datetime.Instant | ||
|
2 changes: 1 addition & 1 deletion
2
...n/kotlin/ktnostr/crypto/CryptoProvider.kt → ...n/kotlin/ballast/crypto/CryptoProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...Main/kotlin/ktnostr/crypto/CryptoUtils.kt → ...Main/kotlin/ballast/crypto/CryptoUtils.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...mmonMain/kotlin/ktnostr/net/HttpClient.kt → ...mmonMain/kotlin/ballast/net/HttpClient.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package ktnostr.net | ||
package ballast.net | ||
|
||
import io.ktor.client.* | ||
|
||
|
Oops, something went wrong.