-
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.
fix: java code compilation and imports not working issue
- Loading branch information
1 parent
7db93b9
commit 49734c3
Showing
14 changed files
with
164 additions
and
142 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
128 changes: 64 additions & 64 deletions
128
gen/kt/gateway/v1/APIGatewayServiceGrpc.java → ...asemind/client/APIGatewayServiceGrpc.java
Large diffs are not rendered by default.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
gen/kt/gateway/v1/GatewayGrpcKt.kt → gen/kt/com/basemind/client/GatewayGrpcKt.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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Generated by the protocol buffer compiler. DO NOT EDIT! | ||
// source: gateway/v1/gateway.proto | ||
|
||
// Generated files should ignore deprecation warnings | ||
@file:Suppress("DEPRECATION") | ||
package com.basemind.client; | ||
|
||
@kotlin.jvm.JvmName("-initializepromptConfigRequest") | ||
public inline fun promptConfigRequest(block: com.basemind.client.PromptConfigRequestKt.Dsl.() -> kotlin.Unit): com.basemind.client.Gateway.PromptConfigRequest = | ||
com.basemind.client.PromptConfigRequestKt.Dsl._create(com.basemind.client.Gateway.PromptConfigRequest.newBuilder()).apply { block() }._build() | ||
/** | ||
* ``` | ||
* A request for a prompt configuration - retrieving the expected prompt variables | ||
* ``` | ||
* | ||
* Protobuf type `gateway.v1.PromptConfigRequest` | ||
*/ | ||
public object PromptConfigRequestKt { | ||
@kotlin.OptIn(com.google.protobuf.kotlin.OnlyForUseByGeneratedProtoCode::class) | ||
@com.google.protobuf.kotlin.ProtoDslMarker | ||
public class Dsl private constructor( | ||
private val _builder: com.basemind.client.Gateway.PromptConfigRequest.Builder | ||
) { | ||
public companion object { | ||
@kotlin.jvm.JvmSynthetic | ||
@kotlin.PublishedApi | ||
internal fun _create(builder: com.basemind.client.Gateway.PromptConfigRequest.Builder): Dsl = Dsl(builder) | ||
} | ||
|
||
@kotlin.jvm.JvmSynthetic | ||
@kotlin.PublishedApi | ||
internal fun _build(): com.basemind.client.Gateway.PromptConfigRequest = _builder.build() | ||
} | ||
} | ||
@kotlin.jvm.JvmSynthetic | ||
public inline fun com.basemind.client.Gateway.PromptConfigRequest.copy(block: `com.basemind.client`.PromptConfigRequestKt.Dsl.() -> kotlin.Unit): com.basemind.client.Gateway.PromptConfigRequest = | ||
`com.basemind.client`.PromptConfigRequestKt.Dsl._create(this.toBuilder()).apply { block() }._build() |
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
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
This file was deleted.
Oops, something went wrong.
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,22 +1,30 @@ | ||
[versions] | ||
androidGradlePlugin = "8.1.1" | ||
appcompat = "1.6.1" | ||
coreKtx = "1.12.0" | ||
espressoCore = "3.5.1" | ||
grpcVersion = "1.58.0" | ||
junit = "4.13.2" | ||
junitVersion = "1.1.5" | ||
androidGradlePlugin = "8.1.1" | ||
kotlinVersion = "1.9.0" | ||
protobufVersion = "0.9.4" | ||
grpcKotlinVersion = "1.3.1" | ||
|
||
[libraries] | ||
androidx-appcompat = { module = "androidx.appcompat:appcompat", version.ref = "appcompat" } | ||
androidx-core-ktx = { module = "androidx.core:core-ktx", version.ref = "coreKtx" } | ||
androidx-espresso-core = { module = "androidx.test.espresso:espresso-core", version.ref = "espressoCore" } | ||
androidx-junit = { module = "androidx.test.ext:junit", version.ref = "junitVersion" } | ||
grpc-okhttp = { module = "io.grpc:grpc-okhttp", version.ref = "grpcVersion" } | ||
grpc-protobuf-lite = { module = "io.grpc:grpc-protobuf-lite", version.ref = "grpcVersion" } | ||
grpc-stub = { module = "io.grpc:grpc-stub", version.ref = "grpcVersion" } | ||
grpc-kotlin-stub = { module = "io.grpc:grpc-kotlin-stub", version.ref = "grpcKotlinVersion" } | ||
junit = { module = "junit:junit", version.ref = "junit" } | ||
|
||
[plugins] | ||
android-application = { id = "com.android.application", version.ref = "androidGradlePlugin" } | ||
android-library = { id = "com.android.library", version.ref = "androidGradlePlugin" } | ||
kotlin-android = { id = "org.jetbrains.kotlin.android", version.ref = "kotlinVersion" } | ||
protobuf = { id = "com.google.protobuf", version.ref = "protobufVersion" } | ||
|
||
[bundles] |
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
8 changes: 8 additions & 0 deletions
8
sdks/android/sdk/src/main/java/com/basemind/client/source/NewFile.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package com.basemind.client.source | ||
|
||
import com.basemind.client.APIGatewayServiceGrpc | ||
import io.grpc.ManagedChannelBuilder | ||
|
||
const val PORT = 8980 | ||
val channel = ManagedChannelBuilder.forAddress("localhost", PORT).usePlaintext().build() | ||
var stub = APIGatewayServiceGrpc.newBlockingStub(channel) |