Skip to content

Commit

Permalink
Glance Snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
secondsun committed Jul 26, 2023
1 parent f2035d0 commit 6af411e
Show file tree
Hide file tree
Showing 9 changed files with 1,068 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compose/snippets/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ android {
}

dependencies {
implementation(libs.androidx.work.runtime.ktx)
val composeBom = platform(libs.androidx.compose.bom)
implementation(composeBom)
androidTestImplementation(composeBom)
Expand Down Expand Up @@ -106,6 +107,9 @@ dependencies {
implementation(libs.androidx.coordinator.layout)
implementation(libs.google.android.material)

implementation(libs.androidx.glance.appwidget)
implementation(libs.androidx.glance.material3)

implementation(libs.accompanist.theme.adapter.appcompat)
implementation(libs.accompanist.theme.adapter.material3)
implementation(libs.accompanist.theme.adapter.material)
Expand Down
12 changes: 12 additions & 0 deletions compose/snippets/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,18 @@

<activity android:name="com.example.compose.snippets.touchinput.gestures.NestedScrollInterop$MainActivity" />

<!-- [START android_compose_glance_declare] -->
<receiver android:name=".glance.MyReceiver"
android:exported="true">
<intent-filter>
<action android:name="android.appwidget.action.APPWIDGET_UPDATE" />
</intent-filter>
<meta-data
android:name="android.appwidget.provider"
android:resource="@xml/my_app_widget_info" />
</receiver>
<!-- [END android_compose_glance_declare] -->

</application>

</manifest>
Loading

0 comments on commit 6af411e

Please sign in to comment.