Google's Inbox uses open source tools to reuse 70% of code across Android, iOS, web
Linux - NewsThis forum is for original Linux News. If you'd like to write content for LQ, feel free to contact us.
All threads in the forum need to be approved before they will appear.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602
Rep:
Google's Inbox uses open source tools to reuse 70% of code across Android, iOS, web
Quote:
Launching a new app in the mobile age is hard. If you want to reach a wide audience, you usually have to make your client three times at minimum: once for Android, once for iOS, and once more for the Web. Building an app on three different platforms means three times the work, with three times as many bugs to squish. To make matters more complicated, these clients all use different programming languages: Objective-C and/or Swift for iOS, Java for Android, and JavaScript/CSS/HTML5 for the Web.
It's a problem Google decided to tackle when it was developing the recently launched reimagining of Gmail, called Google Inbox. With Inbox, Google adopted a set of tools that allowed it to tame the three-headed platform hydra. The app shares roughly two-thirds of its code across Android, iOS, and the Web.
These three platforms share most of the back-end logic that powers the app, while the unique parts are mostly the user interfaces for each app. That gives Inbox a native feel and OS integration on each platform. Google has built itself a good enough arsenal of cross compilers that it can write an app's logic once for Android—in Java—and can then cross-compile to Objective-C for iOS and JavaScript for browsers. Java-to-JavaScript is handled by the Google Web Toolkit SDK, which has been around for some time. The real enabler for Inbox is called J2ObjC, which, as the name implies, converts Java code meant for Android into iOS-ready Objective-C code.
J2ObjC is a open source project which Google went public with last year. The project was previously used in Google Sheets (the spreadsheet part of Google Docs), but Inbox is Google's biggest use of the project to date.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.