Git Product home page Git Product logo

daggertemplate's Introduction

DaggerTemplate

Template for Android Studio wizard for projects using Dagger Create new folder in %Android Studio install directory%\plugins\android\lib\templates\activities\ and name as you wish Copy everything from repo to fresh created directory and if you have Android Studio opened close it and run again. Then when you will be creating new project for Android you should see along with Basic Activity or Empty Activity the template named Dagger App.

Poorly, I didn't manage to write template for some sections for project, so you have to configure them for yourself as described below and in file which you will see after project has been created.

You can configure project with wizard to use common libraries:

  1. Retrofit 2b4
  2. OkHttp 3
  3. GsonConverterFactory
  4. EventBus 3
  5. RxJava and RxJavaCallAdapterFactory

While using this template for Dagger type project remember to:

  1. In Project: build.gradle: Add APT plugin: classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
  2. In your module's build.gradle: 2.1 Apply APT plugin: apply plugin: 'com.neenbedankt.android-apt' 2.2 change compile 'com.google.dagger:dagger-compiler:2.0.2' to apt 'com.google.dagger:dagger-compiler:2.0.2' 2.3 change compile 'org.glassfish:javax.annotation:10.0-b28' to provided 'org.glassfish:javax.annotation:10.0-b28'
  3. In your AndroidManifest: add: <application android:name=".${applicationClass}" ....

daggertemplate's People

Contributors

masztalski avatar

Watchers

James Cloos avatar Nikhil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.