What's new in Android Jetpack

  Рет қаралды 51,799

Android Developers

Android Developers

Күн бұрын

Пікірлер: 80
@LiranBarsisa
@LiranBarsisa 4 жыл бұрын
15:00 For those who want to use the alternative of startActivityForResult, it should have been mentioned that you need to update to these: implementation "androidx.fragment:fragment:1.3.0-alpha06" implementation "androidx.fragment:fragment-ktx:1.3.0-alpha06"
@codinginflow
@codinginflow 4 жыл бұрын
Android development is fun in 2020
@Zhuinden
@Zhuinden 4 жыл бұрын
Everything Yigit says is gold. I wasn't a fan of Navigation initially, but Navigation 2.2.0 is already amazing: NavGraph-scoped ViewModels with SavedStateHandle support are a game changer. Tbh it'd actually already solve the result passing that 2.3.0 adds, but I guess it's a nice solution when people really are looking for "the simplest thing".
@Zhuinden
@Zhuinden 4 жыл бұрын
Also I was skeptical that Paging 3 would be backwards-compatible with Paging 2, but they did it. Wow.
@saidooubella
@saidooubella 4 жыл бұрын
I tried hilt right after this video and it was way more less headaches. i love it 💚💚💚 !
@Hackaprende
@Hackaprende 4 жыл бұрын
Do you know if I need to know Dagger to learn Hilt or can I go straight to it?
@saidooubella
@saidooubella 4 жыл бұрын
@@Hackaprende no, no need to learn dagger if you're an Android developer ! Go-to the documentations to know how to use Hilt on d.android.com/
@Hackaprende
@Hackaprende 4 жыл бұрын
@@saidooubella thanks, starting right now!
@saidooubella
@saidooubella 4 жыл бұрын
@@Hackaprende i am glad that i was helpful 😊 !
@goobar
@goobar 4 жыл бұрын
Very interested to try out Hilt and see how it compares to the existing approaches 🤔
@musabnasreldeen2009
@musabnasreldeen2009 4 жыл бұрын
Yes it looks interesting
@prudhvir3ddy
@prudhvir3ddy 4 жыл бұрын
@goobar waiting for your videos..
@nishantgarg7497
@nishantgarg7497 4 жыл бұрын
After Jetpack, Android is actually becoming Better. Will try out soon
@mdalikazi
@mdalikazi 4 жыл бұрын
Thank you for Hilt. I hate Dagger because of the steep learning curve I only use it if I'm forced to. Now with Hilt hopefully DI will become part of all my projects.
@arseniykucherenko4960
@arseniykucherenko4960 4 жыл бұрын
How about Koin? Did you try Koin what do you think about it?
@mdalikazi
@mdalikazi 4 жыл бұрын
@@arseniykucherenko4960 no never tried koin but I've heard of it.
@denisshov8518
@denisshov8518 4 жыл бұрын
The first 3 seconds of the video... I watched them 10 times in a row... Like it.
@n-o-i-d
@n-o-i-d 4 жыл бұрын
Thank you for the long-running job support for work manager!
@gabormiklay9209
@gabormiklay9209 4 жыл бұрын
This is the 3rd video tonight (about Android 11) and my mind is already blown. 🤩 Amazing work guys! 👍
@orhanavan7222
@orhanavan7222 4 жыл бұрын
Woaw new DI library inspired from Hilti, I'm excited 😉
@ragupatt
@ragupatt 4 жыл бұрын
Does it make sense to have Bill of Materials (BoM) for jet pack? There are too many libraries now and it will make it easy to be on top of the latest releases.
@dmitriykarlovsky369
@dmitriykarlovsky369 4 жыл бұрын
Hi. Why did you design Paging3 with extension of PagingSource? Extension is always hard to Unit-test. You could create interface with all methods to implement and expect it in ctor. That all reminds old story with Thread-class. Does one should extent it or inject with Runnable?!
@SumitSahoo
@SumitSahoo 4 жыл бұрын
Hilt is the new Dagger. Long live annotations :)
@aamernabi
@aamernabi 4 жыл бұрын
Title should have been "Whole new Jetpack".
@coroutinedispatcher
@coroutinedispatcher 4 жыл бұрын
I loved HIlt. Congratulations, awesome job
@xpopcornx1747
@xpopcornx1747 4 жыл бұрын
What if you want to pass multiple values back from navigation? SavedStateHandle observers only works for one value, so you have to spam observers for each value you want to return which will happen in an unpredictable order.
@shahrukhmalik8496
@shahrukhmalik8496 4 жыл бұрын
Just went through hilt by making a sample application. Must say that zero amount of boilerplate code is needed to add hilt in your apps. A great wrapper library indeed. Thank you android team.
@gabormiklay9209
@gabormiklay9209 4 жыл бұрын
Theme changing and creating/managing is something that wasn't easy (at least for me).
@kenjimatsuoka
@kenjimatsuoka 4 жыл бұрын
I was try introduce hilt to my app. It was super useful and easy. By the way, does remodels mean view model in subtitle 02:38?
@antoniokomangyudistira4150
@antoniokomangyudistira4150 4 жыл бұрын
I love android jetpack
@ohefny
@ohefny 4 жыл бұрын
What is the platform bug on sdk < 26 that makes you write this line config.fontScale =0 as a workaround
@RaviTejagameboy
@RaviTejagameboy 4 жыл бұрын
I use rxjava bg thread to run initialization of deps during app launch, whats the benefit of using App startup?
@thonguyen252
@thonguyen252 4 жыл бұрын
I am still confuse why does Navigation alway use replace fragment which cause fragment is re-created when I popBack. In many cases, I would like to keep the fragment alive. I tried to use dialog instead of fragment but they consume too much memory.
@do9core
@do9core 4 жыл бұрын
Hilt really help me to reduce so many lines of DI codes.
@kbdevashish7645
@kbdevashish7645 4 жыл бұрын
Android Jetpack team already knew the pain of android developers implementing DI frameworks, the comments praising Hilt shows that. Will try out soon.
@crjacinro
@crjacinro 4 жыл бұрын
why Google created another DI instead of embracing the popular Koin DI that is being used now in most apps?
@RaviTejagameboy
@RaviTejagameboy 4 жыл бұрын
Its not entirely new Di, just replacement of dagger-android.
@crjacinro
@crjacinro 4 жыл бұрын
@@RaviTejagameboy ok. so why create a replacement then? instead of recommending koin officially?
@RaviTejagameboy
@RaviTejagameboy 4 жыл бұрын
@@crjacinro Google always pushed dagger as main DI for android, they are now investing resources to make it easier for beginners by introducing hilt, Koin is never in the picture
@RaviTejagameboy
@RaviTejagameboy 4 жыл бұрын
Again its not replacement of Dagger, it's a wrapper around dagger to make DI easy when dealing with Android components
@SaiTeja-vq8hq
@SaiTeja-vq8hq 4 жыл бұрын
Umm.. just why hilt.. Koin is way better and readable.. Lesser compilation times (dryRun as a unit test when you actually change your dependencies) Can remove dependencies at run time (unload modules, simpler than scopes) Some 11 ms delay in startup for 400 dependencies which is totally acceptable for the benefits you get (lesser compilation times)..
@mohamedsaeed1891
@mohamedsaeed1891 4 жыл бұрын
i'm confused what should i use AndroidX or jetpack
@itscooldawgdonteventrip
@itscooldawgdonteventrip 4 жыл бұрын
Thanks Yigit. Brilliant.
@rickmuse3905
@rickmuse3905 4 жыл бұрын
Cool for new api.
@alexneeky7920
@alexneeky7920 4 жыл бұрын
what about injecting into workers or other cases which previously used with assist inject lib
@ЕленаБелашова-ц2ф
@ЕленаБелашова-ц2ф 2 жыл бұрын
I feel happy after this video🤩
@1990mrnobody
@1990mrnobody 4 жыл бұрын
I thought with next version of Paging you will provide some easier way to update/delete item in RecyclerView and I'm disappointed we are still forced to use Room or do extra work to have such a common scenario
@gabormiklay9209
@gabormiklay9209 4 жыл бұрын
12:47 haha. I was just thinking about Lint yesterday, as I made lot of changes to my codes.
@AndreuJapan
@AndreuJapan 4 жыл бұрын
It is possible to use injection in objects with Hilt?: object Object1 { @Inject lateinit var myVar1: MyVar1 .... }
@is0658
@is0658 4 жыл бұрын
hilt is looking great
@javalc6
@javalc6 4 жыл бұрын
Nice, but still missing stable release of androidx.appcompat:appcompat:1.2.0 (waiting from last year)
@arseniykucherenko4960
@arseniykucherenko4960 4 жыл бұрын
How about better game development support when we can develop native mobile games with nice visual editor in Android Studio just using Kotlin and get rid of all this third parties like c# with Unity?
@Hackaprende
@Hackaprende 4 жыл бұрын
Do I need to know Dagger to learn Hilt or can I go straight to it?
@aruny25
@aruny25 4 жыл бұрын
No go straight for it. It's designed for easy adaption
@shikharraje
@shikharraje 4 жыл бұрын
Is Hilt open source? Can't seem to find it on Github...
@lsanotes
@lsanotes 4 жыл бұрын
cs.android.com/androidx/platform/frameworks/support/+/androidx-master-dev:hilt/
@shikharraje
@shikharraje 4 жыл бұрын
@@lsanotes Thanks! Is this a git repo? And what website is this?
@GrantOakley
@GrantOakley 4 жыл бұрын
@@shikharraje dagger.dev/hilt/ went live today
@igorbrishkoski4073
@igorbrishkoski4073 4 жыл бұрын
dagger.dev/hilt/
@SaminAliMondal
@SaminAliMondal 4 жыл бұрын
I need pagination with mutable data. 😵
@dilaojermaine
@dilaojermaine 4 жыл бұрын
Agree. They moved Paging to version 3 without even considering it.
@RhexGomez
@RhexGomez 4 жыл бұрын
Paging 3.0 exposes a Flow. You can can convert your Immutable Data to Mutable.
@iris_blake
@iris_blake 4 жыл бұрын
Thanks for Hilt🥰😅
@tamboo_art
@tamboo_art 4 жыл бұрын
Oh yes
@dnkilic
@dnkilic 4 жыл бұрын
Thank you! Thank you! Thank you!
@CopernicoTube
@CopernicoTube 4 жыл бұрын
I wish some in house lifecycle support for bound events, because the existent way to use observable live variables to it, is a damn antipattern. Actions aren't data.
@sivaganeshkantamani2976
@sivaganeshkantamani2976 4 жыл бұрын
This what's new series is great Yigit Boyar. Really you covered a lot. Hilt is my Favourite
@manalu-kh6hs
@manalu-kh6hs 4 жыл бұрын
OK 👍
@minh3348
@minh3348 4 жыл бұрын
dagger is the besttttttttttttttttttt
@Shakenbeer
@Shakenbeer 4 жыл бұрын
Google spoiled really cool DI library called Dagger, and now they are trying to reanimate their Frankenstein.
@TekEffekt
@TekEffekt 4 жыл бұрын
Sviatoslav Melnychenko why was it spoiled?
@Shakenbeer
@Shakenbeer 4 жыл бұрын
​@@TekEffekt I was a Dagger user since the very beginning, and it was OK. Dagger was framework-independent, and with proper architecture, one could really easy in-build it into Android application. And then... Google appears with this crazy idea to make Android dev live easier, and the learning curve of Dagger became almost vertical. Eventually, we end up with this monster: github.com/android/architecture-components-samples/blob/master/GithubBrowserSample/app/src/main/java/com/android/example/github/viewmodel/GithubViewModelFactory.kt You could tell, then this is one man's opinion - agree. Actually, the only argument I need is in this video itself (quote): "... we were able to delete 75% of the dependency injection code".
@queenangle5843
@queenangle5843 4 жыл бұрын
@@Shakenbeer yes mein vate kar rahi tumhari sab ki soch kiye pagal samajh Rakha tha kya
@charuwaka1
@charuwaka1 4 жыл бұрын
What about Dagger Now ?
@hpmusicbytes
@hpmusicbytes 4 жыл бұрын
Rip dagger?
@Ziptoze
@Ziptoze 4 жыл бұрын
First
@gentlepeace-09
@gentlepeace-09 4 жыл бұрын
You guys are amazing , I wish I canbe be part of you 🥰 it will be honor for me.
Jetpack Compose
24:20
Android Developers
Рет қаралды 66 М.
State of Kotlin on Android
14:31
Android Developers
Рет қаралды 43 М.
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
What's new in Android
32:07
Android Developers
Рет қаралды 89 М.
Android Jetpack: How to smartly use fragments in your UI (Google I/O '18)
45:39
What's new in Android Development Tools
28:26
Android Developers
Рет қаралды 28 М.
Kotlin Coroutines 101 - Android Conference Talks
24:49
Android Developers
Рет қаралды 138 М.
Hilt - Android Dependency Injection
28:57
Android Developers
Рет қаралды 51 М.
What's new in Design Tools
19:34
Android Developers
Рет қаралды 12 М.
Android Coroutines: How to manage async tasks in Kotlin
17:49
Android Developers
Рет қаралды 42 М.