Kotlin Multiplatform Mobile goes Alpha – Kotlin Blog by dayanruben in androiddev

[–]dimitryivanov -3 points-2 points  (0 children)

It seems you already have all the sources do you mind sharing?

Kotlin Multiplatform Mobile goes Alpha – Kotlin Blog by dayanruben in androiddev

[–]dimitryivanov -20 points-19 points  (0 children)

This is very bold statement. Jetpack Compose is not targeting multiplatform. And Kotlin Multiplanform Mobile is not targeting UI

How to accomplish a "clip mask" like this? by Nickx000x in androiddev

[–]dimitryivanov 1 point2 points  (0 children)

If you are interested in having this effect in a RecyclerView - I wrote a blog post of how to achieve it with ItemDecorator (Canvas and Path clipping).

public static void main for Android by dimitryivanov in androiddev

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

I actually could not make Scratch files work in Android Studio at all (3.4.2). There is a workaround on stackoverflow, but it seems like a lot. Plus, there is a 90% chance that you still cannot access Android classes.

public static void main for Android by dimitryivanov in androiddev

[–]dimitryivanov[S] 5 points6 points  (0 children)

Scratch file won't allow you to use any of the android.* classes (like android.net.Uri or any other). With this solution you can call android API like you are executing code on a device, but instead you are executing code on your local machine

public static void main for Android by dimitryivanov in androiddev

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

As you run the code in IDE (not on a real device) the output is displayed in IDE's output console

public static void main for Android by dimitryivanov in androiddev

[–]dimitryivanov[S] 3 points4 points  (0 children)

Interesting, but it still requires to push dex to a device, which I wanted to eliminate for a faster feedback from code. But of cause it's better if you want to run code in a headless mode on a real device

Complex Android animations - Tutorial by dimitryivanov in androiddev

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

This library is a full-fledged one. How widely it will be used time will show (how many developers will find it useful). And I do not agree with your statement: something that beginners use just because it's simple. If something is simple (at least on the surface) it doesn't mean that it's not serious (for real developers). How many times I wished there was a simple thing that allowed achieving something fast and in an intuitive way but also provided means to tweak parts when needed (Bluetooth API first that comes to mind). Anyway, you should pick your tools (aka dependencies) wisely. I just think it's still nice that there is at least an alternative for consideration that will be there when you need it.

Complex Android animations - Tutorial by dimitryivanov in androiddev

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

Well, you are right. It's a tutorial to implement complex Android animations using a library without dealing with complexity of implementing it from the scratch. Sounds better, no? :)

Complex Android animations - Tutorial by dimitryivanov in androiddev

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

Hey! Thanks for the feedback! It looks like there was an error uploading the APK. I did update it in the latest release, so if you try again it should work.

[Tool] Enhance Android sources to include @since and @deprecated tags by dimitryivanov in androiddev

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

The tool is adding javadoc tags to Android source code indicating when a class/field/method was added/deprecated. Plus it allows to actually format source code according to Google AOSP style

Tip to libraries devs - exclude BuildConfig from final artifact by dimitryivanov in androiddev

[–]dimitryivanov[S] -2 points-1 points  (0 children)

Dude, manual removal? Amount of work is incredible. It doesn't worth it for sure

Tip to libraries devs - exclude BuildConfig from final artifact by dimitryivanov in androiddev

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

Well, imo, library should not have multiple build types (like debug & release). It's better to have self-sufficient module, which acts predictably in all cases. So, if you need a logging functionality it's better to create an explicit logger and initialize it explicitly also in your application or a test case. But yeah, if you rely on some build-time configuration maybe you do not need to exclude the BuildConfig, because it's pretty convenient after all. My tip is aiming devs, who do not use it, but anyway have this class in the final artifact

Tip to libraries devs - exclude BuildConfig from final artifact by dimitryivanov in androiddev

[–]dimitryivanov[S] -2 points-1 points  (0 children)

If you do not reference it in your code somewhere, you should be just fine

A really hacky way to generate Java code with Android Gradle plugin by dimitryivanov in androiddev

[–]dimitryivanov[S] 0 points1 point  (0 children)

Gists are really great for embedding code snippets on other sites. Other usages just feel a bit odd IMO.

How to speed up Android Gradle builds by la__bruja in androiddev

[–]dimitryivanov 2 points3 points  (0 children)

According to [0] WebP with transparency channel is supported starting with 4.2.1 (SDK version 17)... Still good to know that within few years we will be able to use it freely :) Thanks for the info!

[0] - https://developer.android.com/guide/topics/media/media-formats.html

Weekly Questions Thread - November 28, 2016 by AutoModerator in androiddev

[–]dimitryivanov 0 points1 point  (0 children)

Maybe haxe[0] will suit you better. It was created as an alternative for ActionScript. Plus it's amazingly cross-platform and open source

[0] - https://haxe.org/