Created
March 27, 2024 12:18
-
-
Save bizz84/b700c16374d96110606e623145348810 to your computer and use it in GitHub Desktop.
Bash script to check if the Podfile.lock contains any SDKs that should be declared in the privacy manifest file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Abseil | |
AFNetworking | |
Alamofire | |
AppAuth | |
BoringSSL / openssl_grpc | |
Capacitor | |
Charts | |
connectivity_plus | |
Cordova | |
device_info_plus | |
DKImagePickerController | |
DKPhotoGallery | |
FBAEMKit | |
FBLPromises | |
FBSDKCoreKit | |
FBSDKCoreKit_Basics | |
FBSDKLoginKit | |
FBSDKShareKit | |
file_picker | |
FirebaseABTesting | |
FirebaseAuth | |
FirebaseCore | |
FirebaseCoreDiagnostics | |
FirebaseCoreExtension | |
FirebaseCoreInternal | |
FirebaseCrashlytics | |
FirebaseDynamicLinks | |
FirebaseFirestore | |
FirebaseInstallations | |
FirebaseMessaging | |
FirebaseRemoteConfig | |
Flutter | |
flutter_inappwebview | |
flutter_local_notifications | |
fluttertoast | |
FMDB | |
geolocator_apple | |
GoogleDataTransport | |
GoogleSignIn | |
GoogleToolboxForMac | |
GoogleUtilities | |
grpcpp | |
GTMAppAuth | |
GTMSessionFetcher | |
hermes | |
image_picker_ios | |
IQKeyboardManager | |
IQKeyboardManagerSwift | |
Kingfisher | |
leveldb | |
Lottie | |
MBProgressHUD | |
nanopb | |
OneSignal | |
OneSignalCore | |
OneSignalExtension | |
OneSignalOutcomes | |
OpenSSL | |
OrderedSet | |
package_info | |
package_info_plus | |
path_provider | |
path_provider_ios | |
Promises | |
Protobuf | |
Reachability | |
RealmSwift | |
RxCocoa | |
RxRelay | |
RxSwift | |
SDWebImage | |
share_plus | |
shared_preferences_ios | |
SnapKit | |
sqflite | |
Starscream | |
SVProgressHUD | |
SwiftyGif | |
SwiftyJSON | |
Toast | |
UnityFramework | |
url_launcher | |
url_launcher_ios | |
video_player_avfoundation | |
wakelock | |
webview_flutter_wkwebview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if an argument is passed | |
if [ $# -eq 0 ]; then | |
echo "Error: No input file provided." | |
echo "Usage: $0 <path_to_txt_file>" | |
exit 1 | |
fi | |
# Assign the first argument to a variable | |
txtFilePath="$1" | |
# Check if the file exists | |
if [ ! -f "$txtFilePath" ]; then | |
echo "Error: File '$txtFilePath' does not exist." | |
exit 2 | |
fi | |
# Check if Podfile.lock exists | |
if [ ! -f "Podfile.lock" ]; then | |
echo "Error: Podfile.lock not found" | |
exit 3 | |
fi | |
# Read each line in txt file and check against Podfile.lock | |
echo "The following SDKs need to be included in the privacy manifest:" | |
while IFS= read -r line; do | |
# Use grep to search for the line in Podfile.lock | |
if grep -q "$line" "Podfile.lock"; then | |
echo "- $line" | |
fi | |
done < "$txtFilePath" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Would be cool to improve the script for checking only outdated dependencies https://apnspush.com/privacy-manifest-sdks