Skip to content

Commit

Permalink
Cloned Repo AmazePlayer
Browse files Browse the repository at this point in the history
  • Loading branch information
dhairya-quash committed Dec 4, 2024
0 parents commit eac25b7
Show file tree
Hide file tree
Showing 1,300 changed files with 155,573 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
root = true

[*.{kt,kts}]
ktlint_standard_property-naming = disabled
ktlint_standard_value-argument-comment = disabled
ktlint_standard_kdoc-wrapping = disabled
ktlint_standard_no-consecutive-comments = disabled
9 changes: 9 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Run this command to always ignore specific commits in `git blame`
# git config blame.ignoreRevsFile .git-blame-ignore-revs

# format all java files
94dae8259f075e4099cd92c258386dc39bfc30c1

# format all kotlin files
45178b3d348cd1fe768bcfc086b04b15ea5d69ea

22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: TeamAmaze
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: Team-Amaze
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: ['https://www.paypal.me/vishalnehra', 'https://github.com/TeamAmaze/AmazeFileManager#support']
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Smartphone (please complete the following information):**
- Device: [e.g. Google Pixel 2]
- OS: [e.g. Android 9]
- Rooted: [e.g. No]
- Version: [e.g. 3.3.4]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
13 changes: 13 additions & 0 deletions .github/no-response.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Configuration for probot-no-response - https://github.com/probot/no-response

# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 14
# Label requiring a response
responseRequiredLabel: Needs-OPResponse
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
closeComment: >
This issue has been automatically closed because there has been no response
to our request for more information from the original author. With only the
information that is currently in the issue, we don't have enough information
to take action. Please reach out if you have or find the answers we need so
that we can investigate further.
39 changes: 39 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!--
Read this first:
To open a pull request read this file,
uncomment the corresponding lines and
complete them.
-->

## Description

#### Issue tracker
<!-- Fixes will automatically close the related issue -->
<!-- Fixes # -->
<!-- Addresses won't automatically close the related issue -->
<!-- Addresses # -->

#### Automatic tests
<!-- remember to do manual testing when making UI changes! -->
- [ ] Added test cases

#### Manual tests
- [ ] Done

<!-- If yes, -->
<!--
- Device:
- OS:
-->

#### Build tasks success
<!-- run these! -->
Successfully running following tasks on local:
- [ ] `./gradlew assembledebug`
- [ ] `./gradlew spotlessCheck`

<!-- If there are related PRs please add them here -->
<!--
#### Related PR
Related to PR #
-->
42 changes: 42 additions & 0 deletions .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Android Build CI

on:
push:
branches:
- '*'
- '!master'
- '!release/*'
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
check_spotless:
name: Check spotless
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 11
- name: Check formatting using spotless
uses: gradle/actions/setup-gradle@v3
with:
arguments: spotlessCheck --stacktrace

build:
name: Build debug
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 11
- name: Build with Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: assembledebug --stacktrace
62 changes: 62 additions & 0 deletions .github/workflows/android-debug-artifact-ondemand.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Android Debug artifact ondemand

on:
pull_request:
types: [opened]
issue_comment:
types: [created]

jobs:
apk:
runs-on: ubuntu-latest
if: github.event.comment.body == 'Build test apk' && (github.actor == 'VishalNehra' || github.actor == 'TranceLove' || github.actor == 'EmmanuelMess' || github.actor == 'VishnuSanal')
steps:
- name: Acknowledge the request with thumbs up reaction
uses: peter-evans/create-or-update-comment@v2
with:
comment-id: ${{ github.event.comment.id }}
reactions: '+1'
- name: Github API Request
id: request
uses: octokit/[email protected]
with:
route: ${{ github.event.issue.pull_request.url }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get PR informations
id: pr_data
run: |
echo "::set-output name=repo_name::${{ fromJson(steps.request.outputs.data).head.repo.full_name }}"
echo "::set-output name=repo_clone_url::${{ fromJson(steps.request.outputs.data).head.repo.clone_url }}"
echo "::set-output name=repo_ssh_url::${{ fromJson(steps.request.outputs.data).head.repo.ssh_url }}"
- name: Checkout PR Branch
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{fromJson(steps.request.outputs.data).head.repo.full_name}}
ref: ${{fromJson(steps.request.outputs.data).head.ref}}
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 11
- name: Build with Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: assembleDebug --stacktrace
- name: Upload fdroid artifact
uses: actions/upload-artifact@v4
with:
name: Amaze-Fdroid-debug
path: app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk
- name: Upload play artifact
uses: actions/upload-artifact@v4
with:
name: Amaze-Play-debug
path: app/build/outputs/apk/play/debug/app-play-debug.apk
- name: Notify the user with a comment once the APK is uploaded # TODO: update this with the link to the artifacts
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.issue.number }}
body: |
The requested APKs has been built. Please find them from the artifacts section of this PR.
30 changes: 30 additions & 0 deletions .github/workflows/android-debug-artifact-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Android Release CI

on:
release:
types: [published, created]

jobs:
apk:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 11
- name: Build with Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: assembleDebug
- name: Upload fdroid artifact
uses: actions/upload-artifact@v4
with:
name: Amaze-Fdroid-debug
path: app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk
- name: Upload play artifact
uses: actions/upload-artifact@v4
with:
name: Amaze-Play-debug
path: app/build/outputs/apk/play/debug/app-play-debug.apk
47 changes: 47 additions & 0 deletions .github/workflows/android-feature.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Android Feature CI

on:
pull_request:
branches:
- 'master'
- 'release/*'
- 'hotfix/*'

concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
check_spotless:
name: Check spotless
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 11
- name: Check formatting using spotless
uses: gradle/actions/setup-gradle@v3
with:
arguments: spotlessCheck --stacktrace

build:
name: Build debug and run Jacoco tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 11
- name: Build with Gradle
uses: gradle/actions/setup-gradle@v3
with:
arguments: assembledebug --stacktrace
- name: Run test cases
uses: gradle/actions/setup-gradle@v3
with:
arguments: jacocoTestPlayDebugUnitTestReport --stacktrace --info
Loading

0 comments on commit eac25b7

Please sign in to comment.