Android Studio 2.2 JDK 7 fix

After update to Android Studio 2.2 I received compile time issue:

Error:Error converting bytecode to dex:
Cause: Dex cannot parse version 52 byte code.
This is caused by library dependencies that have been compiled using Java 8 or above.
If you are using the 'java' gradle plugin in a library submodule add
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
to that submodule's build.gradle file.

Continue reading Android Studio 2.2 JDK 7 fix

Atlassian Skate js magic option

Atlassian JIRA 7 has a new dependency – Skatejs. This post is not about advantages of the library but side-effect of the last one.

Preamble

So, this library can be a reason of slow UI rendering, e.g. in JIRA custom fields or any kind of long HTML markup, because Skate listens by default to any DOM node manipulations (creation, deletion).

Solution

To avoid slow rendering of long content, it is sufficient to add only “data-skate-ignore” attribute to root element of long HTML content:

<div data-skate-ignore>
<!-- long content -->
</div>

This attribute prevents content from Skate handling therefore performance of rendering will be increased.