This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Allows easy swapping of production and test modules to satisfy Dagger dependencies | |
*/ | |
public class DaggerHelper | |
{ | |
//DAGGER | |
private static ObjectGraph sObjectGraph; | |
private static final List<Object> productionModules; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun reduce(action: Action, state: State): Effect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public byte[] encrypt(byte[] in) | |
{ | |
... | |
byte[] iv = new byte[IV_LENGTH]; | |
new SecureRandom().nextBytes(iv); | |
cipher.init(Cipher.ENCRYPT_MODE, key, new IvParameterSpec(iv)); | |
byte[] cipherBytes = cipher.doFinal(s.getBytes("UTF-8")); | |
return concat(iv, cipherBytes); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//in your root build.gradle | |
//--------- Version Increment ----------// | |
//can call this like `./gradlew incrementVersionCode build` | |
task incrementVersionCode { | |
description = "Increments the version code in the version.properties file" | |
doLast { | |
File versionPropsFile = file('version.properties') |
OlderNewer