Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
134 changes: 109 additions & 25 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 16 additions & 2 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 39 additions & 12 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
compileSdkVersion versions.compile_sdk
defaultConfig {
applicationId "com.tachyonlabs.practicetodoapp"
minSdkVersion 16
targetSdkVersion 27
minSdkVersion versions.min_sdk
targetSdkVersion versions.target_sdk
versionCode 1
versionName "1.0"
vectorDrawables.useSupportLibrary = true
Expand All @@ -17,18 +17,45 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dataBinding.enabled = true
// The Data Binding Library is a support library that allows you to bind UI components in your
// layouts to data sources in your app using a declarative format rather than programmatically.
dataBinding {
enabled = true
}
// Configure only for each module that uses Java 8 language features
// (either in its source code or through dependencies).
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

flavorDimensions "version"
productFlavors {
demo {
applicationIdSuffix ".demo"
// This new string resource item will be generated at build time.
resValue "string", "app_id_suffix", ".demo"
buildConfigField 'boolean', 'IS_DEMO', 'true'
}
full {
resValue "string", "app_id_suffix", ""
buildConfigField 'boolean', 'IS_DEMO', 'false'
}
}

applicationVariants.all { variant ->
variant.resValue "string", "versionName", variant.versionName }
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
implementation 'com.android.support:preference-v7:27.1.1'
implementation "com.android.support:appcompat-v7:$versions.support"
implementation "com.android.support.constraint:constraint-layout:$versions.constraintLayout"
implementation "com.android.support:design:$versions.support"
implementation "com.android.support:recyclerview-v7:$versions.support"
implementation "com.android.support:preference-v7:$versions.support"

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
testImplementation "junit:junit:$versions.jUnit"
androidTestImplementation "com.android.support.test:runner:$versions.runner"
androidTestImplementation "com.android.support.test.espresso:espresso-core:$versions.espresso"
}
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public void onClick(View view) {

getSupportLoaderManager().initLoader(ID_TODOLIST_LOADER, null, this);

//scheduleDailyDueCheckerAlarm();
//cancelAlarm();
scheduleDailyDueCheckerAlarm();
cancelAlarm();
}

@Override
Expand Down Expand Up @@ -161,6 +161,7 @@ private void updateWidget() {
sendBroadcast(intent);
}

@NonNull
@Override
public Loader<Cursor> onCreateLoader(int loaderId, Bundle bundle) {
if (loaderId == ID_TODOLIST_LOADER) {
Expand Down
Loading