Android Open Source - ascent Demo Application Module






From Project

Back to project page ascent.

License

The source code is released under:

Apache License

If you think the Android project ascent listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package net.jamesbaca.ascent.mymodule.app;
//from  ww w  .  j ava 2  s .c om
import net.jamesbaca.ascent.Ascent;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * Created by jamesbaca on 10/17/14.
 */
@Module(
        injects = {
                MainActivity.class,
        },
        library = true
)
public class DemoApplicationModule {
    private final DemoApplication mApplication;
    private final Ascent mAscent = new Ascent();

    public DemoApplicationModule(DemoApplication application) {
        mApplication = application;
    }

    @Provides @Singleton Ascent provideLocationManager() {
        mAscent.setAssetManager(mApplication.getAssets());
        return mAscent;
    }
}




Java Source Code List

net.jamesbaca.ascent.Ascent.java
net.jamesbaca.ascent.FontHelper.java
net.jamesbaca.ascent.Font.java
net.jamesbaca.ascent.InjectedAscent.java
net.jamesbaca.ascent.demo.ApplicationTest.java
net.jamesbaca.ascent.demo.MainActivity.java
net.jamesbaca.ascent.internal.AnnotatedField.java
net.jamesbaca.ascent.internal.AnnotationsConverter.java
net.jamesbaca.ascent.internal.EnclosingClass.java
net.jamesbaca.ascent.internal.FontClassWriter.java
net.jamesbaca.ascent.internal.FontProcessor.java
net.jamesbaca.ascent.internal.WriterFactory.java
net.jamesbaca.ascent.mymodule.app.ApplicationTest.java
net.jamesbaca.ascent.mymodule.app.DemoApplicationModule.java
net.jamesbaca.ascent.mymodule.app.DemoApplication.java
net.jamesbaca.ascent.mymodule.app.MainActivity.java