googlearchive / chromedeveditor

Chrome Dev Editor is a developer tool for building apps on the Chrome platform - Chrome Apps and Web Apps, in JavaScript or Dart. (NO LONGER IN ACTIVE DEVELOPMENT)
BSD 3-Clause "New" or "Revised" License
2.92k stars 411 forks source link

Generate APK & deploy to Play Store #3125

Open Swader opened 10 years ago

Swader commented 10 years ago

When deploying to mobile, everything works fine (except for the audio issue), but there's no option (or guide on how to) create APK files from the app we loaded.

Is this possible right now, and if so, how?

ussuri commented 10 years ago

Thanks for the request. Generating APK is not possible right now, but it's high on our short list of features to implement. We'll track that here.

ussuri commented 9 years ago

This is not going to make it to M16. Moving to M17.

kennystrawnmusic commented 9 years ago

The CADT team is indeed working on an APK generator... and on top of that, I managed to get CADT running as an ARC app on my C720-2802... So, might want to work with the CADT team on this.

ussuri commented 9 years ago

We already are working with them. APK generation will be turned on by default in 0.17 (around 11/1/2014), and available under a developer flag in the upcoming 0.16 (next week).

kennystrawnmusic commented 9 years ago

Out of curiosity, how do you enable the developer flag...?

c0d3rm0nk3y commented 9 years ago

would the generate of apk be based on cordova? I am super stoked to finally close the loop and get android dev without crouton or remoting on my chromebook.

kennystrawnmusic commented 9 years ago

The Mobile Chrome App Dev Tool team is already working on an APK packager, and the mobile CADT works perfectly fine in App Runtime for Chrome. Once that team bundles the APK packager in the mobile CADT, all this team would need to do is bundle an ARC version of the CADT in the Dev Editor's CRX, for use as an emulator.

Not only would an ARC version of the Mobile Chrome App Developer Tool work profoundly as an APK packager, but also as a way to test the apps without a physical device: instead of firing up a full-blown emulator, developers could instead just use ARC to test apps. Far more seamless than an emulator too, I may add.

ussuri commented 9 years ago

Merging #2818 into here. A nice comment by @StrawnPoint04 from there:

This feature request and this one on the Dart project's issue tracker kind of go hand-in-hand: Once the Dart team works on those Dart-to-DEX and Dart-to-APK compilers, along with Android API wrappers for Dart, that I requested there, the next step would be using part of this editor as a front-end for the APK compiling. Once that is in place, the user should be able to, from the context menu, either upload an Android app project directly to the Play Store or export it as an APK for later submission.

kennystrawnmusic commented 9 years ago

On a relevant note, I've now got a working ARC port of the Chrome App Dev Tool for Android here. Yes, the port-binding issue is also fixed (screenshot attached below), so now we've only got two steps left:

  1. Implement some sort of ADB hook into ARC to allow ARC (and by extension the Android Dev Tool) to act as an ADB server
  2. Use the Android Dev Tool's implementation to package and export APK's

Yup, seems like a pretty straightforward process.

screenshot 2015-03-24 at 21 40 46