Skip to content

Commit 5b9be33

Browse files
author
Summers Pittman
committed
This commit performs minor maintenance and a bug fix
updating gradle updating AGP DragAndDropRichContentReceiverFragment is marked as requiresApi 31
1 parent f6714a6 commit 5b9be33

File tree

7 files changed

+7
-5
lines changed

7 files changed

+7
-5
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ accompanist = "0.32.0"
1818
androidx-datastore = "1.0.0"
1919
androidx-navigation = "2.7.7"
2020
androidx-window = "1.2.0"
21-
agp = "8.2.2"
21+
agp = "8.5.2"
2222
casa = "0.5.1"
2323
coil = "2.4.0"
2424
ksp = "1.9.22-1.0.17"

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
#Wed Dec 07 13:21:03 CET 2022
1818
distributionBase=GRADLE_USER_HOME
1919
distributionPath=wrapper/dists
20-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
20+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
2121
zipStoreBase=GRADLE_USER_HOME
2222
zipStorePath=wrapper/dists

samples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Shows various vibration effects.
5353
- [Hyphenation](user-interface/text/src/main/java/com/example/platform/ui/text/Hyphenation.kt):
5454
Demonstrates different options for the `android:hyphenationFrequency` attribute
5555
- [Image Capture](camera/camera2/src/main/java/com/example/platform/camera/imagecapture/Camera2ImageCapture.kt):
56-
This sample demonstrates how to capture and image using Camera2 and encode it
56+
This sample demonstrates how to capture an image using Camera2 and encode it
5757
- [Immersive mode](user-interface/window-insets/src/main/java/com/example/platform/ui/insets/ImmersiveMode.kt):
5858
Immersive mode enables your app to display full-screen by hiding system bars.
5959
- [LineBreak](user-interface/text/src/main/java/com/example/platform/ui/text/LineBreak.kt):

samples/user-interface/draganddrop/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
1717
xmlns:tools="http://schemas.android.com/tools"
1818
package="com.example.platform.ui.draganddrop">
19-
20-
<uses-sdk tools:overrideLibrary="androidx.draganddrop:draganddrop" />
19+
<uses-sdk tools:overrideLibrary="androidx.draganddrop" />
2120

2221
<application>
2322

samples/user-interface/draganddrop/src/main/java/com/example/platform/ui/draganddrop/DragAndDropRichContentReceiverFragment.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ import java.io.FileOutputStream
4949
description = "Using RichContentReceiverInterface for implementing Drop for rich data types",
5050
documentation = "https://developer.android.com/develop/ui/views/receive-rich-content",
5151
)
52+
@RequiresApi(Build.VERSION_CODES.S)
5253
class DragAndDropRichContentReceiverFragment : Fragment(R.layout.fragment_dnd_richcontent) {
5354
private val TAG = DragAndDropRichContentReceiverFragment::class.java.simpleName
5455
private lateinit var binding: FragmentDndRichcontentBinding

samples/user-interface/draganddrop/src/main/java/com/example/platform/ui/draganddrop/DragAndDropWithHelper.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import com.google.android.catalog.framework.annotations.Sample
3939
description = "Drag and Drop using the DragHelper and DropHelper from DragAndDropHelper library",
4040
documentation = "https://developer.android.com/develop/ui/views/touch-and-input/drag-drop#drophelper",
4141
)
42+
@RequiresApi(Build.VERSION_CODES.N)
4243
class DragAndDropWithHelper : Fragment(R.layout.fragment_drag_and_drop_with_helper) {
4344

4445
private lateinit var binding: FragmentDragAndDropWithHelperBinding

samples/user-interface/draganddrop/src/main/java/com/example/platform/ui/draganddrop/DragAndDropWithViews.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import com.google.android.catalog.framework.annotations.Sample
3737
description = "Drag and Drop using the views",
3838
documentation = "https://developer.android.com/develop/ui/views/touch-and-input/drag-drop/view",
3939
)
40+
@RequiresApi(Build.VERSION_CODES.N)
4041
class DragAndDropWithViews : Fragment(R.layout.fragment_drag_and_drop_with_views) {
4142

4243
val TAG = "DragAndDropWithViews"

0 commit comments

Comments
 (0)