This commit is contained in:
Zhiyuan Zheng 2021-01-16 01:44:00 +01:00
parent 5ec9118fb2
commit 64b0e413b3
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
6 changed files with 28 additions and 26 deletions

View File

@ -1,41 +1,39 @@
import { ExpoConfig } from '@expo/config'
export default (): ExpoConfig => ({
name: 'mastodon-app',
description: 'This is a description',
slug: 'mastodon-app',
name: 'tooot',
description: 'tooot for mastodon',
slug: 'tooot',
privacy: 'hidden',
sdkVersion: '40.0.0',
version: '0.1.0',
platforms: ['ios'],
platforms: ['ios', 'android'],
orientation: 'portrait',
userInterfaceStyle: 'automatic',
icon: './assets/icon.png',
developmentClient: { silentLaunch: true },
scheme: 'mastodonct',
splash: {
backgroundColor: '#FAFAFA',
image: './assets/splash.png'
},
scheme: 'tooot',
ios: {
bundleIdentifier: 'com.xmflsct.app.mastodon',
bundleIdentifier: 'com.xmflsct.app.tooot',
googleServicesFile: './configs/GoogleService-Info.plist',
infoPlist: {
CFBundleAllowMixedLocalizations: true
},
splash: {
image: './assets/splash.png',
resizeMode: 'contain',
backgroundColor: '#ffffff'
},
googleServicesFile: './configs/GoogleService-Info.plist'
}
},
android: {
package: 'com.xmflsct.app.mastodon',
googleServicesFile: './configs/google-services.json'
package: 'com.xmflsct.app.tooot',
googleServicesFile: './configs/google-services.json',
permissions: ['CAMERA', 'VIBRATE']
},
locales: {
zh: './src/i18n/zh/app.json',
en: {
CFBundleDisplayName: 'tooot'
}
},
// locales: {
// zh: {
// CFBundleDisplayName: '我的嘟嘟'
// },
// en: {
// CFBundleDisplayName: 'My Toots'
// }
// },
assetBundlePatterns: ['assets/*'],
hooks: {
postPublish: [

Binary file not shown.

Before

Width:  |  Height:  |  Size: 642 B

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -87,7 +87,6 @@
"@types/gl-react-expo": "^3.16.2",
"@types/jest": "^26.0.19",
"@types/lodash": "^4.14.164",
"@types/node": "^14.14.7",
"@types/react": "~16.9.35",
"@types/react-dom": "~16.9.8",
"@types/react-native": "~0.63.2",

View File

@ -185,7 +185,7 @@ const ComponentInstance: React.FC<Props> = ({
content={buttonContent}
onPress={processUpdate}
disabled={!instanceQuery.data?.uri}
loading={instanceQuery.isLoading || applicationQuery.isLoading}
loading={instanceQuery.isFetching || applicationQuery.isFetching}
/>
</View>
<View>

5
src/i18n/zh/app.json Normal file
View File

@ -0,0 +1,5 @@
{
"CFBundleDisplayName": "嘟嘟嘟",
"NSCameraUsageDescription": "允许嘟嘟嘟用相机上传照片",
"NSPhotoLibraryUsageDescription": "允许嘟嘟嘟用相册上传照片"
}