fix(ios): send affine version on sign in (#11058)

This commit is contained in:
EYHN
2025-03-21 12:35:34 +08:00
committed by GitHub
parent 55a60906a5
commit bdd547d8db
6 changed files with 44 additions and 6 deletions
+13 -1
View File
@@ -1,10 +1,22 @@
import { readFileSync } from 'node:fs';
import { resolve } from 'node:path';
import type { CapacitorConfig } from '@capacitor/cli';
import { KeyboardResize } from '@capacitor/keyboard';
const config: CapacitorConfig = {
const packageJson = JSON.parse(
readFileSync(resolve(__dirname, './package.json'), 'utf-8')
);
interface AppConfig {
affineVersion: string;
}
const config: CapacitorConfig & AppConfig = {
appId: 'app.affine.pro',
appName: 'AFFiNE',
webDir: 'dist',
affineVersion: packageJson.version,
ios: {
scheme: 'AFFiNE',
path: '.',