Skip to content

add headers to websocket connection#67

Open
cbrady wants to merge 1 commit intomainfrom
chris/schy-343-add-headers-to-java-sdk-websocket-connection
Open

add headers to websocket connection#67
cbrady wants to merge 1 commit intomainfrom
chris/schy-343-add-headers-to-java-sdk-websocket-connection

Conversation

@cbrady
Copy link
Copy Markdown
Contributor

@cbrady cbrady commented May 7, 2026

No description provided.

@cbrady cbrady self-assigned this May 7, 2026
@cbrady cbrady requested a review from a team as a code owner May 7, 2026 16:28
Copy link
Copy Markdown

@dontlaugh dontlaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Knowing the version should be a build-time concern, imo.

Does Fern expose any data in gradle we can use? If not, they should, so we can do something like this

task generateConfigClass {
    doLast {
        def outputDir  = file("${projectDir}/src/main/java/com/example/config")
        def configFile = new File(outputDir, "Config.java")
        outputDir.mkdirs()

        configFile.text = """package com.example.config;

public class Config {
    // Auto-generated by Gradle — do not edit manually!
    public static final String API_URL     = "${apiUrl}";
    public static final String APP_VERSION = "${appVersion}";
    public static final int    MAX_USERS   = ${maxUsers};
}
"""
    }
}

@cbrady
Copy link
Copy Markdown
Contributor Author

cbrady commented May 7, 2026

Knowing the version should be a build-time concern, imo.

Does Fern expose any data in gradle we can use? If not, they should, so we can do something like this

task generateConfigClass {
    doLast {
        def outputDir  = file("${projectDir}/src/main/java/com/example/config")
        def configFile = new File(outputDir, "Config.java")
        outputDir.mkdirs()

        configFile.text = """package com.example.config;

public class Config {
    // Auto-generated by Gradle — do not edit manually!
    public static final String API_URL     = "${apiUrl}";
    public static final String APP_VERSION = "${appVersion}";
    public static final int    MAX_USERS   = ${maxUsers};
}
"""
    }
}

i agree @dontlaugh but i looked into it and there's really no good way to do that given fern owns a lot of the files.

@cbrady cbrady force-pushed the chris/schy-343-add-headers-to-java-sdk-websocket-connection branch from d88e699 to f2d4410 Compare May 7, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants