WEBVTT

00:00.080 --> 00:00.960
Welcome back.

00:01.240 --> 00:06.880
Now let's add a library that requests the permissions at runtime.

00:07.000 --> 00:13.200
Search for accompanist permissions, which is a library provided by GitHub.

00:13.200 --> 00:20.040
And it's a Google library a library which provides Android runtime permissions support for Jetpack Compose.

00:20.160 --> 00:31.560
Also, you can go to Google I o permissions and scroll down to download and copy this line.

00:31.560 --> 00:38.440
And the latest version is 0.37.3 and paste it here.

00:38.680 --> 00:44.160
Change this version to 0.37.3.

00:44.360 --> 00:49.520
Okay, this is the accompanist, which request permissions during runtime.

00:49.560 --> 00:52.400
Another library is the animations.

00:52.400 --> 00:57.320
So we need some animations uh for our application.

00:57.320 --> 01:03.720
So implementation Android X dot compose dot animation.

01:03.840 --> 01:06.600
And we need the animation library.

01:06.720 --> 01:10.360
Then we need the coroutines and the ViewModel.

01:10.360 --> 01:20.050
You can search Google for Viewmodels and for example here ViewModel Android dependency select lifecycle.

01:20.050 --> 01:21.650
And here we have the libraries.

01:21.650 --> 01:24.890
The latest version is 2.9.1.

01:24.890 --> 01:25.850
Scroll down.

01:26.250 --> 01:28.370
You can select the Groovy or Kotlin.

01:28.370 --> 01:36.890
But since we are using DSL and Kotlin DSL, we need to copy this because we use the ViewModel utilities

01:36.890 --> 01:37.690
for compose.

01:37.690 --> 01:42.010
This is for a Kotlin KT and this is for compose.

01:42.290 --> 01:43.490
So copy it.

01:43.770 --> 01:49.010
Scroll down to here and let me add the view model.

01:49.250 --> 01:50.050
Paste it.

01:50.090 --> 01:53.210
We need the lifecycle version back to here.

01:53.210 --> 01:57.090
Lifecycle version is 2.9.1.

01:57.090 --> 01:58.250
And here we go.

01:58.290 --> 02:00.130
This is the ViewModel sync.

02:00.130 --> 02:04.530
Now let's add other libraries like coroutines.

02:04.650 --> 02:13.170
So back to here search for coroutines coroutines Android SDK copy this implementation to here.

02:13.170 --> 02:16.770
And here we go click sync now and here we go okay.

02:16.810 --> 02:22.450
So in this video we added accompanist animation ViewModel and coroutines.

02:22.450 --> 02:26.490
In the next video we're going to complete the latest steps.

02:26.490 --> 02:33.290
And the last steps uh with with adding new dependencies held and retrofit.
