Skip to content

Commit

Permalink
Rename option branch_disable_pasteboard_check to `branch_disable_na…
Browse files Browse the repository at this point in the history
…tivelink`
  • Loading branch information
RodrigoSMarques committed Dec 25, 2024
1 parent c234eba commit 896f5f6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

### 🎉 Features
* Revised documentation including section to change **Flutter Deep link flag**
* New option in INFO.PLIST (`branch_disable_pasteboard_check`) that allows disable NativeLink™ Deferred Deep Linking
* New option in INFO.PLIST (`branch_disable_nativelink`) that allows disable NativeLink™ Deferred Deep Linking

## 8.3.0
### ⚠️ BREAKING CHANGE
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ If you want to disable NativeLink™ Deferred Deep Linking, follow the instructi
2. Add the following in `<dict>` chapter:

```xml
<key>branch_disable_pasteboard_check</key>
<key>branch_disable_nativelink</key>
<true/>
```

Expand Down
2 changes: 1 addition & 1 deletion example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
<string>flutterbranchsdk-alternate.test-app.link</string>
<string>flutterbranchsdk.test-app.link</string>
</array>
<key>branch_disable_pasteboard_check</key>
<key>branch_disable_nativelink</key>
<false/>
<key>FlutterDeepLinkingEnabled</key>
<false/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ public class FlutterBranchSdkPlugin: NSObject, FlutterPlugin, FlutterStreamHandl

Branch.getInstance().registerPluginName(PLUGIN_NAME, version: PLUGIN_VERSION)

let disable_pasteboard_check : Bool = {
guard let value = Bundle.main.object(forInfoDictionaryKey: "branch_disable_pasteboard_check") as? Bool else {
let disable_nativelink : Bool = {
guard let value = Bundle.main.object(forInfoDictionaryKey: "branch_disable_nativelink") as? Bool else {
return false
}
return value
}()

print("Branch Disable Pasteboard Check: \(String(describing:disable_pasteboard_check))");
print("Branch Disable NativeLink: \(String(describing:disable_nativelink))");

if !disable_pasteboard_check {
if !disable_nativelink {
if #available(iOS 15.0, *) {
Branch.getInstance().checkPasteboardOnInstall()
}
Expand Down

0 comments on commit 896f5f6

Please sign in to comment.