Prestige

MVC pattern for Android.

License

License

GroupId

GroupId

com.imminentmeals
ArtifactId

ArtifactId

prestige
Last Version

Last Version

0.8.6
Release Date

Release Date

Type

Type

jar
Description

Description

Prestige
MVC pattern for Android.
Project URL

Project URL

https://github.com/imminent/prestige
Source Code Management

Source Code Management

https://github.com/imminent/prestige

Download prestige

How to add to project

<!-- https://jarcasting.com/artifacts/com.imminentmeals/prestige/ -->
<dependency>
    <groupId>com.imminentmeals</groupId>
    <artifactId>prestige</artifactId>
    <version>0.8.6</version>
</dependency>
// https://jarcasting.com/artifacts/com.imminentmeals/prestige/
implementation 'com.imminentmeals:prestige:0.8.6'
// https://jarcasting.com/artifacts/com.imminentmeals/prestige/
implementation ("com.imminentmeals:prestige:0.8.6")
'com.imminentmeals:prestige:jar:0.8.6'
<dependency org="com.imminentmeals" name="prestige" rev="0.8.6">
  <artifact name="prestige" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.imminentmeals', module='prestige', version='0.8.6')
)
libraryDependencies += "com.imminentmeals" % "prestige" % "0.8.6"
[com.imminentmeals/prestige "0.8.6"]

Dependencies

compile (9)

Group / Artifact Type Version
com.google.android : annotations jar 4.1.1.4
com.jakewharton.timber : timber jar 2.0.0
com.google.code.findbugs : annotations jar 2.+
com.squareup : javawriter jar 2.2.0
com.squareup.dagger : dagger jar 1.2.0
com.squareup : otto jar 1.3.4
com.google.code.gson : gson jar 2.2.4
com.google.android : android jar 4.0.1.2
com.google.guava : guava jar 15.+

test (4)

Group / Artifact Type Version
com.google.testing.compile : compile-testing jar 0.3
org.mockito : mockito-core jar 1.9.5
junit : junit jar 4.10
org.hamcrest : hamcrest-core jar 1.3

Project Modules

There are no modules declared in this project.

The Pledge

The Turn

While "magic is for children", sometimes careful planning can turn the oridinary into something magical.

The Prestige

With Prestige.conjureSegueController(String) and an Application that implements SegueControllerApplication, you are able to create the Controllers and inject Data Sources using Prestige.conjureController(Activity) and @InjectDataSource. You should make sure to Prestige.vansihController(Activity) when the Activity is destroyed. This setup can be done in an Application.ActivityLifecycleCallbacks

public class PrestigeCallbacks implements Application.ActivityLifecycleCallbacks {
	
	@Override
	public void onActivityCreated(Activity activity, Bundle _) {
		Prestige.conjureController(activity);
	}
	
	@Override
	public void onActivityDestroyed(Activity activity) {
		Prestige.vanishController(activity);
	}
	
	// … Remaining methods are empty
}

Note: Prestige currently requires Ice Cream Sandwich to work, but backward-compatibility can be included.

Versions

Version
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8