Post Image

TIP: Lightweight Rich Text View

A very common request is support for rich text in Codename One, this is hard to do in a generic/performant cross platform way but can be done as I explained in my answer here. This is pretty common though so it might be worth it doing this in a generic way.

Read More
Post Image

Questions of the Week 43

Surprisingly the big VM update we had last week didn't trigger any major regressions but we did break some versioned build behavior with the string obfuscation feature. Todays update is far more tame and should mostly include minor bug fixes and not to many new/disruptive features.

Read More
Post Image

ToastBar Actions & URLImage Caching

I wrote on the Friday post about a few cool pull requests from Diamond but I didn't provide a usage example for that API. Probably the best usage example is gmail style undo. If you are not a gmail user then the gmail app essentially never prompts for confirmation!

Read More
Post Image

Obfuscated Constants

One of the first things a hacker will do when compromising an app is look at it. E.g. if I want to exploit a bank's login UI I would look at the label next to the login and then search for it in the decompiled code. So if the UI has the String "enter user name and password" I can search for that.

Read More
Post Image

ParparVM Optimizations: Java on iOS now 2.8x Faster

TLDR: ParparVM is now up to 2.8x faster, and produces binaries that are 15%-20% smaller than before.

Read More
Post Image

TIP: Use iOS CocoaPods Dependencies in Native Code

Last week I talked about using gradle dependencies to build native code, this week I'll talk about the iOS equivalent: CocoaPods. We've discussed CocoaPods before but this bares repeating especially in the context of a specific cn1lib like intercom.

Read More
Post Image

Questions of the Week 42

This weeks update will go out a bit late or maybe even tomorrow. The reason for the postponing is the scope of the changes. We've made a lot of changes to ParparVM and we are very concerned that there will be regressions. So we would like this update to go in later in case we need to revert that work. Steve wrote a detailed post about the changes he made to ParparVM which we will post next week...

Read More
Post Image

Moving to 64bit by Default

When building an iOS debug version of the app we only build a 32bit version to save build time. Otherwise the build will take almost twice as long as every file would be compiled twice. This worked well and was also fast enough. However, Apple started sending warnings to old 32bit apps and mistakes our apps as such.

Read More
Post Image

Autosizing, Add All & iOS Redirects

One of the common requests we received over the years is a way to let text "fit" into the allocated space so the font will match almost exactly the width available. In some designs this is very important but it's also very tricky. Measuring the width of a String is a surprisingly expensive operation on some OS's. Unfortunately, there is no other way other than trial & error to find the "best size".

Read More
Post Image

Block Copy/Paste & Faster Performance on iOS

I discussed both of these last week but we've made some progress that warrants a dedicated post. We added a new feature that allows you to block copy & paste on a text component either globally or on a case by case basis. This is helpful for highly sensitive applications.

Read More