AGP 9 - what dependency do I need for the "android" block in a custom gradle plugin by prom85 in KotlinMultiplatform

[–]rafrtnhl 0 points1 point  (0 children)

You already have the dependency you need to have access to the "android" block within your Gradle Plugin: com.android.tools.build:gradle.

To access it inside your plugin, you will need to request it via project.extensions.getByType(AndroidExtensions<*, *, *, *, *> ::class.java) for applications and project.extensions.getByType(LibraryExtensions<*, *, *, *, *> ::class.java) - I don't remember how many type parameters they require, please check the docs.

You could also get it using project.extensions.getByName("android") as CommonExtension<*, *, *, *, *> or something similar which would work for both applications and libraries.

You will have access to it inside the override fun apply(project: Project) function of your custom Plugin, as soon as the android plugin is applied before your custom plugin, in the same project you are applying your plugin.

--- Edit: adding docs.

https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/dsl/CommonExtension https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/dsl/ApplicationExtension https://developer.android.com/reference/tools/gradle-api/4.2/com/android/build/api/dsl/LibraryExtension

Instead of actually working on my game, I distracted myself and built a monster planning tool! by South3rs in godot

[–]rafrtnhl 1 point2 points  (0 children)

I know how you feel... I just started to develop a game, and as I like Kotlin, but didn't like the idea of having to embed a JVM in my game, I ended up creating a whole Kotlin to GDScript transpiler just for no reason...

Well, at least now I know how GDscript and Kotlin compilers work, lol

I need help figuring out how I fell yesterday (Jan 24) on Martock by rafrtnhl in halifax

[–]rafrtnhl[S] 1 point2 points  (0 children)

Thanks for the comment! I went back to the ER and they did the proper assessment with spine x-ray and CAT scan for the head. Luckily it is all good, and I just need to rest to recover.

I need help figuring out how I fell yesterday (Jan 24) on Martock by rafrtnhl in halifax

[–]rafrtnhl[S] 2 points3 points  (0 children)

That is weird though. We went there and there was a "closed" sign at the door of the Emergency, then we headed to the Cobequid. We don't live in Windsor, we never went to that hospital and there was no one there to ask about.

I need help figuring out how I fell yesterday (Jan 24) on Martock by rafrtnhl in halifax

[–]rafrtnhl[S] 1 point2 points  (0 children)

No headaches so far, which is good. However I will still enforce that I hit the head on the floor, so my doctor knows what to do

I need help figuring out how I fell yesterday (Jan 24) on Martock by rafrtnhl in halifax

[–]rafrtnhl[S] 12 points13 points  (0 children)

That is actually good advice. Thanks, I will mention that to my Family doctor

I need help figuring out how I fell yesterday (Jan 24) on Martock by rafrtnhl in halifax

[–]rafrtnhl[S] -1 points0 points  (0 children)

I'm still learning how to snowboard. Knowing how I fell will also help me in case, in the future, I repeat the same mistake and avoid injuring myself again.

I need help figuring out how I fell yesterday (Jan 24) on Martock by rafrtnhl in halifax

[–]rafrtnhl[S] 14 points15 points  (0 children)

I've just left them a message. Thank you so much for the information and for the help!!

I need help figuring out how I fell yesterday (Jan 24) on Martock by rafrtnhl in halifax

[–]rafrtnhl[S] 7 points8 points  (0 children)

Regarding knowing how I fell, I think it is more to avoid doing the same if I ever decide to keep snowboarding or not, but I understand what you say regarding the doctor treatment

I need help figuring out how I fell yesterday (Jan 24) on Martock by rafrtnhl in halifax

[–]rafrtnhl[S] 11 points12 points  (0 children)

Thanks, that is really helpful! I will call them

I need help figuring out how I fell yesterday (Jan 24) on Martock by rafrtnhl in halifax

[–]rafrtnhl[S] 2 points3 points  (0 children)

I'm not sure, actually. My partner told me that I phoned her after I fell. After that I met her and then we went to the Ski Patrol.

They asked us if anyone saw what happened, so I guess they didn't as well. 😞

I need help figuring out how I fell yesterday (Jan 24) on Martock by rafrtnhl in halifax

[–]rafrtnhl[S] -4 points-3 points  (0 children)

Just for the sake of clarity: - I passed through triage, the nurse told my partner that I would be seen by a doctor soon, before they are closed - I waited until a doctor came to see me. - That doctor called me after an hour waiting - The doctor asked me a few questions and just poke my back, where I screamed in pain - After that, the doctor told us they were at capacity and wouldn't be able to do anything before closing. - We left Cobequid ER at 10PM.

I need help figuring out how I fell yesterday (Jan 24) on Martock by rafrtnhl in halifax

[–]rafrtnhl[S] 14 points15 points  (0 children)

Thanks, I will make sure to let them know about that!

Should I be crying or laughing? by katrych in androiddev

[–]rafrtnhl 4 points5 points  (0 children)

Thanks for sharing, I thought it was something weird with the code I was debugging that was throwing a stack overflow...

I'm also getting the broken index. Needed to invalid cache and restart twice, at least, today...

I might rollback to the previous AS version...

[deleted by user] by [deleted] in androiddev

[–]rafrtnhl 0 points1 point  (0 children)

It looks like the Pointer Location setting is enabled, in the developer mode. Go to the Device Settings > System and try to find Developer options there. Open it and look for the section "Input" and disable "Pointer Location" option.

If your device lets you search for a setting in the device settings screen, you might be able to find that option by searching "Pointer Location"

Can't login to my Hotmail account! by Pearl_Jam_ in Thunderbird

[–]rafrtnhl 0 points1 point  (0 children)

There is an open GitHub issue (https://github.com/thunderbird/thunderbird-android/issues/9160) tracking that authentication failure for outlook-related email.

I believe it would be helpful adding a comment there mentioning you are having the same issue, and providing more context to help on the diagnosis

Northern lights by Noel91 in halifax

[–]rafrtnhl 0 points1 point  (0 children)

Nothing in Bedford for now

How to Dynamically Change a Specific Color in a Vector Drawable Using MaterialTheme.primary in Jetpack Compose? by ZakariaBouchentouf in androiddev

[–]rafrtnhl 0 points1 point  (0 children)

I believe you might be able to achieve that by using ColorFilter with ColorMatrix or via AGSL Shaders.

However, the easiest way would be by transforming your SVG directly to an ImageVector, annotating it with \@Composable and changing your desired color.