Instructions on to encrypt a file on OSX 10.9. Based of this StackOverflow post.
- Homebrew
- osxfuse
brew install Caskroom/cask/osxfuse
- encfs
brew install encfs
{ | |
// Preferences => Compiler => Gradle => VM Options. Add -DflavorWhitelist=flavor1,flavor2 | |
// Omit -DflavorWhitelist for all flavors. | |
def flavorMap = [ | |
flavor1: { | |
// flavor stuff | |
}, | |
flavor2 : { | |
// flavor 2 stuff | |
} |
#!/bin/sh | |
set -o pipefail | |
set -o errexit | |
set -o nounset | |
#set -o xtrace | |
__DIR__="$(cd "$(dirname "${0}")"; echo $(pwd))" | |
__BASE__="$(basename "${0}")" | |
__FILE__="${__DIR__}/${__BASE__}" |
apply plugin: 'idea' | |
idea { | |
module { | |
testOutputDir = file('build/test-classes') | |
} | |
} | |
task initGradleTest << { | |
def imlFile = '<path to iml>.iml' |
Instructions on to encrypt a file on OSX 10.9. Based of this StackOverflow post.
brew install Caskroom/cask/osxfuse
brew install encfs
Intent intent = new Intent(this, NextActivity.class); | |
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK); | |
startActivity(intent); | |
finish(); |
/* | |
* copied from: http://stackoverflow.com/questions/8501920/how-to-mock-a-builder-with-mockito | |
*/ | |
import static org.mockito.Mockito.RETURNS_DEFAULTS; | |
import org.mockito.invocation.InvocationOnMock; | |
import org.mockito.stubbing.Answer; | |
public class SelfReturningAnswer implements Answer<Object>{ |
keytool -genkey -v -keystore keystore.keystore -alias alias -storepass password -keypass password -keyalg RSA -validity 36500 |
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the Dalvik VM | |
*.dex | |
# Java class files | |
*.class |
public class TimeZoneRule implements TestRule { | |
private final String timeZoneId; | |
public TimeZoneRule(String timeZoneId) { | |
this.timeZoneId = timeZoneId; | |
} | |
@Override | |
public Statement apply(final Statement base, Description description) { | |
return new Statement() { |
E/LayerSDK: LayerClientImpl : Exception | |
E/LayerSDK: com.layer.sdk.exceptions.LayerException: DEVICE_PERSISTENCE_FAILURE (9001) - Uncaught Task exception | |
E/LayerSDK: at com.layer.sdk.internal.syncrecon.SyncRecon$a.a(SyncRecon.java:467) | |
E/LayerSDK: at com.layer.sdk.internal.syncrecon.SyncRecon$a.run(SyncRecon.java:599) | |
E/LayerSDK: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076) | |
E/LayerSDK: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569) | |
E/LayerSDK: at java.lang.Thread.run(Thread.java:856) | |
E/LayerSDK: Caused by: android.database.sqlite.SQLiteConstraintException: column stream_id is not unique (code 19) | |
E/LayerSDK: at android.database.sqlite.SQLiteConnection.nativeExecuteForChangedRowCount(Native Method) | |
E/LayerSDK: at android.database.sqlite.SQLiteConnection.executeForChangedRowCount(SQLiteConnection.java:727) |