This repository has been archived by the owner on Aug 23, 2024. It is now read-only.
-
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.
Merge branch 'main' of github.com:trashtrack-team/trashtrack
- Loading branch information
Showing
16 changed files
with
19,310 additions
and
14,315 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Build Android | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Build APK | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: "adopt" | ||
java-version: "17" | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 21.1.0 | ||
cache: "pnpm" | ||
- name: Install Node.js dependencies | ||
run: pnpm install | ||
- name: Build app | ||
run: pnpm nx run app:build | ||
- name: Update Capacitor | ||
run: pnpm nx run app:update:android | ||
- name: Copy Capacitor files | ||
run: pnpm nx run app:copy:android | ||
- name: Build app bundle | ||
run: cd apps/app/android && ./gradlew bundle && ./gradlew assembleDebug | ||
- name: Extract Android signing key from repository secrets | ||
run: | | ||
echo "${{ secrets.RELEASE_KEYSTORE }}" > apps/app/android/release.jks.base64 | ||
base64 -d apps/app/android/release.jks.base64 > apps/app/android/release.decrypted.jks | ||
- name: Sign development build | ||
run: jarsigner -keystore apps/app/android/release.decrypted.jks -storepass "${{ secrets.RELEASE_KEYSTORE_PASSWORD }}" -signedjar ./apps/app/android/app/build/outputs/bundle/release/app-release-signed.aab ./apps/app/android/app/build/outputs/bundle/release/app-release.aab release | ||
- name: Check folder content of android output | ||
run: ls ./apps/app/android/app/build/outputs/bundle/release | ||
- name: Set Tag | ||
id: current-datetime | ||
run: echo "CURRENT_DATETIME=$(date +'%Y-%m-%d-%H_%M_%S%z')" >> "$GITHUB_OUTPUT" | ||
- name: Build Release | ||
shell: bash | ||
run: | | ||
hub release create ${{ steps.current-datetime.outputs.CURRENT_DATETIME }} \ | ||
-m ${{ steps.current-datetime.outputs.CURRENT_DATETIME }} \ | ||
-a ./apps/app/android/app/build/outputs/bundle/release/app-release-signed.aab \ | ||
-a ./apps/app/android/app/build/outputs/apk/debug/app-debug.apk | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,23 @@ | ||
import i18n from "i18next"; | ||
import { initReactI18next } from "react-i18next"; | ||
|
||
import enJSON from "./locales/en.json"; | ||
import idJSON from "./locales/id.json"; | ||
|
||
export const resources = { | ||
en: { | ||
...enJSON, | ||
}, | ||
id: { | ||
...idJSON, | ||
}, | ||
} as const; | ||
|
||
i18n.use(initReactI18next).init({ | ||
lng: "en", | ||
fallbackLng: "en", | ||
resources, | ||
interpolation: { | ||
escapeValue: false, | ||
}, | ||
}); |
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,20 @@ | ||
{ | ||
"translation": { | ||
"home": { | ||
"complain": { | ||
"title": "Submit Complaint", | ||
"description": "Submit a complaint about full, broken, or missing trash cans." | ||
}, | ||
"operator": { | ||
"title": "Operator Login", | ||
"description": "Operators can log in to view complaints and resolutions." | ||
} | ||
}, | ||
"preferences": { | ||
"language": { | ||
"title": "Change Language", | ||
"description": "Select the language you want to use for the application." | ||
} | ||
} | ||
} | ||
} |
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,20 @@ | ||
{ | ||
"translation": { | ||
"home": { | ||
"complain": { | ||
"title": "Sampaikan Keluhan", | ||
"description": "Submit keluhan mengenai tempat sampah yang penuh, rusak, atau tidak ada." | ||
}, | ||
"operator": { | ||
"title": "Operator Login", | ||
"description": "Operator dapat login untuk melihat keluhan dan menyelesaikannya." | ||
} | ||
}, | ||
"preferences": { | ||
"language": { | ||
"title": "Ganti Bahasa", | ||
"description": "Pilih bahasa yang ingin Anda gunakan untuk aplikasi." | ||
} | ||
} | ||
} | ||
} |
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
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.