LightningContent

Content module of the Storm Framework

Лицензия

Лицензия

Категории

Категории

IDE Инструменты разработки ORM Данные
Группа

Группа

com.3sidedcube.storm
Идентификатор

Идентификатор

content
Последняя версия

Последняя версия

0.1a
Дата

Дата

Тип

Тип

aar
Описание

Описание

LightningContent
Content module of the Storm Framework
Ссылка на сайт

Ссылка на сайт

https://github.com/3sidedcube/Android-LightningContent.git
Система контроля версий

Система контроля версий

https://github.com/3sidedcube/Android-LightningContent.git

Скачать content

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.3sidedcube.storm/content/ -->
<dependency>
    <groupId>com.3sidedcube.storm</groupId>
    <artifactId>content</artifactId>
    <version>0.1a</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.3sidedcube.storm/content/
implementation 'com.3sidedcube.storm:content:0.1a'
// https://jarcasting.com/artifacts/com.3sidedcube.storm/content/
implementation ("com.3sidedcube.storm:content:0.1a")
'com.3sidedcube.storm:content:aar:0.1a'
<dependency org="com.3sidedcube.storm" name="content" rev="0.1a">
  <artifact name="content" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.3sidedcube.storm', module='content', version='0.1a')
)
libraryDependencies += "com.3sidedcube.storm" % "content" % "0.1a"
[com.3sidedcube.storm/content "0.1a"]

Зависимости

compile (7)

Идентификатор библиотеки Тип Версия
net.callumtaylor : asynchttpclient jar 1.5
org.projectlombok : lombok jar 1.14.8
com.3sidedcube.storm : util jar 0.1a
com.google.code.gson : gson jar 2.3
com.squareup : otto jar 1.3.5
com.android.support » support-annotations jar 20.0.0
org.xeustechnologies : jtar jar 1.1

Модули Проекта

Данный проект не имеет модулей.

#Storm Library - Module Content

Storm is a collection of libraries that helps make mobile and desktop applications easy to create using a high quality WYSIACATWYG editor.

This module's purpose is to load pre-packed bundles from disk and deal with content/delta updates download.

#Usage

##Gradle

Simply include the following for your gradle dependencies com.3sidedcube.storm:content:0.5.

Note The versioning of the library will always be as follows:

Major version.Minor version.Bug fix

It is safe to use + in part of of the Bug fix version, but do not trust it 100%. Always use a specific version to prevent regression errors.

##Code

In your application singleton, add the following code

ContentSettings contentSettings = new ContentSettings.Builder(this)
	.appId("3SC_STORM-1-1")
	.contentBaseUrl("http://storm.cubeapis.com/")
	.contentVersion("latest")
	.updateListener(new UpdateListener()
	{
		@Override public void onUpdateDownloaded()
		{
			Debug.out("Update downloaded!!!!");
		}
	})
	.build();

You can then check for updates by calling

// Get the current bundle/delta's timestamp
Manifest manifest = ContentSettings.getInstance().getBundleBuilder().buildManifest(Uri.parse("cache://manifest.json"));
long lastUpdate = 0;

if (manifest != null)
{
	lastUpdate = manifest.getTimestamp();
}

// Get updates since timestamp
ContentSettings.getInstance().getUpdateManager().checkForUpdates(lastUpdate);

#Documentation

See the Javadoc for full in-depth code-level documentation

#Contributors

Callum Taylor (9A8BAD), Tim Mathews (5C4869), Matt Allen (DB74F5), Alan Le Fournis (067EA0)

#License

See LICENSE.md

com.3sidedcube.storm

3 SIDED CUBE

We're an app development and digital product company that specialises in tech for good.

Версии библиотеки

Версия
0.1a