Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iPad #301

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

iPad #301

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions apps/tablet/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
VITE_APP_LOCALES=en,zh_TW,zh_CN,id,ru,it,es,uk,tr,bg,uz,bn
VITE_APP_AMPLITUDE=
VITE_APP_TONCONSOLE_HOST=https://pro.tonconsole.com
VITE_APP_TG_BOT_ID=6345183204
VITE_APP_TG_BOT_ORIGIN=https://tonkeeper.com
VITE_APP_STONFI_REFERRAL_ADDRESS=UQCthC8ICK7K8Hkfm9smblLFroKrYrEMwZuoD4Nbm5LswUnc
8 changes: 8 additions & 0 deletions apps/tablet/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.idea/
node_modules/
.vscode/
*.map
.DS_Store
.sourcemaps
dist/
/capacitor.live-reload-config.ts
11 changes: 11 additions & 0 deletions apps/tablet/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Tonkeeper tablet

### Start development server
1. `chmod +x live-reload.sh`
2. `yarn start`
3. Open xcode and run the app in ./ios directory

### Build app
1. `chmod +x build.sh`
2. `yarn build`
3. Open xcode and run the app in ./ios directory
12 changes: 12 additions & 0 deletions apps/tablet/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
rm -f vite.log
CAPACITOR_CONFIG_FILE="./capacitor.live-reload-config.ts"

cat > "$CAPACITOR_CONFIG_FILE" <<EOL
export const server = undefined;
EOL

echo "Updated $CAPACITOR_CONFIG_FILE with the empty Vite server"

echo "Running npx cap sync..."
tsc && vite build && cap sync
10 changes: 10 additions & 0 deletions apps/tablet/capacitor.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"appId": "com.tonkeeper.pro.app",
"appName": "Tonkeeper Pro",
"webDir": "dist",
"plugins": {
"SplashScreen": {
"launchShowDuration": 0
}
}
}
22 changes: 22 additions & 0 deletions apps/tablet/capacitor.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { CapacitorConfig } from '@capacitor/cli';
import { server } from "./capacitor.live-reload-config";

const config: CapacitorConfig = {
appId: 'com.tonkeeper.pro.app',
appName: 'Tonkeeper Pro',
webDir: 'dist',
plugins: {
SplashScreen: {
launchShowDuration: 0
},
CapacitorHttp: {
enabled: true
},
CapacitorCookies: {
enabled: true
},
},
server
};

export default config;
16 changes: 16 additions & 0 deletions apps/tablet/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Tonkeeper Pro</title>

<link
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&amp;display=swap"
rel="stylesheet"
/>
</head>
<body style="background:#10161F">
<script type="module" src="./src/index.tsx"></script>
<div id="root"></div>
</body>
</html>
13 changes: 13 additions & 0 deletions apps/tablet/ios/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
App/build
App/Pods
App/output
App/App/public
DerivedData
xcuserdata

# Cordova plugins for Capacitor
capacitor-cordova-ios-plugins

# Generated Config files
App/App/capacitor.config.json
App/App/config.xml
Loading
Loading