mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-31 17:19:56 +08:00
fix(ios): send affine version on sign in (#11058)
This commit is contained in:
@@ -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: '.',
|
||||
|
||||
Reference in New Issue
Block a user