Skip to content

Commit

Permalink
fix(example): use boolean values for FacebookAutoLogAppEventsEnabled …
Browse files Browse the repository at this point in the history
…and FacebookAdvertiserIDCollectionEnabled
  • Loading branch information
yaroslavnikiforov committed Oct 15, 2024
1 parent 0621760 commit e75aca8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions RNFBSDKExample/ios/RNFBSDKExample/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@
<string>fbshareextension</string>
</array>
<key>FacebookAutoLogAppEventsEnabled</key>
<string>FALSE</string>
<false/>
<key>FacebookAdvertiserIDCollectionEnabled</key>
<string>FALSE</string>
<false/>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand Down
4 changes: 2 additions & 2 deletions refresh-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ sed -i -e 's/<\/application>/ <meta-data android:name="com.facebook.sdk.AutoLog
rm -f android/app/src/main/AndroidManifest.xml??
sed -i -e 's/<\/application>/ <meta-data android:name="com.facebook.sdk.AdvertiserIDCollectionEnabled" android:value="false"\/>\n <\/application>/' android/app/src/main/AndroidManifest.xml
rm -f android/app/src/main/AndroidManifest.xml??
sed -i -e 's/^<\/dict>/ <key>FacebookAutoLogAppEventsEnabled<\/key>\n <string>FALSE<\/string>\n<\/dict>/' ios/RNFBSDKExample/Info.plist
sed -i -e 's/^<\/dict>/ <key>FacebookAutoLogAppEventsEnabled<\/key>\n <false\/>\n<\/dict>/' ios/RNFBSDKExample/Info.plist
rm -f ios/RNFBSDKExample/Info.plist??
sed -i -e 's/^<\/dict>/ <key>FacebookAdvertiserIDCollectionEnabled<\/key>\n <string>FALSE<\/string>\n<\/dict>/' ios/RNFBSDKExample/Info.plist
sed -i -e 's/^<\/dict>/ <key>FacebookAdvertiserIDCollectionEnabled<\/key>\n <false\/>\n<\/dict>/' ios/RNFBSDKExample/Info.plist
rm -f ios/RNFBSDKExample/Info.plist??

# On iOS and Android you have to add entries for various query schemes (Android S+) and allowed URLs etc
Expand Down

0 comments on commit e75aca8

Please sign in to comment.