Skip to content

Commit

Permalink
Release version 0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Mielczarek committed Oct 31, 2016
1 parent 7ca7d71 commit e5e484a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
```

Expand All @@ -34,10 +34,18 @@ dependencies {
```java
@AppContext
@ActivityContext
@FragmentContext
@ServiceContext
@ReceiverContext
@ProviderContext
@RestEndpoint

@ContextApp
@ContextActivity
@ContextFragment
@ContextService
@ContextReceiver
@ContextProvider
```

- scopes
Expand Down Expand Up @@ -98,15 +106,15 @@ public class MyApplication extends Application implements ComponentProvider<AppC

```java
DaggerMainComponent.builder()
.appComponent(Napkin.provideComponent(context, AppComponent.class))
.appComponent(Napkin.<AppComponent>provideComponent(context))
.build()
.inject(this);
```

- in case you just need component you can use:

```java
AppComponent appComponent = Napkin.provideComponent(context, AppComponent.class);
AppComponent appComponent = Napkin.<AppComponent>provideComponent(context);
```

- with [Retrolambda](https://github.com/evant/gradle-retrolambda) you can use:
Expand All @@ -120,6 +128,11 @@ DaggerMainComponent.builder()

## Changelog

### 0.4.0 (2016-10-31)

- add new annotations
- delete method for retrieving component by Class<T>

### 0.3.0 (2016-10-25)

- update SDK
Expand Down
2 changes: 1 addition & 1 deletion napkin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e5e484a

Please sign in to comment.