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

+17
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

+6
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

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

.editorconfig

+12
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

+3
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

+80
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

+5
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

+17
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

+29
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

+65
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+

.github/workflows/build.ios.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: 🚀 Build iOS App (sem assinatura paga)
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
pull_request:
7+
8+
jobs:
9+
build:
10+
runs-on: macos-latest # Usando o runner macOS para suportar Xcode e iOS
11+
12+
permissions:
13+
contents: read
14+
packages: write
15+
16+
steps:
17+
- name: 📥 Checkout Repository
18+
uses: actions/checkout@v4
19+
20+
- name: 🛠️ Set up Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '18'
24+
25+
- name: 📦 Install Dependencies
26+
run: npm install
27+
28+
- name: 🏗️ Build files
29+
run: npm run build
30+
31+
- name: ☕ Set up Xcode
32+
run: sudo xcode-select --switch /Applications/Xcode_14.3.app # Atualize com a versão correta do Xcode
33+
34+
- name: 🏗️ Sync Capacitor iOS
35+
run: |
36+
npx cap sync ios
37+
cd ios
38+
pod install
39+
40+
- name: 🏗️ Build iOS App with Xcode
41+
run: |
42+
xcodebuild clean build \
43+
-workspace YourApp.xcworkspace \
44+
-scheme YourAppScheme \
45+
-configuration Release \
46+
-sdk iphoneos \
47+
-destination 'generic/platform=iOS' \
48+
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
49+
50+
- name: 🏗️ Archive App (sem assinatura)
51+
run: |
52+
xcodebuild clean archive \
53+
-workspace YourApp.xcworkspace \
54+
-scheme YourAppScheme \
55+
-configuration Release \
56+
-archivePath $PWD/build/YourApp.xcarchive \
57+
CODE_SIGN_IDENTITY="" \
58+
CODE_SIGNING_REQUIRED=NO
59+
60+
- name: Export IPA (sem assinatura)
61+
run: |
62+
xcodebuild -exportArchive \
63+
-archivePath $PWD/build/YourApp.xcarchive \
64+
-exportOptionsPlist ios/ExportOptions.plist \
65+
-exportPath $PWD/build
66+
67+
- name: ☁️ Upload IPA
68+
uses: actions/upload-artifact@v4
69+
with:
70+
name: ios
71+
path: ios/build/YourApp.ipa

.github/workflows/spell-check.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Spell Check Action ✨🔤
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
spell-check:
9+
timeout-minutes: 5
10+
name: Check Spelling 📚
11+
runs-on: ubuntu-latest
12+
13+
permissions:
14+
contents: read
15+
16+
steps:
17+
- name: Checkout Repository 📂
18+
uses: actions/checkout@v4
19+
20+
- name: Run Spelling Check 🔎
21+
uses: crate-ci/typos@master
22+
with:
23+
config: ./typos.toml

.gitignore

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Node.js dependencies
2+
node_modules/
3+
4+
# Build output
5+
build/
6+
dist/
7+
8+
# Logs
9+
*.log
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
14+
# Operating System files
15+
.DS_Store
16+
Thumbs.db
17+
18+
# IDEs and editors
19+
.vscode/
20+
.idea/
21+
22+
# Environment files
23+
.env
24+
.env.local
25+
.env.*.local
26+
27+
# package-lock.json can be excluded if using yarn or another package manager
28+
package-lock.json
29+
30+
# Typescript build output (if using TypeScript)
31+
*.tsbuildinfo
32+
33+
# Optional npm package logs
34+
*.tgz
35+
36+
# Next.js build output (if using Next.js)
37+
.next/
38+
out/
39+
40+
# SvelteKit build output (if using SvelteKit)
41+
.svelte-kit/
42+
43+
# Test coverage reports
44+
coverage/
45+
46+
# Environment
47+
.env
48+
.env.development
49+
.env.local

.husky/commit-msg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit $1

0 commit comments

Comments
 (0)