Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
it5prasoon committed Sep 16, 2023
0 parents commit 009d776
Show file tree
Hide file tree
Showing 88 changed files with 7,538 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 10
60 changes: 60 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Release

on:
push:
tags:
- "v*.*.*"

permissions:
contents: write

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Extract keystore file
run: echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > $GITHUB_WORKSPACE/signing-key.jks

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build APKs with Gradle
run: |
./gradlew assembleRelease \
-Pandroid.injected.signing.store.file=$GITHUB_WORKSPACE/signing-key.jks \
-Pandroid.injected.signing.store.password=${{ secrets.KEYSTORE_PW }} \
-Pandroid.injected.signing.key.alias=${{ secrets.KEYSTORE_ALIAS }} \
-Pandroid.injected.signing.key.password=${{ secrets.KEYSTORE_PW }}
- name: Build AABs with Gradle
run: |
./gradlew bundleRelease \
-Pandroid.injected.signing.store.file=$GITHUB_WORKSPACE/signing-key.jks \
-Pandroid.injected.signing.store.password=${{ secrets.KEYSTORE_PW }} \
-Pandroid.injected.signing.key.alias=${{ secrets.KEYSTORE_ALIAS }} \
-Pandroid.injected.signing.key.password=${{ secrets.KEYSTORE_PW }}
- name: Remove keystore file
run: rm $GITHUB_WORKSPACE/signing-key.jks

- name: Create Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
draft: true
files: |
./app/build/outputs/apk/standard/release/app-standard-release.apk
./app/build/outputs/apk/bundled/release/app-bundled-release.apk
./app/build/outputs/bundle/bundledRelease/app-bundled-release.aab
./app/build/outputs/bundle/standardRelease/app-standard-release.aab
24 changes: 24 additions & 0 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'Close stale issues and PR'

permissions:
issues: write
pull-requests: write

on:
schedule:
- cron: '30 1 * * *'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v8
with:
exempt-issue-labels: 'work-in-progress,enhancement'
exempt-pr-labels: 'work-in-progress,dependencies'
stale-issue-message: 'This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.'
stale-pr-message: 'This PR is stale because it has been open 45 days with no activity.'
close-issue-message: 'This issue was closed because it has been stalled for 7 days with no activity.'
days-before-stale: 30
days-before-close: 7
days-before-pr-close: -1
48 changes: 48 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Test

on:
push:
branches: [ "main" ]
paths:
- 'app/**'
- 'build.gradle'
pull_request:
paths:
- 'app/**'
- 'build.gradle'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: gradle

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Run tests
run: ./gradlew test

- name: Build with Gradle
run: ./gradlew assembleDebug

- name: Upload Debug APK
uses: actions/upload-artifact@v3
with:
name: APK(s) debug generated
path: ./app/build/outputs/apk/standard/debug/

- name: Upload Debug APK (Bundled)
uses: actions/upload-artifact@v3
with:
name: APK(s) debug generated (Bundled)
path: ./app/build/outputs/apk/bundled/debug/
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
Loading

0 comments on commit 009d776

Please sign in to comment.