@sigit / siti / commits / c68de82

Add site associations

paydii committed Jul 25, 2026 at 22:26 UTC c68de820c3010bb459ed40a08c40d38a8055927b
5 files changed +65
src-tauri/gen-override/android/app/src/main/AndroidManifest.xml new
+18
@@ -0,0 +1,18 @@
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<!-- Merged with Tauri's generated manifest to add App Links verification. -->
3 +<manifest xmlns:android="http://schemas.android.com/apk/res/android">
4 + <application>
5 + <activity
6 + android:name=".MainActivity"
7 + android:exported="true">
8 + <intent-filter android:autoVerify="true">
9 + <action android:name="android.intent.action.VIEW" />
10 + <category android:name="android.intent.category.DEFAULT" />
11 + <category android:name="android.intent.category.BROWSABLE" />
12 + <data
13 + android:scheme="https"
14 + android:host="getsiti.5mb.app" />
15 + </intent-filter>
16 + </activity>
17 + </application>
18 +</manifest>
src-tauri/gen-override/apple/sitiai_iOS/sitiai_iOS.entitlements
+5
@@ -8,5 +8,10 @@
8 <array>
9 <string>group.com.ondeinference.apps</string>
10 </array>
11 + <key>com.apple.developer.associated-domains</key>
12 + <array>
13 + <string>applinks:getsiti.5mb.app</string>
14 + <string>webcredentials:getsiti.5mb.app</string>
15 + </array>
16 </dict>
17 </plist>
web/next.config.mjs
+12
@@ -21,6 +21,18 @@ const nextConfig = {
21 // preserves the source path (`.next/standalone/web/server.js`); the smbCloud CLI
22 // handles this nested runtime layout.
23 outputFileTracingRoot: path.join(__dirname, ".."),
24 +
25 + // Ensure the extensionless apple-app-site-association file is served with the
26 + // correct Content-Type — some static hosts default to application/octet-stream
27 + // for files without an extension, which Apple's AASA fetcher may reject.
28 + async headers() {
29 + return [
30 + {
31 + source: "/.well-known/apple-app-site-association",
32 + headers: [{ key: "Content-Type", value: "application/json" }],
33 + },
34 + ];
35 + },
36 };
37
38 export default nextConfig;
web/public/.well-known/apple-app-site-association new
+15
@@ -0,0 +1,15 @@
1 +{
2 + "applinks": {
3 + "details": [
4 + {
5 + "appIDs": ["2TQF86ZACD.ai.siti.Siti"],
6 + "components": [
7 + { "/": "/*", "comment": "Open all site links in the app" }
8 + ]
9 + }
10 + ]
11 + },
12 + "webcredentials": {
13 + "apps": ["2TQF86ZACD.ai.siti.Siti"]
14 + }
15 +}
web/public/.well-known/assetlinks.json new
+15
@@ -0,0 +1,15 @@
1 +[
2 + {
3 + "relation": [
4 + "delegate_permission/common.handle_all_urls",
5 + "delegate_permission/common.get_login_creds"
6 + ],
7 + "target": {
8 + "namespace": "android_app",
9 + "package_name": "ai.siti.Siti",
10 + "sha256_cert_fingerprints": [
11 + "25:36:6F:4B:03:5C:9D:B6:9C:E2:6C:1A:65:D9:74:8A:EE:04:6B:EC:32:40:BC:58:2C:65:EA:12:EB:21:40:3B"
12 + ]
13 + }
14 + }
15 +]