Compare commits
1 Commits
deep-link-
...
app_id_fix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cd32c37cfb |
@@ -442,13 +442,13 @@ mv time-safari/dist time-safari-dist-prev.0 && mv crowd-funder-for-time-pwa/dist
|
|||||||
adb shell pm list packages | grep timesafari
|
adb shell pm list packages | grep timesafari
|
||||||
|
|
||||||
# Force stop the app (if it's running)
|
# Force stop the app (if it's running)
|
||||||
adb shell am force-stop app.timesafari
|
adb shell am force-stop app.timesafari.app
|
||||||
|
|
||||||
# Clear app data (if you don't want to fully uninstall)
|
# Clear app data (if you don't want to fully uninstall)
|
||||||
adb shell pm clear app.timesafari
|
adb shell pm clear app.timesafari.app
|
||||||
|
|
||||||
# Uninstall for all users
|
# Uninstall for all users
|
||||||
adb shell pm uninstall -k --user 0 app.timesafari
|
adb shell pm uninstall -k --user 0 app.timesafari.app
|
||||||
|
|
||||||
# Check if app is installed
|
# Check if app is installed
|
||||||
adb shell pm path app.timesafari
|
adb shell pm path app.timesafari.app
|
||||||
Binary file not shown.
Binary file not shown.
@@ -6,7 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<link rel="icon" href="/favicon.ico">
|
<link rel="icon" href="/favicon.ico">
|
||||||
<title>TimeSafari</title>
|
<title>TimeSafari</title>
|
||||||
<script type="module" crossorigin src="/assets/index-CZMUlUNO.js"></script>
|
<script type="module" crossorigin src="/assets/index-DHTxVcAY.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<noscript>
|
<noscript>
|
||||||
|
|||||||
1455
package-lock.json
generated
1455
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,7 @@
|
|||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --config vite.config.dev.mts",
|
"dev": "vite --config vite.config.dev.mts",
|
||||||
"serve": "vite preview",
|
"serve": "NODE_ENV=production vite preview --mode production --host",
|
||||||
"build": "VITE_GIT_HASH=`git log -1 --pretty=format:%h` vite build --config vite.config.mts",
|
"build": "VITE_GIT_HASH=`git log -1 --pretty=format:%h` vite build --config vite.config.mts",
|
||||||
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src",
|
"lint": "eslint --ext .js,.ts,.vue --ignore-path .gitignore src",
|
||||||
"lint-fix": "eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src",
|
"lint-fix": "eslint --ext .js,.ts,.vue --ignore-path .gitignore --fix src",
|
||||||
@@ -155,7 +155,7 @@
|
|||||||
},
|
},
|
||||||
"main": "./dist-electron/main.js",
|
"main": "./dist-electron/main.js",
|
||||||
"build": {
|
"build": {
|
||||||
"appId": "app.timesafari",
|
"appId": "app.timesafari.app",
|
||||||
"productName": "TimeSafari",
|
"productName": "TimeSafari",
|
||||||
"directories": {
|
"directories": {
|
||||||
"output": "dist-electron-packages"
|
"output": "dist-electron-packages"
|
||||||
|
|||||||
@@ -170,7 +170,7 @@ const executeDeeplink = async (url, description, log) => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Stop the app before executing the deep link
|
// Stop the app before executing the deep link
|
||||||
execSync('adb shell am force-stop app.timesafari');
|
execSync('adb shell am force-stop app.timesafari.app');
|
||||||
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait 1s
|
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait 1s
|
||||||
|
|
||||||
execSync(`adb shell am start -W -a android.intent.action.VIEW -d "${url}" -c android.intent.category.BROWSABLE`);
|
execSync(`adb shell am start -W -a android.intent.action.VIEW -d "${url}" -c android.intent.category.BROWSABLE`);
|
||||||
@@ -207,10 +207,6 @@ const runDeeplinkTests = async (log) => {
|
|||||||
|
|
||||||
// Test URLs
|
// Test URLs
|
||||||
const deeplinkTests = [
|
const deeplinkTests = [
|
||||||
{
|
|
||||||
url: `timesafari://claim/${claimDetails.claim_id}`,
|
|
||||||
description: 'Claim view'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
url: `timesafari://claim-cert/${claimDetails.claim_id}`,
|
url: `timesafari://claim-cert/${claimDetails.claim_id}`,
|
||||||
description: 'Claim certificate view'
|
description: 'Claim certificate view'
|
||||||
|
|||||||
@@ -800,7 +800,7 @@ const checkAndRegisterUrlScheme = (log) => {
|
|||||||
<array>
|
<array>
|
||||||
<dict>
|
<dict>
|
||||||
<key>CFBundleURLName</key>
|
<key>CFBundleURLName</key>
|
||||||
<string>app.timesafari</string>
|
<string>app.timesafari.app</string>
|
||||||
<key>CFBundleURLSchemes</key>
|
<key>CFBundleURLSchemes</key>
|
||||||
<array>
|
<array>
|
||||||
<string>timesafari</string>
|
<string>timesafari</string>
|
||||||
@@ -855,10 +855,10 @@ const getAppIdentifier = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Default fallback
|
// Default fallback
|
||||||
return 'app.timesafari';
|
return 'app.timesafari.app';
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('Error getting app identifier:', error);
|
console.error('Error getting app identifier:', error);
|
||||||
return 'app.timesafari'; // Default fallback
|
return 'app.timesafari.app'; // Default fallback
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ execute_deeplink() {
|
|||||||
echo "---"
|
echo "---"
|
||||||
else
|
else
|
||||||
# Stop the app before executing the deep link
|
# Stop the app before executing the deep link
|
||||||
adb shell am force-stop app.timesafari
|
adb shell am force-stop app.timesafari.app
|
||||||
sleep 1 # Give it a moment to fully stop
|
sleep 1 # Give it a moment to fully stop
|
||||||
|
|
||||||
if adb shell am start -W -a android.intent.action.VIEW \
|
if adb shell am start -W -a android.intent.action.VIEW \
|
||||||
|
|||||||
6
vite.config.js
Normal file
6
vite.config.js
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
export default {
|
||||||
|
preview: {
|
||||||
|
host: true,
|
||||||
|
port: 4173
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user