From e5e484a80a3a827d9d665196b930f05ab74e68f5 Mon Sep 17 00:00:00 2001 From: Aleksander Mielczarek Date: Mon, 31 Oct 2016 14:45:03 +0100 Subject: [PATCH] Release version 0.4.0 --- README.md | 19 ++++++++++++++++--- napkin/build.gradle | 2 +- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b090e2d..bc7f01a 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Add the dependency ```groovy dependencies { - compile 'com.github.AleksanderMielczarek:Napkin:0.3.0' + compile 'com.github.AleksanderMielczarek:Napkin:0.4.0' } ``` @@ -34,10 +34,18 @@ dependencies { ```java @AppContext @ActivityContext +@FragmentContext +@ServiceContext +@ReceiverContext +@ProviderContext @RestEndpoint @ContextApp @ContextActivity +@ContextFragment +@ContextService +@ContextReceiver +@ContextProvider ``` - scopes @@ -98,7 +106,7 @@ public class MyApplication extends Application implements ComponentProviderprovideComponent(context)) .build() .inject(this); ``` @@ -106,7 +114,7 @@ DaggerMainComponent.builder() - in case you just need component you can use: ```java -AppComponent appComponent = Napkin.provideComponent(context, AppComponent.class); +AppComponent appComponent = Napkin.provideComponent(context); ``` - with [Retrolambda](https://github.com/evant/gradle-retrolambda) you can use: @@ -120,6 +128,11 @@ DaggerMainComponent.builder() ## Changelog +### 0.4.0 (2016-10-31) + +- add new annotations +- delete method for retrieving component by Class + ### 0.3.0 (2016-10-25) - update SDK diff --git a/napkin/build.gradle b/napkin/build.gradle index 1a927e7..de08e8f 100644 --- a/napkin/build.gradle +++ b/napkin/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'com.github.dcendents.android-maven' group = 'com.github.AleksanderMielczarek' def versionMajor = 0 -def versionMinor = 3 +def versionMinor = 4 def versionFix = 0 android {