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' import { ExpoConfig } from '@expo/config'
export default (): ExpoConfig => ({ export default (): ExpoConfig => ({
name: 'mastodon-app', name: 'tooot',
description: 'This is a description', description: 'tooot for mastodon',
slug: 'mastodon-app', slug: 'tooot',
privacy: 'hidden', privacy: 'hidden',
sdkVersion: '40.0.0',
version: '0.1.0', version: '0.1.0',
platforms: ['ios'], platforms: ['ios', 'android'],
orientation: 'portrait', orientation: 'portrait',
userInterfaceStyle: 'automatic', userInterfaceStyle: 'automatic',
icon: './assets/icon.png', icon: './assets/icon.png',
developmentClient: { silentLaunch: true }, splash: {
scheme: 'mastodonct', backgroundColor: '#FAFAFA',
image: './assets/splash.png'
},
scheme: 'tooot',
ios: { ios: {
bundleIdentifier: 'com.xmflsct.app.mastodon', bundleIdentifier: 'com.xmflsct.app.tooot',
googleServicesFile: './configs/GoogleService-Info.plist',
infoPlist: { infoPlist: {
CFBundleAllowMixedLocalizations: true CFBundleAllowMixedLocalizations: true
}, }
splash: {
image: './assets/splash.png',
resizeMode: 'contain',
backgroundColor: '#ffffff'
},
googleServicesFile: './configs/GoogleService-Info.plist'
}, },
android: { android: {
package: 'com.xmflsct.app.mastodon', package: 'com.xmflsct.app.tooot',
googleServicesFile: './configs/google-services.json' 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/*'], assetBundlePatterns: ['assets/*'],
hooks: { hooks: {
postPublish: [ 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/gl-react-expo": "^3.16.2",
"@types/jest": "^26.0.19", "@types/jest": "^26.0.19",
"@types/lodash": "^4.14.164", "@types/lodash": "^4.14.164",
"@types/node": "^14.14.7",
"@types/react": "~16.9.35", "@types/react": "~16.9.35",
"@types/react-dom": "~16.9.8", "@types/react-dom": "~16.9.8",
"@types/react-native": "~0.63.2", "@types/react-native": "~0.63.2",

View File

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

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

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