Skip to content

Commit edbe531

Browse files
committed
Run spotless and update gradle file
1 parent 2ecf884 commit edbe531

File tree

9 files changed

+126
-53
lines changed

9 files changed

+126
-53
lines changed

bluetoothle/src/main/java/com/sample/android/bluetoothle/kotlin/DeviceScanActivity.kt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2025 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+
* https://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+
117
package com.sample.android.bluetoothle.kotlin
218

319
import android.app.ListActivity
@@ -45,4 +61,4 @@ class DeviceScanActivity : ListActivity() {
4561
}
4662
}
4763
// [END start_and_stop_scan]
48-
}
64+
}
Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
1+
/*
2+
* Copyright 2025 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+
* https://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+
117
package com.sample.android.bluetoothle.kotlin
218

319
import android.bluetooth.BluetoothClass
420
import android.bluetooth.BluetoothDevice
521
import android.content.Context
622
import android.widget.ArrayAdapter
723

8-
class LeDeviceListAdapter(context: Context?, layout: Int)
9-
: ArrayAdapter<BluetoothClass.Device?>(context!!, layout) {
24+
class LeDeviceListAdapter(context: Context?, layout: Int) :
25+
ArrayAdapter<BluetoothClass.Device?>(context!!, layout) {
1026

1127
fun addDevice(device: BluetoothDevice?) {
1228
// This is where you can add devices to the adapter to
1329
// show a list of discovered devices in the UI.
1430
}
15-
}
31+
}

bluetoothle/src/main/java/com/sample/android/bluetoothle/kotlin/MainActivity.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2025 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+
* https://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+
117
package com.sample.android.bluetoothle.kotlin
218

319
import android.bluetooth.BluetoothAdapter

identity/credentialmanager/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ plugins {
66

77
android {
88
namespace = "com.example.identity.credentialmanager"
9-
compileSdk = 35
9+
compileSdk = libs.versions.compileSdk.get().toInt()
1010

1111
defaultConfig {
1212
applicationId = "com.example.identity.credentialmanager"
13-
minSdk = 21
14-
targetSdk = 35
13+
minSdk = libs.versions.minSdk.get().toInt()
14+
targetSdk = libs.versions.targetSdk.get().toInt()
1515
versionCode = 1
1616
versionName = "1.0"
1717

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
1+
/*
2+
* Copyright 2025 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+
* https://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+
117
package com.example.identity.credentialmanager
218

319
import android.os.Bundle
420
import androidx.activity.ComponentActivity
5-
import androidx.activity.compose.setContent
6-
import androidx.activity.enableEdgeToEdge
7-
import androidx.compose.foundation.layout.fillMaxSize
8-
import androidx.compose.foundation.layout.padding
9-
import androidx.compose.material3.Scaffold
10-
import androidx.compose.material3.Text
11-
import androidx.compose.runtime.Composable
12-
import androidx.compose.ui.Modifier
13-
import androidx.compose.ui.tooling.preview.Preview
14-
import com.example.identity.credentialmanager.ui.theme.SnippetsTheme
1521

1622
class MainActivity : ComponentActivity() {
1723
override fun onCreate(savedInstanceState: Bundle?) {
1824
super.onCreate(savedInstanceState)
1925
}
20-
}
26+
}

identity/credentialmanager/src/main/java/com/example/identity/ui/theme/Color.kt

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2025 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+
* https://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+
117
package com.example.identity.credentialmanager.ui.theme
218

319
import androidx.compose.ui.graphics.Color
@@ -8,4 +24,4 @@ val Pink80 = Color(0xFFEFB8C8)
824

925
val Purple40 = Color(0xFF6650a4)
1026
val PurpleGrey40 = Color(0xFF625b71)
11-
val Pink40 = Color(0xFF7D5260)
27+
val Pink40 = Color(0xFF7D5260)

identity/credentialmanager/src/main/java/com/example/identity/ui/theme/Theme.kt

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2025 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+
* https://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+
117
package com.example.identity.credentialmanager.ui.theme
218

319
import android.os.Build
@@ -20,16 +36,6 @@ private val LightColorScheme = lightColorScheme(
2036
primary = Purple40,
2137
secondary = PurpleGrey40,
2238
tertiary = Pink40
23-
24-
/* Other default colors to override
25-
background = Color(0xFFFFFBFE),
26-
surface = Color(0xFFFFFBFE),
27-
onPrimary = Color.White,
28-
onSecondary = Color.White,
29-
onTertiary = Color.White,
30-
onBackground = Color(0xFF1C1B1F),
31-
onSurface = Color(0xFF1C1B1F),
32-
*/
3339
)
3440

3541
@Composable
@@ -54,4 +60,4 @@ fun SnippetsTheme(
5460
typography = Typography,
5561
content = content
5662
)
57-
}
63+
}
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2025 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+
* https://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+
117
package com.example.identity.credentialmanager.ui.theme
218

319
import androidx.compose.material3.Typography
@@ -15,20 +31,4 @@ val Typography = Typography(
1531
lineHeight = 24.sp,
1632
letterSpacing = 0.5.sp
1733
)
18-
/* Other default text styles to override
19-
titleLarge = TextStyle(
20-
fontFamily = FontFamily.Default,
21-
fontWeight = FontWeight.Normal,
22-
fontSize = 22.sp,
23-
lineHeight = 28.sp,
24-
letterSpacing = 0.sp
25-
),
26-
labelSmall = TextStyle(
27-
fontFamily = FontFamily.Default,
28-
fontWeight = FontWeight.Medium,
29-
fontSize = 11.sp,
30-
lineHeight = 16.sp,
31-
letterSpacing = 0.5.sp
32-
)
33-
*/
34-
)
34+
)

views/src/main/java/com/example/example/snippet/views/appwidget/AppWidgetSnippets.kt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,10 @@ import androidx.glance.appwidget.GlanceAppWidget
2727
import androidx.glance.appwidget.compose
2828
import com.example.example.snippet.views.R
2929

30-
class ExampleAppWidget:GlanceAppWidget() {
30+
class ExampleAppWidget : GlanceAppWidget() {
3131
override suspend fun provideGlance(context: Context, id: GlanceId) {
3232
TODO("Not yet implemented")
3333
}
34-
3534
}
3635

3736
private object GeneratedPreviewWithoutGlance {
@@ -51,7 +50,7 @@ private object GeneratedPreviewWithoutGlance {
5150
// [END android_view_appwidget_generatedpreview_with_remoteview]
5251
}
5352

54-
suspend fun MyGlanceWidgetPreview() {
53+
suspend fun MyGlanceWidgetPreview() {
5554
// [START android_view_appwidget_generatedpreview_with_glance]
5655
AppWidgetManager.getInstance(appContext).setWidgetPreview(
5756
ComponentName(
@@ -68,6 +67,4 @@ private object GeneratedPreviewWithoutGlance {
6867
}
6968
}
7069

71-
class ExampleAppWidgetReceiver: AppWidgetProvider() {
72-
73-
}
70+
class ExampleAppWidgetReceiver : AppWidgetProvider()

0 commit comments

Comments
 (0)