Тёмный

Dependency Management in a Multi-Module Project - THIS Is How You Need to Do It 

Philipp Lackner
Подписаться 172 тыс.
Просмотров 27 тыс.
50% 1

⭐ Learn how to make apps scale with a multi-module architecture
pl-coding.com/multi-module-co...
Get my FREE PDF about 20 things you should never do in Jetpack Compose:
pl-coding.com/jetpack-compose...
💻 Let me be your mentor and become an industry-ready Android developer in 10 weeks:
pl-coding.com/drop-table-ment...
Get the source code for this video on GitHub:
github.com/philipplackner/Mul...

Опубликовано:

 

29 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 72   
@ch1pkavarenychenko84
@ch1pkavarenychenko84 9 месяцев назад
why not Version Catalog?
@csmuthukuda916
@csmuthukuda916 9 месяцев назад
IMO i think version catalogs + convention plugins is the way forward since it supports natively in gradle
@sabbib007madness
@sabbib007madness 9 месяцев назад
agreed, as this way there isn't any visibility of updates for library version. if I'm not wrong, atm, same for Version Catalogue, but I imagine that would be resolved as it's supported by gradle
@PhilippLackner
@PhilippLackner 9 месяцев назад
Tutorial is coming soon as well👍🏼
@jayeshseth
@jayeshseth 9 месяцев назад
@@sabbib007madness ig i remember android studio suggesting version updates of all maven dependencies, i never used this method extensively and its also outdated now since version catalogs come baked in ide am pretty sure he just saw he doesnt have a video on that so he made he covers all android related changes 😂
@deletedchanneI
@deletedchanneI 9 месяцев назад
@@sabbib007madnessit shows possible updates
@aurere1612
@aurere1612 9 месяцев назад
@@sabbib007madness In the last version of the IDE which is Android Studio Giraffe, we now have the "warnings" for new version update in the libs.versions.toml file ;)
@csmuthukuda916
@csmuthukuda916 9 месяцев назад
Finally a multi module series ❤️
@WakeupDev.
@WakeupDev. 9 месяцев назад
Ooh back to back! Well done
@youssefmoti
@youssefmoti 9 месяцев назад
Thank you so much @Philipp for all great videos. I highly recommend using bundle in version catalogs
@gregoryrakhlin2546
@gregoryrakhlin2546 4 месяца назад
That was great. I only got it right the fifth time, but now I fully understand how it works. Thank you very much!
@safionweb
@safionweb 9 месяцев назад
Superb! Eagerly waiting for the next video.
@manoolsblch5921
@manoolsblch5921 9 месяцев назад
Good video, it's better that managing modules dependencies without "buildSrc"... But gradle version catalogs based on ".toml"-file, convention plugins and composite builds are more convenient and powerful way for the gradle scripts boilerplate reducing.
@PhilippLackner
@PhilippLackner 9 месяцев назад
I'll make a video about version catalogs soon :)
@tonnie7079
@tonnie7079 5 месяцев назад
Wow, 3 minutes in and I have already grasped plenty of stuff I was struggling with on some Opensource repo.
@stoyan_vuchev
@stoyan_vuchev 9 месяцев назад
This approach saves tons of time once you write it and it works with a version catalog as well! You can reuse the buildSrc module across your projects with a bit of tweaks here an there to fit with the project. Also, it enables flexibility if you have certain requirements. Looking forward to the next part. Keep up the good work Philipp! 🙌🏼
@devgabriel6898
@devgabriel6898 9 месяцев назад
Phillip... You re pure gold!
@joeldotdias
@joeldotdias 9 месяцев назад
Love your vids. Would love to see a video on fingerprint authentication
@luyt2
@luyt2 3 месяца назад
That's great! Thank you for your work!Great!
@ubersticks
@ubersticks 9 месяцев назад
This really cleans things up in the build.gradle files ! Will gradle highlight those dependencies that have a newer version available (such as core-ktx:1.9.0 in your code)? When I last tried this in one of your courses, I recall that this highlighting no longer worked. How do you easily determine what dependencies are stale?
@user-my6yf1st8z
@user-my6yf1st8z 9 месяцев назад
on point, thats what i need right now
@javimardeveloper
@javimardeveloper 9 месяцев назад
Great stuff as usual. got a question though, looks like this method won't get automatic version upgrade tips, that is, gradle won´t tell you that a newer version is available. Will you cover that in your next video?
@tinykingcontractor1396
@tinykingcontractor1396 9 месяцев назад
I still would rather to use version catalogs.
@akashkumardas6521
@akashkumardas6521 9 месяцев назад
You are so dependent on dependencies, try to get rid of it. 😅
@tinykingcontractor1396
@tinykingcontractor1396 9 месяцев назад
@@akashkumardas6521 Already dependent. No way out of it :))))
@krzysztof872
@krzysztof872 6 месяцев назад
I also think you should remove "THIS Is How You Need to Do It" and move into catalogs and group dependencies in bundles section
@sabbib007madness
@sabbib007madness 9 месяцев назад
gradle recommends to use composite builds over buildSrc
@ArthurKhazbs
@ArthurKhazbs 9 месяцев назад
As far as I know, in Preview versions of Android Studio a TOML version catalog is the default option for dependency management
@DevDiscipline
@DevDiscipline 4 месяца назад
this is the best thanks !
@patriciorodriguez6678
@patriciorodriguez6678 9 месяцев назад
Thank you!
@ThwriktoKavlerwf
@ThwriktoKavlerwf 9 месяцев назад
version catalogs seem more intuitive for managing dependencies for all modules. great usecase for using the gradle buildSrc
@unknownBoy85lover
@unknownBoy85lover 9 месяцев назад
I enjoy your videos sir 😎 thank you
@SiamakAshrafi
@SiamakAshrafi 9 месяцев назад
You need to learn how to use a TOML file with version catalog.
@xeriwin
@xeriwin 6 месяцев назад
Cool Video😁👍. I just have one question: Why didn't you write the room()-Function as an Extension of DependencyHandlerScope, because then you would not need those extra Helper Functions. I already tried this out some time ago and it worked perfectly fine. Or is this considered a bad practice?
@nymexe
@nymexe 9 месяцев назад
I think I'll go with the grade versions catalogs
@blankname
@blankname 9 месяцев назад
Man I thought it was gonna be a video about DI in multi-module app xD. Anyway it would be better to use version catalogs. The new Android Studio also supports it fully now.
@md.shamimhossain2971
@md.shamimhossain2971 9 месяцев назад
Waiting for next video
@JazzyJesterTechPing
@JazzyJesterTechPing 9 месяцев назад
Nice !
@davidluna9722
@davidluna9722 4 месяца назад
I believe you can achieve same thing with Versions Catalog bundles ¿right?
@aldaricJohnes
@aldaricJohnes 9 месяцев назад
use bundles in gradle catalog, gradle is already slow enough, no need to add extra overhead to your builds with buildSrc and the likes
@qasimgull
@qasimgull 9 месяцев назад
i want to learn Flutter/Dart, but because of this guy im with kotlin 😅
@asifsk4448
@asifsk4448 9 месяцев назад
How can we create separate module that only have apis call or repository What is best practices
@ErnaniJr
@ErnaniJr 9 месяцев назад
Kotlin 1.9.0 and Dagger Hilt 2.48 It changes a lot and I don't know if it's possible because the kapt was removed
@merajhossenakibakib8369
@merajhossenakibakib8369 9 месяцев назад
@Philipp I have a request. Can you please add sequence to the Playlist? I don't know where to start and where to go from there😅😅😅
@kivan26
@kivan26 6 месяцев назад
Why the project level gradle specified plugins using plugins { id .. version .. apply false } syntax, and buildSrc gradle file uses dependencies { .. } syntax? Can you clarify that, please?
@1997SlyCooper
@1997SlyCooper 4 месяца назад
is there a playlist with all the videos around multi module?
@Vishal-ng2xb
@Vishal-ng2xb 5 месяцев назад
fantastic
@abada-s
@abada-s 9 месяцев назад
Great content 🔥
@lazydeveloper7753
@lazydeveloper7753 8 месяцев назад
Hilt is not working dude. Help me out here
9 месяцев назад
i'm just curious can i apply in java android project?
@skyrin3177
@skyrin3177 9 месяцев назад
Cool 🚀
@fabianoaugustodemello3582
@fabianoaugustodemello3582 9 месяцев назад
How the DependencyHandler extension function would be for a dependency like testImplementation("whatever") { exclude(group = "whateverGroup", module = "whateverModule") } ?
@fabianoaugustodemello3582
@fabianoaugustodemello3582 8 месяцев назад
Found an answer: fun DependencyHandler.testImplementation( depName: String, dependencyConfiguration: ExternalModuleDependency.() -> Unit = {} ) { add(“testImplementation”, depName, dependencyConfiguration) }
@GgObj
@GgObj 9 месяцев назад
Hello, Philip, I would like to know from you: is it worth learning xml or is it worth going straight to compose?
@faisalnaseer798
@faisalnaseer798 9 месяцев назад
for legacy projects you may need it similarly as you need java
@sreebehra
@sreebehra 3 месяца назад
I guess version catalog provide same feature as buildSrc..
@farazbaloch1338
@farazbaloch1338 9 месяцев назад
sir Please make a video on Smsmanager in android Api level 33
@binqiangliang4745
@binqiangliang4745 9 месяцев назад
This is not the best solution for dependency management, a change in buildSrc will causes the whole project to become out-of-date.
@Hooperlink
@Hooperlink 9 месяцев назад
GOAT
@dineshk7830
@dineshk7830 9 месяцев назад
Why would anyone want to go through all of these when we could manage the dependency for all the modules using the version catalog, which let's me manage all the dependency versions in one place.
@truepicksyt3323
@truepicksyt3323 9 месяцев назад
The title should be "Gradle Dependency Management...."
@koncinar
@koncinar 9 месяцев назад
Right! Half of the video I was thinking "that's a long introduction into DI" until I realized he named it ambiguously
@icodethis
@icodethis 9 месяцев назад
goat
@vaibhavpatil8297
@vaibhavpatil8297 9 месяцев назад
Can we have some videos on Android hardware please
@PhilippLackner
@PhilippLackner 9 месяцев назад
Coming
@vaibhavpatil8297
@vaibhavpatil8297 9 месяцев назад
@@PhilippLackner thank you so much💜
Далее
Jonathan Blow on why C++ is a bad language for games
13:45
Multi-module Android App Tutorial
17:04
Просмотров 7 тыс.
I Built 100 Homes And Gave Them Away!
09:36
Просмотров 30 млн
Gradle Course for Beginners | Get Going with Gradle
56:59
Dependency Injection | Prime Reacts
28:34
Просмотров 301 тыс.
These Coding Projects Give You An Unfair Advantage
14:39
Gradle Was Hard Until I Learnt This INSANE Secret
6:16
2 Years Of Learning C | Prime Reacts
22:24
Просмотров 247 тыс.