←  Operating Systems

ComputerCraft | Programmable Computers for Minecraft

»

[CC 1.79] [Adv. Pocket Computer] craftAndr...

Piorjade's Photo Piorjade 17 Feb 2017

craftAndroid - The OS for Adv. Pocket Computers

Information:
Spoiler

The APIs available for apps:
lib.craftAndroid:
Spoiler

lib.candroid:
Spoiler

Information on packages:
Packages are simply SERIALIZED tables containing minimal metadata for the package and every file/folder it includes. They are also encrypted using the password "cAndroid". (Here is the encryption API)
Example package:
{
  files = {
    "startup",
  },
  folders = {

  },
  fileData = {
    "print('hello')", --The fileData table is sorted for the order of the files, meaning that the first entry belongs to the first file in the files table
  },
  name = "myApp",
  type = "user",
  size = 0,
}
Now you only need to serialize and encrypt this table using the given API

NOTE: If you want to use a custom icon for the app, make a file called "img" (should be inside the "root" of the package) (should be made with paint)

Credits:
PixelToast - The encryption API

Screenshots:
Here's a gallery.

Download / Code:
NOTE: There is currently no pastebin downloader, as it's still WIP and I didn't have the time for it. To download, download the ZIP from GitHub and put it into your folder of your Adv. Pocket Computer
GitHub
Quote

ObloxCC's Photo ObloxCC 17 Feb 2017

Icons look kind of tight, but other than that it looks good
Quote

GreenByteSoftware's Photo GreenByteSoftware 27 Mar 2017

If you need to just clone all the files run this:
pastebin run W5ZkVYSi Piorjade craftAndroid
Quote