LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - News
User Name
Password
Linux - News This 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


Reply
  Search this Thread
Old 11-24-2014, 09:55 AM   #1
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
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.
More at Ars...

--jeremy
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Google Forks Open Source OpenSSL Web Security Code LXer Syndicated Linux News 0 06-24-2014 06:30 AM
LXer: Open source JavaFX coming for iOS and Android LXer Syndicated Linux News 0 02-13-2013 02:40 AM
LXer: Coming soon: Open source JavaFX for iOS, Android LXer Syndicated Linux News 0 02-12-2013 11:01 PM
LXer: Google open source guru says Android code will be in Linux kernel in time LXer Syndicated Linux News 0 03-06-2010 11:10 AM
LXer: Google Releases Android Source Code LXer Syndicated Linux News 0 10-21-2008 09:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - News

All times are GMT -5. The time now is 12:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration