Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to specify Agora's SDK build URL #12

Merged
merged 5 commits into from
Jan 5, 2024

Conversation

varsill
Copy link
Collaborator

@varsill varsill commented Dec 7, 2023

This PR:

  • adds an ability to specify URL (path to file or link) to a place where Agora SDK is available. To do so, the user needs to specify AGORA_SDK_URL environmental variable

@varsill varsill changed the base branch from master to branch/v0.1 December 7, 2023 16:55
@varsill varsill marked this pull request as ready for review December 8, 2023 14:24
@varsill varsill requested a review from mat-hek December 8, 2023 14:25
Comment on lines +16 to +31
url = case get_target() do
%{os: "linux", architecture: "x86_64"} ->
"https://download.agora.io/sdk/release/Agora-RTC-x86_64-linux-gnu-v3.8.202.20-20220627_152601-214165.tgz"

other_target ->
IO.warn("Agora's Server Gateway SDK is unavailable for this target: #{inspect(other_target)}")
url = System.get_env("AGORA_SDK_URL")
if url do
url
else
IO.warn("""
Agora's Server Gateway SDK build location unknown for target #{inspect(other_target)}.
You can pass the URL as AGORA_SDK_URL environmental variable.
""")
""
end
end
Copy link
Member

Choose a reason for hiding this comment

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

apply formatter

@varsill varsill merged commit eba2074 into branch/v0.1 Jan 5, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants