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
import com.android.build.gradle.api.AndroidBasePlugin | |
subprojects { | |
apply plugin: "org.jetbrains.kotlinx.kover" | |
plugins.withType(AndroidBasePlugin) { | |
configurations.implementation { | |
dependencies.withType(ProjectDependency) { | |
project.dependencies.kover dependencyProject | |
} |
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
# preview | |
# Starts the emulator with a manually set dns address | |
emulator -avd Nexus_5_API_16 -dns-server 8.8.8.8 | |
# Makes gradlew executable (required by Jenkins and other unix systems) | |
git update-index --chmod=+x ./gradlew | |
# Remount linux file system | |
mount -o rw,remount,rw /system # make read-write |
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 abstract class KeyEventHandlingFragment extends Fragment | |
implements KeyEventPassingActivity.KeyEventListener { | |
@SuppressWarnings("deprecation") | |
@Override | |
public void onAttach(Activity activity) { | |
super.onAttach(activity); | |
if (activity instanceof KeyEventPassingActivity) { | |
((KeyEventPassingActivity) activity).addKeyEventHandler(this); | |
} |
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 SettingsUtils { | |
private SettingsUtils() {} | |
public static abstract class OnSharedPreferenceChangeListener | |
implements SharedPreferences.OnSharedPreferenceChangeListener { | |
private static final String TAG = "SharedPreferences"; | |
@NonNull | |
private Context 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
/** | |
* Based on http://stackoverflow.com/a/10608622/2489474 | |
* <p>Created by Maksim Kovalev on 05.04.2017. | |
*/ | |
public class TimePreference extends DialogPreference { | |
public static final long TIME_NOT_SET = -1; | |
private TimePicker picker = null; |
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 ### | |
# Built application files | |
*.apk | |
*.ap_ | |
# Files for the Dalvik VM | |
*.dex | |
# Java class files | |
*.class |