Skip to content
Merged
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
23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

37 changes: 37 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Bug report
description: "Report unexpected behavior or crashes"

labels: bug
assignees: BURG3R5

body:
- type: textarea
attributes:
label: Problem description
description: "A clear and concise description of the problem."
validations:
required: true
- type: textarea
attributes:
label: Reproduction steps
description: "Steps to reproduce the bug."
validations:
required: true
- type: textarea
attributes:
label: Expected behavior
description: "A clear and concise description of what you expected to happen."
validations:
required: true
- type: textarea
attributes:
label: Screenshots and logs
description: "Any relevant screenshots and logs."
validations:
required: false
- type: textarea
attributes:
label: Additional context
description: "Any other context about the bug report."
validations:
required: false
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Feature request
description: "Suggest a new feature or an improvement to an existing one"

labels: enhancement
assignees: BURG3R5

body:
- type: textarea
attributes:
label: Problem description
description: "A clear and concise description of the problem."
placeholder: "I'm always frustrated when..."
validations:
required: true
- type: textarea
attributes:
label: Proposed solution
description: "The solution you'd like to see implemented."
validations:
required: true
- type: textarea
attributes:
label: Alternatives considered
description: "Any alternative solutions or features you've considered."
validations:
required: false
- type: textarea
attributes:
label: Additional context
description: "Any other context, examples, or screenshots about the feature request."
validations:
required: false
49 changes: 49 additions & 0 deletions .github/contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Contribution Guidelines

Thank you for your interest in contributing to this project. And for taking the time to read this
document! All forms of contributions are welcome, including issues, pulls, designs, and
translations. Please read the following guidelines to ensure minimal friction in the process.

### "AI" Policy

Contributions containing significant generated content will not be accepted. The corporations behind
these tools have demonstrated disregard for the environment, the rights of consumers, as well as
real people displaced/affected by their data-centers.

From a more technical point-of-view, this project is not some generic CRUD+API app full of basic
boilerplate. Understanding the codebase and thorough testing is necessary to ensure the project
works in all cases and can be maintained in the future.

Bot-accounts that do not declare themselves as such will be reported and blocked.

## Issues

Bug reports, feature requests and other issues can be created using the relevant templates in the "
Issues" tab on GitHub. If you don't wish to use a GitHub account, you can also contact me via email
at `mail@adityarajput.co`.

## Pulls

If you wish to help out with an existing bug report or feature request, leave a comment on that
issue saying so. If there is no existing issue, open a new one and mention that you would like to
work on it.

Please ensure atomic commits and focused PRs.

## Designs

Design contributions will be treated just like code contributions. Please ensure that your designs
do not infringe on any existing IP, and that you have the necessary rights to use any assets
included in your design.

## Translations

This project is currently only available in English. If you would like to translate, please open an
issue so we can discuss the workflow.

## Shares

This project was originally created for personal use, and will remain FLOSS and up-to-date as long
as I'm around. There will never be any links asking for monetary contributions. However, as most
brains do, mine likes to see numbers go up, and so if you like the project, please do share it with
people who might find it useful and/or leave a star on GitHub.
2 changes: 2 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import org.jetbrains.kotlin.gradle.dsl.JvmTarget

plugins {
alias(libs.plugins.aboutlibraries.android)
alias(libs.plugins.android.application)
alias(libs.plugins.kotlin.compose)
alias(libs.plugins.devtools.ksp)
Expand Down Expand Up @@ -91,6 +92,7 @@ dependencies {
implementation(libs.androidx.work.runtime.ktx)
ksp(libs.androidx.room.compiler)
implementation(libs.androidx.room.ktx)
implementation(libs.aboutlibraries.compose)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.junit)
androidTestImplementation(libs.androidx.espresso.core)
Expand Down

This file was deleted.

9 changes: 8 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />

<!-- region Remove unused permission(s) added by WorkManager -->
<uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE"
tools:node="remove" />
<!-- endregion -->

<application
android:name=".FileFlowApplication"
android:allowBackup="${allowBackup}"
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/java/co/adityarajput/fileflow/views/Navigator.kt
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ fun Navigator(controller: NavHostController, appearanceViewModel: AppearanceView
composable(Routes.EXECUTIONS.name) { ExecutionsScreen(controller::popBackStack) }
composable(Routes.SETTINGS.name) {
SettingsScreen(
{ controller.navigate(Routes.LICENSES.name) },
{ controller.navigate(Routes.ABOUT.name) },
controller::popBackStack,
appearanceViewModel,
)
}
composable(Routes.LICENSES.name) { LicensesScreen(controller::popBackStack) }
composable(Routes.ABOUT.name) { AboutScreen(controller::popBackStack) }
}
}
Expand All @@ -44,6 +46,7 @@ enum class Routes {
RULES,
EXECUTIONS,
SETTINGS,
LICENSES,
ABOUT,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ fun AppBar(
if (canNavigateBack) {
Icon(
painterResource(R.drawable.arrow_back),
stringResource(R.string.alttext_back_button),
stringResource(R.string.back_button),
)
} else {
Icon(
painterResource(R.drawable.automation),
stringResource(R.string.alttext_app_logo),
stringResource(R.string.app_logo),
)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fun AboutScreen(goBack: () -> Unit) {
) {
Icon(
painterResource(R.drawable.automation),
stringResource(R.string.alttext_app_logo),
stringResource(R.string.app_logo),
Modifier.size(50.dp),
)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
package co.adityarajput.fileflow.views.screens

import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.dimensionResource
import androidx.compose.ui.res.stringResource
import co.adityarajput.fileflow.R
import co.adityarajput.fileflow.views.components.AppBar
import com.mikepenz.aboutlibraries.ui.compose.LibraryDefaults
import com.mikepenz.aboutlibraries.ui.compose.android.produceLibraries
import com.mikepenz.aboutlibraries.ui.compose.m3.LibrariesContainer

@Composable
fun LicensesScreen(goBack: () -> Unit = {}) {
Scaffold(
topBar = {
AppBar(
stringResource(R.string.licenses),
true,
goBack,
)
},
) { paddingValues ->
Box(
Modifier
.fillMaxSize()
.padding(paddingValues),
) {
val libraries by produceLibraries(R.raw.aboutlibraries)

LibrariesContainer(
libraries,
Modifier
.fillMaxSize()
.padding(dimensionResource(R.dimen.padding_small)),
showDescription = true,
textStyles = LibraryDefaults.libraryTextStyles(nameMaxLines = 2),
)
}
}
}
Loading