Skip to content

Commit 3cc52f3

Browse files
authored
Merge branch 'main' into update-focus
2 parents 1131a68 + ef79bd2 commit 3cc52f3

File tree

16 files changed

+589
-8
lines changed

16 files changed

+589
-8
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@ jobs:
4949
run: ./gradlew :misc:build
5050
- name: Build XR snippets
5151
run: ./gradlew :xr:build
52+
- name: Build Watch Face Push validation snippets
53+
run: ./gradlew :watchfacepush:validator:run

gradle/libs.versions.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ protolayout = "1.3.0"
6969
recyclerview = "1.4.0"
7070
targetSdk = "34"
7171
tiles = "1.5.0"
72+
validatorPush = "1.0.0-alpha03"
7273
version-catalog-update = "1.0.0"
7374
wear = "1.3.0"
7475
wearComposeFoundation = "1.5.0-beta04"
@@ -184,6 +185,7 @@ kotlinx-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-t
184185
kotlinx-serialization-json = { module = "org.jetbrains.kotlinx:kotlinx-serialization-json", version.ref = "kotlinxSerializationJson" }
185186
okhttp = { module = "com.squareup.okhttp3:okhttp", version.ref = "okHttp" }
186187
play-services-wearable = { module = "com.google.android.gms:play-services-wearable", version.ref = "playServicesWearable" }
188+
validator-push = { module = "com.google.android.wearable.watchface.validator:validator-push", version.ref = "validatorPush" }
187189
wear-compose-material = { module = "androidx.wear.compose:compose-material", version.ref = "wearComposeMaterial" }
188190
wear-compose-material3 = { module = "androidx.wear.compose:compose-material3", version.ref = "wearComposeMaterial3" }
189191

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
205205
# Collect all arguments for the java command:
206206
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207207
# and any embedded shellness will be escaped.
208-
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
208+
# * For validator: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209209
# treated as '${Hostname}' itself on the command line.
210210

211211
set -- \

identity/credentialmanager/src/main/java/com/example/identity/credentialmanager/WebViewMainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class WebViewMainActivity : ComponentActivity() {
2626
settings.javaScriptEnabled = true
2727

2828
// Test URL:
29-
val url = "https://credman-web-test.glitch.me/"
29+
val url = "https://passkeys-codelab.glitch.me/"
3030
val listenerSupported = WebViewFeature.isFeatureSupported(
3131
WebViewFeature.WEB_MESSAGE_LISTENER
3232
)

identity/credentialmanager/src/main/jsonSnippets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"allowCredentials": [],
4848
"timeout": 1800000,
4949
"userVerification": "required",
50-
"rpId": "credential-manager-app-test.glitch.me"
50+
"rpId": "https://passkeys-codelab.glitch.me/"
5151
}
5252
// [END android_identity_format_json_request_passkey]
5353
},

misc/src/main/java/com/example/snippets/ActivityEmbeddingJavaSnippets.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
import androidx.annotation.NonNull;
1414
import androidx.annotation.Nullable;
1515
import androidx.annotation.OptIn;
16-
import androidx.annotation.RequiresApi;import androidx.appcompat.app.AppCompatActivity;
16+
import androidx.annotation.RequiresApi;
17+
import androidx.appcompat.app.AppCompatActivity;
1718
import androidx.core.content.ContextCompat;
1819
import androidx.startup.Initializer;
1920
import androidx.window.WindowSdkExtensions;

settings.gradle.kts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ dependencyResolutionManagement {
1414
println("https://androidx.dev/snapshots/builds/$it/artifacts/repository/")
1515
maven { url = uri("https://androidx.dev/snapshots/builds/$it/artifacts/repository/") }
1616
}
17-
17+
maven {
18+
url = uri("https://jitpack.io")
19+
content {
20+
includeGroup("com.github.xgouchet")
21+
}
22+
}
1823
google()
1924
mavenCentral()
2025
}
@@ -30,4 +35,5 @@ include(
3035
":misc",
3136
":identity:credentialmanager",
3237
":xr",
38+
":watchfacepush:validator"
3339
)

watchfacepush/validator/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

watchfacepush/validator/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is a sample project that contains the code snippets seen on https://developer.android.com/training/wearables/watch-face-push
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/*
2+
* Copyright 2022 The Android Open Source Project
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
group = "com.example.validator"
18+
version = "1.0"
19+
20+
plugins {
21+
kotlin("jvm")
22+
application
23+
}
24+
25+
application {
26+
mainClass.set("com.example.validator.Main")
27+
}
28+
29+
dependencies {
30+
implementation(libs.validator.push)
31+
}

0 commit comments

Comments
 (0)