Skip to content

Sample apps using the Token Source implementations - #995

Merged
MaxHeimbrock merged 5 commits into
mainfrom
sample-app-compose-token-source
Aug 5, 2026
Merged

Sample apps using the Token Source implementations#995
MaxHeimbrock merged 5 commits into
mainfrom
sample-app-compose-token-source

Conversation

@MaxHeimbrock

@MaxHeimbrock MaxHeimbrock commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Use Token Sources in our samples:

LiteralTokenSource for the existing path.

Adding a second tab for connecting via DevelopmentTokenSource for:

  • sample-app
  • sample-app-compose
Screenshot 2026-08-04 at 17 27 23

@changeset-bot

changeset-bot Bot commented Aug 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 1ed3e38

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@MaxHeimbrock
MaxHeimbrock force-pushed the sample-app-compose-token-source branch from 75b6d5c to 1af3462 Compare August 4, 2026 15:34
@MaxHeimbrock
MaxHeimbrock force-pushed the sample-app-compose-token-source branch from 1af3462 to 67167da Compare August 5, 2026 08:38
@MaxHeimbrock
MaxHeimbrock marked this pull request as ready for review August 5, 2026 08:41
devin-ai-integration[bot]

This comment was marked as resolved.

devin-ai-integration[bot]

This comment was marked as resolved.

@davidliu
davidliu force-pushed the sample-app-compose-token-source branch from ffcdf3f to 4ad11c3 Compare August 5, 2026 09:59
@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Diffuse output:

OLD: diffuse-source-file
NEW: livekit-android-sdk-release.aar

 AAR      │ old      │ new      │ diff 
──────────┼──────────┼──────────┼──────
      jar │  2.7 MiB │  2.7 MiB │  0 B 
 manifest │  1.5 KiB │  1.5 KiB │  0 B 
 lint-jar │ 12.7 KiB │ 12.7 KiB │  0 B 
    other │  1.9 KiB │  1.9 KiB │  0 B 
──────────┼──────────┼──────────┼──────
    total │  2.7 MiB │  2.7 MiB │  0 B 

 JAR     │ old   │ new   │ diff      
─────────┼───────┼───────┼───────────
 classes │  1511 │  1511 │ 0 (+0 -0) 
 methods │ 20265 │ 20265 │ 0 (+0 -0) 
  fields │  5203 │  5203 │ 0 (+0 -0)
AAR
 size │ diff │ path    
──────┼──────┼─────────
  0 B │  0 B │ (total)

Base automatically changed from development-token-source to main August 5, 2026 10:14
MaxHeimbrock and others added 4 commits August 5, 2026 12:14
…option

The connect screens of sample-app and sample-app-compose get two tabs:
the existing literal URL/token entry and a new development token server
mode that takes a token server ID. Both paths now go through the SDK's
TokenSource API: the shared CallViewModel receives a parcelable
TokenSourceArgs and fetches connection details at connect time via
TokenSource.fromLiteral or TokenSource.fromDevelopmentTokenServer before
calling room.connect. The token server ID is persisted alongside the
existing url/token preferences and can be defaulted via the
livekitSampleTokenServerId gradle property.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The dev token server tab in both sample apps now takes optional room
name, participant name, participant identity, and agent name inputs.
They travel through TokenSourceArgs.DevTokenServer and are passed to
the token source fetch as TokenRequestOptions; blank fields are treated
as unset so the server defaults apply.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…ials

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@MaxHeimbrock
MaxHeimbrock force-pushed the sample-app-compose-token-source branch from 4ad11c3 to c8d2075 Compare August 5, 2026 10:14
Comment thread sample-app-common/src/main/java/io/livekit/android/sample/CallViewModel.kt Outdated
@davidliu

davidliu commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Both PRs LGTM!

@MaxHeimbrock
MaxHeimbrock merged commit b733c47 into main Aug 5, 2026
6 checks passed
@MaxHeimbrock
MaxHeimbrock deleted the sample-app-compose-token-source branch August 5, 2026 12:58
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