Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ android {

defaultConfig {
applicationId = "com.example.platform"
minSdk = 21
minSdk = 23
targetSdk = 36
versionCode = 1
versionName = "1.0"
Expand Down Expand Up @@ -80,6 +80,7 @@ dependencies {
implementation(project(":samples:connectivity:bluetooth:companion"))
implementation(project(":samples:connectivity:callnotification"))
implementation(project(":samples:connectivity:telecom"))
implementation(project(":samples:connectivity:UwbRanging"))
implementation(project(":samples:graphics:pdf"))
implementation(project(":samples:graphics:ultrahdr"))
implementation(project(":samples:location"))
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/java/com/example/platform/app/ApiSurface.kt
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,12 @@ val UserInterfaceWindowManagerApiSurface = ApiSurface(
null,
)

val ConnectivityUwbRangingApiSurface = ApiSurface(
"connectivity-uwb-ranging",
"Connectivity UWB Ranging",
null,
)

val API_SURFACES = listOf(
AccessiblityApiSurface,
CameraCamera2ApiSurface,
Expand All @@ -204,6 +210,7 @@ val API_SURFACES = listOf(
ConnectivityBluetoothCompanionApiSurface,
ConnectivityCallNotificationApiSurface,
ConnectivityTelecomApiSurface,
ConnectivityUwbRangingApiSurface,
GraphicsPdfApiSurface,
GraphicsUltraHdrApiSurface,
LocationApiSurface,
Expand Down
9 changes: 9 additions & 0 deletions app/src/main/java/com/example/platform/app/SampleDemo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ import com.example.platform.ui.text.LineBreak
import com.example.platform.ui.text.Linkify
import com.example.platform.ui.text.TextSpanFragment
import com.example.platform.ui.windowmanager.demos.WindowDemosActivity
import com.google.uwb.hellouwb.ui.UwbRangingActivity

interface SampleDemo : CatalogItem {
override val id: String
Expand Down Expand Up @@ -367,6 +368,14 @@ val SAMPLE_DEMOS by lazy {
}
},
),
ActivitySampleDemo(
id = "connectivity-uwb-ranging",
name = "UWB Ranging",
description = "Demonstrates how to use the UWB APIs to perform ranging.",
documentation = "https://developer.android.com/guide/topics/connectivity/uwb",
apiSurface = ConnectivityUwbRangingApiSurface,
content = UwbRangingActivity::class.java
),
ComposableSampleDemo(
id = "pdf-renderer",
name = "PDF Renderer",
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ plugins {
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.kotlin.compose) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.protobuf) apply false
}
7 changes: 7 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,16 @@ tensorflowLiteGpuDelegatePlugin = "0.4.4"
tensorflowLiteSupport = "0.4.2"
barcodeScanningCommon = "17.0.0"
playServicesMlkitBarcodeScanning = "18.3.1"
protobuf = "0.9.4"
firebaseCrashlyticsBuildtools = "3.0.5"
uwb = "1.0.0-alpha10"


[libraries]
androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }
androidx-fragment-compose = { module = "androidx.fragment:fragment-compose", version.ref = "fragmentCompose" }
androidx-navigation-compose = { module = "androidx.navigation:navigation-compose", version.ref = "navigationCompose" }
androidx-uwb = { module = "androidx.core.uwb:uwb", version.ref = "uwb" }
androidx-photopicker-compose = { module = "androidx.photopicker:photopicker-compose", version.ref = "photopickerCompose" }
junit = { group = "junit", name = "junit", version.ref = "junit" }
androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
Expand Down Expand Up @@ -198,6 +203,7 @@ tensorflow-lite-select-tf-ops = { module = "org.tensorflow:tensorflow-lite-selec
tensorflow-lite-support = { module = "org.tensorflow:tensorflow-lite-support", version.ref = "tensorflowLiteSupport" }
barcode-scanning-common = { group = "com.google.mlkit", name = "barcode-scanning-common", version.ref = "barcodeScanningCommon" }
play-services-mlkit-barcode-scanning = { group = "com.google.android.gms", name = "play-services-mlkit-barcode-scanning", version.ref = "playServicesMlkitBarcodeScanning" }
firebase-crashlytics-buildtools = { group = "com.google.firebase", name = "firebase-crashlytics-buildtools", version.ref = "firebaseCrashlyticsBuildtools" }

[plugins]
android-application = { id = "com.android.application", version.ref = "agp" }
Expand All @@ -214,3 +220,4 @@ hilt = { id = "com.google.dagger.hilt.android", version.ref = "hilt" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp" }
protobuf = { id = "com.google.protobuf", version.ref = "protobuf" }
249 changes: 249 additions & 0 deletions samples/connectivity/UwbRanging/.idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading