Auto deploy .apk to Android Things using gitlab ci scripting - android-things

I recently started in a project where Android Things is used.
When I joined the team, I read up on Android Things.
I very much like the Android Things Console and the way it can push updates.
However, instead of uploading a new version of an apk by clicking around in the webUI of Android Things Console I would prefer uploading a new version to Android Things console by using some scripting (preferably in gitlab CI).
Does anyone here know of a way to do that?
I can't find anything about this in the Android Things documentation.
Thanks in advance!

At this time, there is no API you can use to upload APKs. You will need to do it manually via the Android Things Console. But I do understand how this would be helpful for your workflow.

Related

Smartface Creating an iOS plugin

I've installed the CLI tools.
Now what do you do in order to make a plugin.
I've tried looking at the guides however I can't figure out exactly what to do?
I'm also puzzled as to where you create the plugin whether It's on The Command Prompt or Node.js or the Smartface Studio itself.
To create a plugin, you need native environment from the system. In your case, XCode.
My reccomendation to learn plugins is this tutorial by Smartface Team: https://www.smartface.io/developer/guides/plugins/hello-world-with-ios-plugin/
This is the most basic plugin you could write, but it still shows the fundamentals of plugin writing for Smartface.
P.S. You will need a Mac to develop iOS plugins (just to be sure that you know that).
Hope that helps! :)
EDIT
I was revisiting this question and I realized that I was very vague...
To answer your question, you have to develop your plugin in Native Environment (as I said), and when you build it's package, you have to put it in the same directory of the other files you'll need (PluginConfig and all of that), and run, in command prompt, the command to make the output.zip file.
Now it's better :)

What would be the best way to create a firefox plugin for taking desktop screenshots?

I need to create a firefox plugin that allows a user to take screenshots of any part of their desktop and have them uploaded to a server. There seems to be lots of plugins for screen capturing a webpage, but nothing for capturing anything outside of firefox. So after a little research I have not found much information on how this might be possible. I don't want to resort to a using a java applet but I will if that is my only option.
Does anyone have advice on how I might create such a feature?
Thanks
I don't think a Firefox addon is the most appropriate approach here. Maybe split the task into a Firefox addon to offer the "upload to a server" component and a native app to do the desktop screenshot (or just integrate with existing screenshot tools).
If you're worried about complicating the installation process for end users, you could look into bundling the addon component and native app into a single installer (e.g. MSI on Windows, RPM on Linux, etc.). You'll have to come up with different apps for each platform you want to support (and maybe even each version - e.g. Windows XP vs Windows 10).
Whatever you decide, you'll probably need to create a more specific question to get further help here (there's no simple Firefox.Addons.API.TakeScreenShot() answer I'm afraid).
Also make sure you're using the right terminology - a plugin is the deprecated NPAPI approach whereas addons are still supported.
I'm actually working on taking native desktop screenshots just in the last coupel of days. I'm using js-ctypes. My work goal is the same exact thing to, upload to server. If you would like to collaborate I am very open to it! We can chat about it on #jsctypes irc channel :) irc://moznet/jsctypes (Mibbit IRC WebApp) If you don't know js-ctypes thats ok i can handle that while you can handle uploading techniques, and an editor on canvas :) The editor is a huge part of it, you can see my ideas/plans here: https://github.com/Noitidart/NativeShot/wiki/NativeShot
I'm really really interested in a collab on this!
I'm still working on windows right now, the color is messed up: https://github.com/Noitidart/NativeShot/tree/digitanks-method
I was just about to start OSX work following this example here: https://developer.apple.com/library/mac/samplecode/SonOfGrab/Introduction/Intro.html and here: Take ScreenShot without Window
You can install the addon from that branch and click the icon that gets added to the toolbar, it will take a screenshot with 3sec delay and then append it to the body of the selected tab. (Windows only right now)
Doneskis baby check it out: https://addons.mozilla.org/en-US/firefox/addon/nativeshot/
Got some quirks. Released it as v1.0 though. I'm working on Android support, pretty close. I need to flesh out the editor tools. Please let me know if you're willing to collaborate.

Web app to a packaged app with Dart

I've been struggling with this for a few hours now. I've looked around and I believe I'm doing everything correctly, but it's just not working. Just for fun, I'm taking the sample Dart stopwatch and making it into a Chrome packaged app. It works flawlessly in both Dartium Chrome(via dart2js) when it's a simple web app, however as a packaged app it works in neither. The dart code simply doesn't work. Are there additional steps I need to perform to make Dart work in a web app?
Thank you very much for any help you can provide!
There are a few caveats when writing a packaged app in Dart. One is related to symlinks (packaged apps don't like them, and pub uses them), and the other is related to dart2js (you need to compile with the --disallow-unsafe-eval flag).
If you're using the Editor, you can create a new chrome packaged app from the wizard. This will set up a project that handles both issues above. I'd do that and make sure it runs, and then copy your web app into that project.

Node.JS Development on iOS?

I'm wondering if there is any chance to run Node.JS on iOS to develop as on desktop? I definitely realize I must have jailbroken iPad to install node or mongodb. The only I've found is good code editor Diet Coda with FTP/SSH support, but no more. How can I get node in "real" terminal on iPad, launching my .js files on certain port etc?
P.s. I'm not big fan of cloud9 'cause it's requires Internet connection and at this time supports only node 0.6
Found a so-so solution: connect to my server via ssh and develop my app in console. But it requires internet connection, that's not good.
A quick search reveals NodeJS on iOS.
The long story short is that I got NodeJS compiled on my jailbroken iPhone 4! It was a long quest to get it working properly but I've done the hard work and compiled a .deb file compatible with Cydia for your installing pleasure...
It's a year and a half old, so the article might be a little out of date, but it's definitely a good starting point. See also how to set up gcc if you need to do that on your iOS device.
Aside: If you're a rooted Android developer, you may be interested in anode.
I am working on an implementation of Node.js on non-jailbroken iOS devices.
http://www.youtube.com/watch?v=xzFH80-HYTo
It is not ready for a public consumption yet, but I am making a good progress and have a plan to open-source it soon.
You can use node.js on iOS without jailbreaking, and without violating any Apple
terms of service. LiquidCore is an open source project that enables node.js on both Android and iOS for deploying micro applications. iOS support is now available from version 0.5.0.
CodeSandbox for iOS works amazingly well, though it's not a console interface.
CodeSandbox for iOS offers a full-fledged development environment with all the tools you need to develop projects of any size. Create a sandbox to quickly prototype your ideas or work on a large codebase with CodeSandbox Projects: whatever your needs are we have you covered.
I've wondered how much work I could get in something like the IconFactory's WorldWideWeb. That company has been around a while, and WWW makes it easy to do work in a browser-hosted environment.
So CodeSandbox almost answers your question, and, if it disappears at some point, WorldWideWeb might be a fallback in a pinch.

How to create an update on iOS

Hi i'm trying to create and distribute an update/patch for my app on app store.
Does anyone know how to made it in the best way?
Thanks
Apple does not have an interface for hot-patching production native apps, if it's a hybrid app many of the JavaScript platforms allow to upload new JS, so some functionality might be fixed / replaced / etc.
I have also seen more hardcore solutions like this one a Lua script that you can load and patch your app remotely (might be in Apple's gray lines)
We # Rollout.io created an SDK that allows you to remotely hot-patch native production applications, you can read more on how here.
Disclaimer: I'm a Rollout.io co-founder.
There's no such thing as a patch or pure update - you release a full version of the app with the changes you require.

Resources