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
Capybara | |
Admin | |
beforeBuild* -> InitStorage | |
Build | |
InitStorage | |
check success -> AddToStorage | |
init done -> Build | |
AddToStorage | |
next -> AddToStorage | |
done -> Build |
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
private Intent appDetailsIntent(Context context) { | |
Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.fromParts("package", context.getPackageName(), null)); | |
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); | |
return intent; | |
} | |
private boolean checkCallingOrSelfPermissions(@NonNull Context context, @NonNull String... permissions) { | |
for (String permission : permissions) { | |
if (context.checkCallingOrSelfPermission(permission) == PackageManager.PERMISSION_DENIED) { | |
return false; |
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
Intent intent = getIntent(); | |
if (intent.getAction().equals(Intent.ACTION_SEND) && intent.getType().startsWith("text/")) { | |
String sharingText = intent.getStringExtra(Intent.EXTRA_TEXT); | |
if (sharingText != null && !sharingText.equals("")) mEditText.setText(sharingText); | |
} |
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
language: android | |
jdk: | |
- oraclejdk8 | |
android: | |
components: | |
- platform-tools | |
- tools | |
- build-tools-25.0.2 | |
- android-22 | |
- extra-android-support |
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
// Top level build.gradle | |
buildscript { | |
dependencies { | |
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.1' | |
} | |
} | |
// Module or library | |
apply plugin: 'jacoco-android' |
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
org.gradle.daemon=true | |
org.gradle.parallel=true | |
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 | |
org.gradle.configureondemand=true |
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: 'com.android.library' | |
apply plugin: 'com.novoda.bintray-release' | |
android { | |
compileSdkVersion rootProject.ext.compileSdkVersion | |
buildToolsVersion rootProject.ext.buildToolsVersion | |
defaultConfig { | |
minSdkVersion 15 | |
targetSdkVersion rootProject.ext.compileSdkVersion |