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
project(':MyDaoGenerator') { | |
apply plugin: 'application' | |
apply plugin: 'java' | |
mainClassName = "pl.surecase.eu.MyDaoGenerator" | |
// edit output direction | |
outputDir = | |
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) |
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
project(':MyDaoGenerator') { | |
apply plugin: 'application' | |
apply plugin: 'java' | |
mainClassName = "pl.surecase.eu.MyDaoGenerator" | |
// edit output direction | |
outputDir = | |
dependencies { | |
compile fileTree(dir: 'libs', include: ['*.jar']) |
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 class DaoExampleApplication extends Application { | |
public DaoSession daoSession; | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
setupDatabase(); | |
} |
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
apply plugin: 'android' | |
android { | |
compileSdkVersion 19 | |
buildToolsVersion "19.0.3" | |
defaultConfig { | |
minSdkVersion 11 | |
targetSdkVersion 19 | |
versionCode 1 |
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
android { | |
sourceSets { | |
main { | |
manifest.srcFile 'src/main/AndroidManifest.xml' | |
java.srcDirs = ['src/main/java', 'src/main/java-gen'] | |
res.srcDirs = ['src/main/res'] | |
} | |
} | |
} |
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
apply plugin: 'android' | |
android { | |
compileSdkVersion 19 | |
buildToolsVersion "19.0.3" | |
defaultConfig { | |
minSdkVersion 11 | |
targetSdkVersion 19 | |
versionCode 1 |
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 class BoxRepository { | |
public static void insertOrUpdate(Context context, Box box) { | |
getBoxDao(context).insertOrReplace(box); | |
} | |
public static void clearBoxes(Context context) { | |
getBoxDao(context).deleteAll(); | |
} |
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 class DaoExampleApplication extends Application { | |
public DaoSession daoSession; | |
@Override | |
public void onCreate() { | |
super.onCreate(); | |
setupDatabase(); | |
} |
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
class Preview extends ViewGroup implements SurfaceHolder.Callback { | |
private final String TAG = "Preview"; | |
SurfaceView mSurfaceView; | |
Camera.Size mPreviewSize; | |
List<Camera.Size> mSupportedPreviewSizes; | |
Camera mCamera; | |
Preview(Context context) { | |
super(context); |
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
@Test | |
public void testFacebook_correctData_enterNotificationCenter() throws Exception { | |
final UiDevice mDevice = | |
UiDevice.getInstance(InstrumentationRegistry.getInstrumentation()); | |
final int timeOut = 1000 * 60; | |
// Login Activity | |
onView(withId(R.id.btnFacebookLogin)).perform(click()); |
OlderNewer