Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
emilsjolander committed Jun 29, 2015
1 parent f3babab commit 0b317ef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ buildscript {
apply plugin: 'com.neenbedankt.android-apt'
dependencies {
compile 'se.emilsjolander:intentbuilder-api:0.12.0'
apt 'se.emilsjolander:intentbuilder-compiler:0.12.0'
compile 'se.emilsjolander:intentbuilder-api:0.13.0'
apt 'se.emilsjolander:intentbuilder-compiler:0.13.0'
}
```

##Usage
Annotate your activities and services with an `@IntentBuilder` annotation so that they are picked up by the library. For every class with an `@IntentBuilder` annotation a class named `MyActivityIntentBuilder` will be generated (Replace 'MyActivity' in the class name whith whatever the name of your Activity or Service class is). If your activity or service takes in parameters via extras in the intent you can now mark field with the `@Extra` annotation and they can be injected with the static `inject` method on the generated intent builder class. Extras can be marked as optional with the `@Optional` annotation.
Annotate your activities and services with an `@IntentBuilder` annotation so that they are picked up by the library. For every class with an `@IntentBuilder` annotation a class named `MyActivityIntentBuilder` will be generated (Replace 'MyActivity' in the class name whith whatever the name of your Activity or Service class is). If your activity or service takes in parameters via extras in the intent you can now mark field with the `@Extra` annotation and they can be injected with the static `inject` method on the generated intent builder class. Extras can be marked as optional with the `@Nullable` annotation.

Sample activity using IntentBuilder:
```java
Expand All @@ -33,7 +33,7 @@ class DetailActivity extends Activity {
@Extra
String id;

@Extra @Optional
@Extra @Nullable
String title;

@Override
Expand Down
4 changes: 2 additions & 2 deletions version.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#Sun, 28 Jun 2015 16:45:01 -0700
#Sun, 28 Jun 2015 19:01:31 -0700
major=0
minor=12
minor=13
patch=0

0 comments on commit 0b317ef

Please sign in to comment.