From 3955989ab43f0f92d813dbb25024232757a3ff8c Mon Sep 17 00:00:00 2001 From: Zhiyuan Zheng Date: Fri, 16 Apr 2021 10:01:08 +0200 Subject: [PATCH] Adjust according to Apple reviews --- fastlane/metadata/zh-Hans/subtitle.txt | 2 +- ios/en.lproj/InfoPlist.strings | 11 +++++++++++ ios/tooot.xcodeproj/project.pbxproj | 15 +++++++++++++++ ios/tooot/Info.plist | 8 +++----- ios/zh-Hans.lproj/InfoPlist.strings | 11 +++++++++++ 5 files changed, 41 insertions(+), 6 deletions(-) create mode 100644 ios/en.lproj/InfoPlist.strings create mode 100644 ios/zh-Hans.lproj/InfoPlist.strings diff --git a/fastlane/metadata/zh-Hans/subtitle.txt b/fastlane/metadata/zh-Hans/subtitle.txt index 644b04f2..8b6cf09a 100644 --- a/fastlane/metadata/zh-Hans/subtitle.txt +++ b/fastlane/metadata/zh-Hans/subtitle.txt @@ -1 +1 @@ -开源长毛象客户端 \ No newline at end of file +开源毛象客户端 \ No newline at end of file diff --git a/ios/en.lproj/InfoPlist.strings b/ios/en.lproj/InfoPlist.strings new file mode 100644 index 00000000..6b01b426 --- /dev/null +++ b/ios/en.lproj/InfoPlist.strings @@ -0,0 +1,11 @@ +/* + InfoPlist.strings + tooot + + Created by Zheng Zhiyuan (SEBD) on 2021-04-16. + +*/ + +"NSCameraUsageDescription" = "Allow tooot to capture photo or video and attach it to your toot" +"NSPhotoLibraryAddUsageDescription" = "Allow tooot to save an image to your camera roll" +"NSPhotoLibraryUsageDescription" = "Allow tooot to access your camera roll to attach photos or videos to your toot" diff --git a/ios/tooot.xcodeproj/project.pbxproj b/ios/tooot.xcodeproj/project.pbxproj index 3b6db793..6c0f8b0b 100644 --- a/ios/tooot.xcodeproj/project.pbxproj +++ b/ios/tooot.xcodeproj/project.pbxproj @@ -13,6 +13,7 @@ 13B07FC11A68108700A75B9A /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 13B07FB71A68108700A75B9A /* main.m */; }; 3E461D99554A48A4959DE609 /* SplashScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */; }; 5E36538325C9B8BD009F93EE /* RootViewColor.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5E36538225C9B8BD009F93EE /* RootViewColor.xcassets */; }; + 5EE088C926297820007E5FEC /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 5EE088CB26297820007E5FEC /* InfoPlist.strings */; }; 5EE44DD62600124E00A9BCED /* File.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5EE44DD52600124E00A9BCED /* File.swift */; }; 96905EF65AED1B983A6B3ABC /* libPods-tooot.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-tooot.a */; }; BB2F792D24A3F905000567C9 /* Expo.plist in Resources */ = {isa = PBXBuildFile; fileRef = BB2F792C24A3F905000567C9 /* Expo.plist */; }; @@ -30,6 +31,8 @@ 13B07FB71A68108700A75B9A /* main.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = main.m; path = tooot/main.m; sourceTree = ""; }; 58EEBF8E8E6FB1BC6CAF49B5 /* libPods-tooot.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-tooot.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 5E36538225C9B8BD009F93EE /* RootViewColor.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = RootViewColor.xcassets; path = tooot/RootViewColor.xcassets; sourceTree = ""; }; + 5EE088CA26297820007E5FEC /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/InfoPlist.strings; sourceTree = ""; }; + 5EE088CD2629786B007E5FEC /* zh-Hans */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "zh-Hans"; path = "zh-Hans.lproj/InfoPlist.strings"; sourceTree = ""; }; 5EE44DD42600124E00A9BCED /* tooot-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "tooot-Bridging-Header.h"; sourceTree = ""; }; 5EE44DD52600124E00A9BCED /* File.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = File.swift; sourceTree = ""; }; 6C2E3173556A471DD304B334 /* Pods-tooot.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-tooot.debug.xcconfig"; path = "Target Support Files/Pods-tooot/Pods-tooot.debug.xcconfig"; sourceTree = ""; }; @@ -67,6 +70,7 @@ AA286B85B6C04FC6940260E9 /* SplashScreen.storyboard */, 5E36538225C9B8BD009F93EE /* RootViewColor.xcassets */, B96B72E5384D44A7B240B27E /* GoogleService-Info.plist */, + 5EE088CB26297820007E5FEC /* InfoPlist.strings */, ); name = tooot; sourceTree = ""; @@ -177,6 +181,7 @@ knownRegions = ( en, Base, + "zh-Hans", ); mainGroup = 83CBB9F61A601CBA00E9B192; productRefGroup = 83CBBA001A601CBA00E9B192 /* Products */; @@ -194,6 +199,7 @@ buildActionMask = 2147483647; files = ( 5E36538325C9B8BD009F93EE /* RootViewColor.xcassets in Resources */, + 5EE088C926297820007E5FEC /* InfoPlist.strings in Resources */, BB2F792D24A3F905000567C9 /* Expo.plist in Resources */, 13B07FBF1A68108700A75B9A /* Images.xcassets in Resources */, 13B07FBD1A68108700A75B9A /* LaunchScreen.xib in Resources */, @@ -321,6 +327,15 @@ path = tooot; sourceTree = ""; }; + 5EE088CB26297820007E5FEC /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 5EE088CA26297820007E5FEC /* en */, + 5EE088CD2629786B007E5FEC /* zh-Hans */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ diff --git a/ios/tooot/Info.plist b/ios/tooot/Info.plist index eb35c58c..33e171e2 100644 --- a/ios/tooot/Info.plist +++ b/ios/tooot/Info.plist @@ -51,15 +51,13 @@ NSCameraUsageDescription - Give $(PRODUCT_NAME) permission to access your camera + Allow $(PRODUCT_NAME) to capture photo or video and attach it to your toot NSLocationWhenInUseUsageDescription - NSMicrophoneUsageDescription - Give $(PRODUCT_NAME) permission to use your microphone NSPhotoLibraryAddUsageDescription - Give $(PRODUCT_NAME) permission to save photos + Allow $(PRODUCT_NAME) to save an image to your camera roll NSPhotoLibraryUsageDescription - Give $(PRODUCT_NAME) permission to save photos + Allow $(PRODUCT_NAME) to access your camera roll to attach photos or videos to your toot UILaunchStoryboardName SplashScreen UIRequiredDeviceCapabilities diff --git a/ios/zh-Hans.lproj/InfoPlist.strings b/ios/zh-Hans.lproj/InfoPlist.strings new file mode 100644 index 00000000..6b5f0a02 --- /dev/null +++ b/ios/zh-Hans.lproj/InfoPlist.strings @@ -0,0 +1,11 @@ +/* + InfoPlist.strings + tooot + + Created by Zheng Zhiyuan (SEBD) on 2021-04-16. + +*/ + +"NSCameraUsageDescription" = "允许tooot拍摄图片或视频,以添加嘟文附件" +"NSPhotoLibraryAddUsageDescription" = "允许tooot保存图片至相册" +"NSPhotoLibraryUsageDescription" = "允许tooot读取相册图片或视频,以添加嘟文附件"