Skip to content

Commit b952cae

Browse files
feat(repo): support IOS
by @sebastianjnuwu
0 parents  commit b952cae

File tree

96 files changed

+4805
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+4805
-0
lines changed

.babelrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"useBuiltIns": "usage",
7+
"corejs": 3,
8+
"targets": "> 0.25%, not dead"
9+
}
10+
]
11+
],
12+
"plugins": [
13+
"@babel/plugin-transform-runtime",
14+
"@babel/plugin-syntax-dynamic-import",
15+
["babel-plugin-transform-remove-console", { "exclude": ["error", "warn"] }]
16+
]
17+
}

.browserslistrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Chrome >=79
2+
ChromeAndroid >=79
3+
Firefox >=70
4+
Edge >=79
5+
Safari >=14
6+
iOS >=14

.czrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"path": "./node_modules/cz-conventional-changelog"
3+
}

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = false
12+
insert_final_newline = false

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
VITE_SOCKET_URL=<YOUR-URL-HERE>
2+
VITE_WEB_HOST=<YOU-IP-HERE>
3+
VITE_WEB_PORT=<YOU-PORT-OPEN>

.gitattributes

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# Set line endings configuration
2+
# Ensure text files use LF line endings in the repository, but CRLF for Windows users
3+
* text=auto
4+
5+
# Force specific files to use LF (Unix) line endings
6+
*.sh text eol=lf
7+
*.py text eol=lf
8+
*.java text eol=lf
9+
10+
# Force specific files to use CRLF (Windows) line endings
11+
*.bat text eol=crlf
12+
*.cmd text eol=crlf
13+
14+
# Configure binary files to be treated as binaries (not text)
15+
*.png binary
16+
*.jpg binary
17+
*.jpeg binary
18+
*.gif binary
19+
*.bmp binary
20+
*.zip binary
21+
*.tar binary
22+
*.rar binary
23+
*.pdf binary
24+
*.exe binary
25+
26+
# Ignore binary file diffs
27+
*.pdf diff=astextplain
28+
*.doc diff=astextplain
29+
30+
# Custom merge strategy
31+
# Lock files like package-lock.json or yarn.lock will use the "ours" merge strategy during merge
32+
*.lock merge=ours
33+
34+
# Image files (avoid merging)
35+
*.png merge=binary
36+
*.jpg merge=binary
37+
38+
# Files that should be treated as binary (despite being text)
39+
*.xlsx binary
40+
*.docx binary
41+
*.pptx binary
42+
43+
# Configure text attributes for common text file types
44+
*.md text
45+
*.html text
46+
*.css text
47+
*.js text
48+
*.json text
49+
*.xml text
50+
51+
# Configure attributes for certain configuration or build files
52+
*.yml text
53+
*.yaml text
54+
*.toml text
55+
*.ini text
56+
57+
# Language-specific configurations for source code
58+
*.go text eol=lf
59+
*.cpp text eol=lf
60+
*.h text eol=lf
61+
62+
# Add support for automatic code formatting, like `clang-format` for C++ files
63+
*.cpp filter=clang-format
64+
*.h filter=clang-format
65+
66+
# Configurations for IDE-specific files (avoid diff/merge)
67+
*.sublime-workspace binary
68+
*.sublime-project binary
69+
*.idea/* binary
70+
*.vscode/* binary
71+
72+
# Git LFS (Large File Storage) for handling large files
73+
# If you're using Git LFS for large files, add this configuration:
74+
*.psd filter=lfs diff=lfs merge=lfs -text
75+
*.mp4 filter=lfs diff=lfs merge=lfs -text
76+
77+
# Avoid treating minified files as text
78+
*.min.js binary
79+
*.min.css binary
80+
*.min.html binary

.github/FUNDING.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# These are supported funding model platforms
2+
3+
github: sebastianjnuwu
4+
patreon: sebastianjnuwu
5+
ko_fi: sebastianjnuwu

.github/renovate.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": ["config:base"],
4+
"assignees": ["sebastianjnuwu"],
5+
"schedule": [
6+
"at the beginning of every 3 months on the last day of the month"
7+
],
8+
"dependencyDashboard": false,
9+
"fetchReleaseNotes": true,
10+
"packageRules": [
11+
{
12+
"matchPackagePatterns": ["*"],
13+
"labels": ["dependencies"],
14+
"automerge": true
15+
}
16+
]
17+
}

.github/workflows/biome-lint.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Biome Linter
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
lint:
9+
runs-on: ubuntu-latest
10+
11+
permissions:
12+
contents: read
13+
issues: write
14+
pull-requests: write
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v2
19+
20+
- name: Set up Node.js
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: '20'
24+
25+
- name: Install dependencies
26+
run: npm install
27+
28+
- name: Run Biome Linter
29+
run: npx @biomejs/biome format --write

.github/workflows/build.android.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: 🚀 Build App (Android)
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
contents: read
12+
packages: write
13+
14+
steps:
15+
- name: 📥 Checkout Repository
16+
uses: actions/checkout@v4
17+
18+
- name: 🛠️ Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '18'
22+
23+
- name: 📦 Install Dependencies
24+
run: npm install
25+
26+
- name: 🏗️ Build files
27+
run: npm run build
28+
29+
- name: ☕ Set up Java JDK 17
30+
uses: actions/setup-java@v4
31+
with:
32+
java-version: '17'
33+
distribution: 'temurin'
34+
35+
- name: 🤖 Set up Android SDK
36+
uses: android-actions/setup-android@v3
37+
with:
38+
api-level: 34
39+
build-tools: 34.0.0
40+
ndk: false
41+
42+
- name: 🏗️ Build APK
43+
run: |
44+
npx cap sync android
45+
cd android
46+
chmod +x ./gradlew
47+
./gradlew clean assembleRelease
48+
- name: 🔑 Decode Keystore
49+
run: |
50+
echo "${{ secrets.KEYSTORE_FILE }}" | base64 -d > android/app/release-key.jks
51+
- name: 🔏 Sign APK
52+
run: |
53+
$ANDROID_HOME/build-tools/34.0.0/apksigner sign \
54+
--ks android/app/release-key.jks \
55+
--ks-key-alias ${{ secrets.ALIAS }} \
56+
--ks-pass pass:${{ secrets.STORE_PASSWORD }} \
57+
--key-pass pass:${{ secrets.KEY_PASSWORD }} \
58+
--out android/app/build/outputs/apk/release/app-release-signed.apk \
59+
android/app/build/outputs/apk/release/app-release-unsigned.apk
60+
- name: ☁️ Upload Signed APK
61+
uses: actions/upload-artifact@v4
62+
with:
63+
name: android
64+
path: android/app/build/outputs/apk/release/app-release-signed.apk
65+

0 commit comments

Comments
 (0)