Skip to content

Commit

Permalink
update compiler, retrofit and encryption
Browse files Browse the repository at this point in the history
* change method names
* update imports
* update versions
  • Loading branch information
FabianTerhorst committed Jan 11, 2016
1 parent 6fca526 commit d33fcf5
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 16 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ apply plugin: 'com.neenbedankt.android-apt'
Add dependencies to your application gradle build file (only compile 'io.fabianterhorst:iron:0.6.4' is required)

```groovy
compile 'io.fabianterhorst:iron:0.6.4'
compile 'io.fabianterhorst:iron-retrofit:0.4.1'
compile 'io.fabianterhorst:iron-encryption:0.4.1'
compile 'io.fabianterhorst:iron:0.6.5'
compile 'io.fabianterhorst:iron-retrofit:0.4.2'
compile 'io.fabianterhorst:iron-encryption:0.4.2'
//is only required for using the compiler
compile 'io.fabianterhorst:iron-annotations:0.1'
apt 'io.fabianterhorst:iron-compiler:0.3.2'
apt 'io.fabianterhorst:iron-compiler:0.3.3'
```

Initiate Iron instance with application context
Expand All @@ -49,9 +49,9 @@ public class MyApplication extends Application {
Iron.init(getApplicationContext());
Iron.setCache(Cache.MEMORY);//default is NONE
//Optional if iron-retrofit is included
Iron.setLoaderExtension(new IronRetrofit());
Iron.setLoader(new IronRetrofit());
//Optional if iron-encryption is included
Iron.setEncryptionExtension(new IronEncryption());
Iron.setEncryption(new IronEncryption());
}
}
```
Expand Down Expand Up @@ -285,12 +285,12 @@ allprojects {
//Latest commit
compile 'com.github.FabianTerhorst:Iron:-SNAPSHOT'
compile 'com.github.fabianterhorst.iron:iron-retrofit:0.6.4'
compile 'com.github.fabianterhorst.iron:iron:0.6.4'
compile 'com.github.fabianterhorst.iron:iron-encryption:0.6.4'
compile 'com.github.fabianterhorst.iron:iron-retrofit:0.6.5'
compile 'com.github.fabianterhorst.iron:iron:0.6.5'
compile 'com.github.fabianterhorst.iron:iron-encryption:0.6.5'
//is only required for using the compiler
compile 'com.github.fabianterhorst.iron:iron-annotations:0.6.4'
apt 'com.github.fabianterhorst.iron:iron-compiler:0.6.4'
compile 'com.github.fabianterhorst.iron:iron-annotations:0.6.5'
apt 'com.github.fabianterhorst.iron:iron-compiler:0.6.5'
```

### License
Expand Down
2 changes: 1 addition & 1 deletion iron-compiler/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ artifacts {
def siteUrl = 'https://github.com/FabianTerhorst/Iron'
def gitUrl = 'https://github.com/FabianTerhorst/Iron.git'

version = "0.3.2"
version = "0.3.3"
group = "io.fabianterhorst"

install {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import java.lang.reflect.Field;
import io.fabianterhorst.iron.Chest;
import io.fabianterhorst.iron.DataChangeCallback;
import io.fabianterhorst.iron.Iron;
import io.fabianterhorst.iron.IronLoadExtension;
import io.fabianterhorst.iron.Loader;

import java.util.Collections;

Expand Down
6 changes: 6 additions & 0 deletions iron/src/main/java/io/fabianterhorst/iron/Iron.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ public static void setEncryption(Encryption encryption){
mEncryption = encryption;
}


/**
* Set the cache strategy to store the written objects in memory
*
* @param cache the cache strategy Cache#Memory or Cache#NONE
*/
public static void setCache(int cache){
mCache = cache;
}
Expand Down
2 changes: 1 addition & 1 deletion publish-encryption.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'com.jfrog.bintray'
def siteUrl = 'https://github.com/FabianTerhorst/Iron'
def gitUrl = 'https://github.com/FabianTerhorst/Iron.git'

version = "0.4.1"
version = "0.4.2"
group = "io.fabianterhorst"

install {
Expand Down
2 changes: 1 addition & 1 deletion publish-retrofit.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'com.jfrog.bintray'
def siteUrl = 'https://github.com/FabianTerhorst/Iron'
def gitUrl = 'https://github.com/FabianTerhorst/Iron.git'

version = "0.4.1"
version = "0.4.2"
group = "io.fabianterhorst"

install {
Expand Down
2 changes: 1 addition & 1 deletion publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'com.jfrog.bintray'
def siteUrl = 'https://github.com/FabianTerhorst/Iron'
def gitUrl = 'https://github.com/FabianTerhorst/Iron.git'

version = "0.6.4"
version = "0.6.5"
group = "io.fabianterhorst"

install {
Expand Down

0 comments on commit d33fcf5

Please sign in to comment.