@@ -29,44 +29,44 @@ function add_permission_label() {
2929 echo " "
3030 echo " Add permission labels to iOS."
3131 echo " "
32- python add-line.py -i ../ios/Runner/Info.plist -s ' <key>UILaunchStoryboardName</key>' -t ' <key>NSCameraUsageDescription</key>'
33- python add-line.py -i ../ios/Runner/Info.plist -s ' <key>UILaunchStoryboardName</key>' -t ' <string>$(PRODUCT_NAME) Camera Usage!</string>'
34- python add-line.py -i ../ios/Runner/Info.plist -s ' <key>UILaunchStoryboardName</key>' -t ' <key>NSMicrophoneUsageDescription</key>'
35- python add-line.py -i ../ios/Runner/Info.plist -s ' <key>UILaunchStoryboardName</key>' -t ' <string>$(PRODUCT_NAME) Microphone Usage!</string>'
36- python add-line.py -i ../ios/Podfile -s " # platform :ios, '9.0'" -t " platform :ios, '10.0'" -r
32+ python3 add-line.py -i ../ios/Runner/Info.plist -s ' <key>UILaunchStoryboardName</key>' -t ' <key>NSCameraUsageDescription</key>'
33+ python3 add-line.py -i ../ios/Runner/Info.plist -s ' <key>UILaunchStoryboardName</key>' -t ' <string>$(PRODUCT_NAME) Camera Usage!</string>'
34+ python3 add-line.py -i ../ios/Runner/Info.plist -s ' <key>UILaunchStoryboardName</key>' -t ' <key>NSMicrophoneUsageDescription</key>'
35+ python3 add-line.py -i ../ios/Runner/Info.plist -s ' <key>UILaunchStoryboardName</key>' -t ' <string>$(PRODUCT_NAME) Microphone Usage!</string>'
36+ python3 add-line.py -i ../ios/Podfile -s " # platform :ios, '9.0'" -t " platform :ios, '10.0'" -r
3737 echo " "
3838 echo " Add permission labels to AndroidManifest.xml."
3939 echo " "
40- python add-line.py -i ../android/app/build.gradle -s ' minSdkVersion 16' -t ' minSdkVersion 21' -r
41- python add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.CAMERA" />'
42- python add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.RECORD_AUDIO" />'
43- python add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.WAKE_LOCK" />'
44- python add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />'
45- python add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />'
46- python add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />'
47- python add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />'
48- python add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />'
40+ python3 add-line.py -i ../android/app/build.gradle -s ' minSdkVersion 16' -t ' minSdkVersion 21' -r
41+ python3 add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.CAMERA" />'
42+ python3 add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.RECORD_AUDIO" />'
43+ python3 add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.WAKE_LOCK" />'
44+ python3 add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />'
45+ python3 add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />'
46+ python3 add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />'
47+ python3 add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />'
48+ python3 add-line.py -i ../android/app/src/main/AndroidManifest.xml -s " <application" -t ' <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />'
4949 echo " "
5050 echo " Add permission labels to macOS."
5151 echo " "
52- python add-line.py -i ../macos/Runner/Info.plist -s ' <key>CFBundleShortVersionString</key>' -t ' <key>NSCameraUsageDescription</key>'
53- python add-line.py -i ../macos/Runner/Info.plist -s ' <key>CFBundleShortVersionString</key>' -t ' <string>$(PRODUCT_NAME) Camera Usage!</string>'
54- python add-line.py -i ../macos/Runner/Info.plist -s ' <key>CFBundleShortVersionString</key>' -t ' <key>NSMicrophoneUsageDescription</key>'
55- python add-line.py -i ../macos/Runner/Info.plist -s ' <key>CFBundleShortVersionString</key>' -t ' <string>$(PRODUCT_NAME) Microphone Usage!</string>'
52+ python3 add-line.py -i ../macos/Runner/Info.plist -s ' <key>CFBundleShortVersionString</key>' -t ' <key>NSCameraUsageDescription</key>'
53+ python3 add-line.py -i ../macos/Runner/Info.plist -s ' <key>CFBundleShortVersionString</key>' -t ' <string>$(PRODUCT_NAME) Camera Usage!</string>'
54+ python3 add-line.py -i ../macos/Runner/Info.plist -s ' <key>CFBundleShortVersionString</key>' -t ' <key>NSMicrophoneUsageDescription</key>'
55+ python3 add-line.py -i ../macos/Runner/Info.plist -s ' <key>CFBundleShortVersionString</key>' -t ' <string>$(PRODUCT_NAME) Microphone Usage!</string>'
5656
57- python add-line.py -i ../macos/Runner/DebugProfile.entitlements -s ' </dict>' -t ' <key>com.apple.security.device.camera</key>'
58- python add-line.py -i ../macos/Runner/DebugProfile.entitlements -s ' </dict>' -t ' <true/>'
59- python add-line.py -i ../macos/Runner/DebugProfile.entitlements -s ' </dict>' -t ' <key>com.apple.security.device.microphone</key>'
60- python add-line.py -i ../macos/Runner/DebugProfile.entitlements -s ' </dict>' -t ' <true/>'
61- python add-line.py -i ../macos/Runner/DebugProfile.entitlements -s ' </dict>' -t ' <key>com.apple.security.network.client</key>'
62- python add-line.py -i ../macos/Runner/DebugProfile.entitlements -s ' </dict>' -t ' <true/>'
57+ python3 add-line.py -i ../macos/Runner/DebugProfile.entitlements -s ' </dict>' -t ' <key>com.apple.security.device.camera</key>'
58+ python3 add-line.py -i ../macos/Runner/DebugProfile.entitlements -s ' </dict>' -t ' <true/>'
59+ python3 add-line.py -i ../macos/Runner/DebugProfile.entitlements -s ' </dict>' -t ' <key>com.apple.security.device.microphone</key>'
60+ python3 add-line.py -i ../macos/Runner/DebugProfile.entitlements -s ' </dict>' -t ' <true/>'
61+ python3 add-line.py -i ../macos/Runner/DebugProfile.entitlements -s ' </dict>' -t ' <key>com.apple.security.network.client</key>'
62+ python3 add-line.py -i ../macos/Runner/DebugProfile.entitlements -s ' </dict>' -t ' <true/>'
6363
64- python add-line.py -i ../macos/Runner/Release.entitlements -s ' </dict>' -t ' <key>com.apple.security.device.camera</key>'
65- python add-line.py -i ../macos/Runner/Release.entitlements -s ' </dict>' -t ' <true/>'
66- python add-line.py -i ../macos/Runner/Release.entitlements -s ' </dict>' -t ' <key>com.apple.security.device.microphone</key>'
67- python add-line.py -i ../macos/Runner/Release.entitlements -s ' </dict>' -t ' <true/>'
68- python add-line.py -i ../macos/Runner/Release.entitlements -s ' </dict>' -t ' <key>com.apple.security.network.client</key>'
69- python add-line.py -i ../macos/Runner/Release.entitlements -s ' </dict>' -t ' <true/>'
64+ python3 add-line.py -i ../macos/Runner/Release.entitlements -s ' </dict>' -t ' <key>com.apple.security.device.camera</key>'
65+ python3 add-line.py -i ../macos/Runner/Release.entitlements -s ' </dict>' -t ' <true/>'
66+ python3 add-line.py -i ../macos/Runner/Release.entitlements -s ' </dict>' -t ' <key>com.apple.security.device.microphone</key>'
67+ python3 add-line.py -i ../macos/Runner/Release.entitlements -s ' </dict>' -t ' <true/>'
68+ python3 add-line.py -i ../macos/Runner/Release.entitlements -s ' </dict>' -t ' <key>com.apple.security.network.client</key>'
69+ python3 add-line.py -i ../macos/Runner/Release.entitlements -s ' </dict>' -t ' <true/>'
7070}
7171
7272if [ " $CMD " == " create" ];
0 commit comments