-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Repetitive tasks and other enhancements (#129)
* Refactor get task by id usecase * Add index for date to fetch tasks faster * Upgrade libraries and AGP * Re-arrange files of :core and :core:ui modules * Improve ClearableChip functionality to clear only when tapping on the X In the previous design, selecting the chip and tapping anywhere on it would clear the content, which could lead to unintentional clearing * Record screenshot tests * Add recurrence UI Also improve create task layout reducing paddings and the UI overall * Upgrade compose destinations to latest version * Add recurrence when creating a task * Create next occurrence when mark recurrent task as done * Add remove logic for recurring tasks As Google Calendar does, the user will be able to choose between removing only a single recurring tasks, the chosen one plus its following occurrences and the last one all the recurring tasks related * Add fake tasks * Add recurrence info to the TaskCard * Fix remove recurring task by the parent one * Create next occurrences for recurring tasks * Improve files structure adding UI package * Remove balloon library * Upgrade some libs * Make expanded header calendar scrollable and improve agenda structure * Remove compose activity dependency from feature plugin * Make month and week calendar scrollable for better navigation * Rename interactor folder to usecase * Increase minimum Android version to API 26 (Android 8) * Record screenshot tests * Remove tests that were checking recurrence when mark tasks as done * Add daily job to populate recurring tasks when needed * Rename UpdateTaskUseCase.kt to EditTaskUseCase.kt * Fix week calendar scrolling to selected day when day is updated * Remove unused mapper * Fix flaky tests * Fix edit recurring tasks * Add progress indicator when saving on the create task expanded screen * Handle and test Room migrations * Disable TooGenericExceptionCaught rule * Fix lint errors * Fix package id for different build variants Specifically, baseline profile tests were fixed * Upgrade Gradle to 8.5 * Upgrade AGP to 8.2.1 * Upgrade MockK and fix tests * Remove horizontal calendar screenshot test
- Loading branch information
Showing
290 changed files
with
4,991 additions
and
1,350 deletions.
There are no files selected for viewing
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
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
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
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
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/costular/atomtasks/ui/home/AppNavigator.kt
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
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
import com.android.build.api.dsl.ManagedVirtualDevice | ||
import com.costular.atomtasks.AtomBuildType | ||
import com.costular.atomtasks.configureFlavors | ||
|
||
plugins { | ||
id("atomtasks.android.test") | ||
id("androidx.baselineprofile") | ||
} | ||
|
||
android { | ||
namespace = "com.costular.atomtasks.baselineprofile" | ||
|
||
defaultConfig { | ||
minSdk = 28 | ||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
|
||
buildConfigField("String", "APP_BUILD_TYPE_SUFFIX", "\"\"") | ||
} | ||
|
||
buildFeatures { | ||
buildConfig = true | ||
} | ||
|
||
buildTypes { | ||
// This benchmark buildType is used for benchmarking, and should function like your | ||
// release build (for example, with minification on). It's signed with a debug key | ||
// for easy local/CI testing. | ||
create("benchmark") { | ||
// Keep the build type debuggable so we can attach a debugger if needed. | ||
isDebuggable = true | ||
signingConfig = signingConfigs.getByName("debug") | ||
matchingFallbacks.add("release") | ||
buildConfigField( | ||
"String", | ||
"APP_BUILD_TYPE_SUFFIX", | ||
"\"${AtomBuildType.BENCHMARK.applicationIdSuffix ?: ""}\"" | ||
) | ||
} | ||
} | ||
|
||
configureFlavors(this) { flavor -> | ||
buildConfigField( | ||
"String", | ||
"APP_FLAVOR_SUFFIX", | ||
"\"${flavor.applicationIdSuffix ?: ""}\"" | ||
) | ||
} | ||
|
||
testOptions.managedDevices.devices { | ||
create<ManagedVirtualDevice>("pixel6Api34") { | ||
device = "Pixel 6" | ||
apiLevel = 34 | ||
systemImageSource = "google" | ||
} | ||
} | ||
targetProjectPath = ":app" | ||
} | ||
|
||
baselineProfile { | ||
managedDevices += "pixel6Api34" | ||
useConnectedDevices = false | ||
} | ||
|
||
dependencies { | ||
implementation(libs.androidx.test.ext.junit) | ||
implementation(libs.espresso.core) | ||
implementation(libs.uiautomator) | ||
implementation(libs.benchmark.macro.junit4) | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
21 changes: 21 additions & 0 deletions
21
build-logic/convention/src/main/kotlin/AndroidTestConventionPlugin.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import com.android.build.gradle.TestExtension | ||
import com.costular.atomtasks.configureKotlinAndroid | ||
import org.gradle.api.Plugin | ||
import org.gradle.api.Project | ||
import org.gradle.kotlin.dsl.configure | ||
|
||
class AndroidTestConventionPlugin : Plugin<Project> { | ||
override fun apply(target: Project) { | ||
with(target) { | ||
with(pluginManager) { | ||
apply("com.android.test") | ||
apply("org.jetbrains.kotlin.android") | ||
} | ||
|
||
extensions.configure<TestExtension> { | ||
configureKotlinAndroid(this) | ||
defaultConfig.targetSdk = 34 | ||
} | ||
} | ||
} | ||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Sat Jul 22 01:09:57 WEST 2023 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,5 @@ dependencyResolutionManagement { | |
} | ||
} | ||
|
||
rootProject.name = "build-logic" | ||
include(":convention") |
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
Oops, something went wrong.