Cool vid as always. I want to add that you dont need to use "old" style in project level build.gradle file. You can do this instead. The repository like google and maven exist in settings.gradle file. plugins { id("com.android.application") version "7.3.1" apply false id("com.android.library") version "7.3.1" apply false id("org.jetbrains.kotlin.android") version "1.7.20" apply false } tasks.create("clean") { delete(rootProject.buildDir) }
The Alt + J command would've been helpful when doing the migrations to select the next ocurrence of the selected text instead of using search and replace tool.
You can try find a pattern by including a space before or after the character you are using. Also alt click and adding multiple cursors at the end of the lines and the using hot keys like home/end or ctrl+right/left can help a lot navigating and selecting what you are trying to change much faster.
Great video Philipp. Was hoping you'd show the versions being defined in project level gradle being used in app level gradle. Is the syntax the same as Groovy?
no, and in gradle kotlin the versions are defined in the gradle.properties file, and acessed in whatever gradle file you need by writing val foo by project, which fetches the property of the same name from gradle.properties, source: ktor
To ensure a streamlined approach in handling project dependencies, it is recommended to declare the dependencies along with their respective versions in a centralized source. This will enable their use in any module at a later stage while ensuring that all modules are compatible with the same version of dependencies. This method of organization can help maintain a structured and efficient workflow in project dependencies management.
Since changing to build.gradle.kts my Bitrise workflow fails because it cant find build.gradle anymore. No idea how to fix this, can anyone give me a hint?
Hey Philipp, Can u Teach or Guide us how to solve the issues in Open Source Android Projects. Btw Thanks for The Awesome content I learned a lot from you❤❤❤
Pretty good 👍 You can remove the clean task completely now. Clean task automatically registered by default in Gradle.
thank you for the tip
I hate the issue of AS showing errors in kotlin dsl. Great video as always, I was expecting for this one since long time ago
Cool vid as always. I want to add that you dont need to use "old" style in project level build.gradle file. You can do this instead. The repository like google and maven exist in settings.gradle file.
plugins {
id("com.android.application") version "7.3.1" apply false
id("com.android.library") version "7.3.1" apply false
id("org.jetbrains.kotlin.android") version "1.7.20" apply false
}
tasks.create("clean") {
delete(rootProject.buildDir)
}
but how can i add dependencies in project level gradle file. should i add it in top level build file or settings.gradle file
What's the benefit of this, and will there be a tool to help migrate?
I think it might be hard in case of complex code there, no?
The Alt + J command would've been helpful when doing the migrations to select the next ocurrence of the selected text instead of using search and replace tool.
You can try find a pattern by including a space before or after the character you are using. Also alt click and adding multiple cursors at the end of the lines and the using hot keys like home/end or ctrl+right/left can help a lot navigating and selecting what you are trying to change much faster.
"Column selection mode" can be really useful too!
It's super cool we just migrated to DSL last month.
Learned a new shortcut ctrl + R, helpful indeed, thanks!
Pls add an video on version catalog as a continuation of this
I have a great idea for a video, what about Trusted web activity for jetpack compose ?
Why i am not able to see any link related to this project on you description?? if anyone can able to see please share
Perfect as always!
Hopefully there will be a automatic migration some day.....
The Safe Args plugin is incompatible with the Kotlin DSL. Is there any fix for this?
I was just finding this yesterday, Thanks Sir
Could've used multi line edit for the dependencies. Much easier
Kotlin DSL is fun, Thx Philip. How would ensure you put compose_ui_version in one place say at the project level?
Use a buildSrc module
Very informative 🎉
Great video Philipp. Was hoping you'd show the versions being defined in project level gradle being used in app level gradle.
Is the syntax the same as Groovy?
no, and in gradle kotlin the versions are defined in the gradle.properties file, and acessed in whatever gradle file you need by writing val foo by project, which fetches the property of the same name from gradle.properties, source: ktor
@@maskedredstonerproz thank you.
oofff! there yah go boiz!! 🎉🎉
What you say about flutter ? future is kotlin android or flutter?
Thank you Philipp you helped me a lot
Hi Philipp
Can you mention INR Amount for Android Multi-Module Architecture course
Superb explanation
Can't I use compose_ui_version variable with Kotlin Gradle files?
OK, now we need to talk about fastlane
Always Awesome
Imo you should avoid that sound effect when zooming in/out. I'd like to know what other people feel about that.
Thank you so much for this content
Amazing tutorial
May i know what is the purpose of migrating groovy to kotlin dsl?
As he mentioned for more familiarity with kotlin, it's syntax, type checking, error messages etc
To ensure a streamlined approach in handling project dependencies, it is recommended to declare the dependencies along with their respective versions in a centralized source.
This will enable their use in any module at a later stage while ensuring that all modules are compatible with the same version of dependencies. This method of organization can help maintain a structured and efficient workflow in project dependencies management.
For the search and replace, you can use the regex to solve the close quotation.
Set the matching as regex:
("|')$
What about settings.gradle?
Since changing to build.gradle.kts my Bitrise workflow fails because it cant find build.gradle anymore. No idea how to fix this, can anyone give me a hint?
Are you from Germany Philipp?
Yes
Hey Philipp, Can u Teach or Guide us how to solve the issues in Open Source Android Projects.
Btw Thanks for The Awesome content I learned a lot from you❤❤❤
let's go Australia
👍👍👍❤️❤️❤️
There is a good tool for that called gradle-kotlinize
Thanks
Pretty Cool 👍and informative. Thanks Philipp for this content
@Philipp Lackner Please check about this spam message
kotlin DSL in Now default in android studio giraffe jetpack empty project
Why make 2 language for that
541st...Thanks Philipp
Content🤌🤌🤌
فلیپ فلیپ ، این دهن مارو سرویس کرده بود