Skip to content

Commit

Permalink
Merge pull request #242 from RodrigoSMarques/dev
Browse files Browse the repository at this point in the history
Release 6.8.0
  • Loading branch information
RodrigoSMarques committed Sep 18, 2023
2 parents a3588d2 + 6eadc44 commit b6a2627
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 66 deletions.
10 changes: 8 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
## 6.8.0
* Updated Native `Android` SDKs:
* Android Native SDK Update 5.7.+ - [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases)
* iOS Native SDK Update 2.2.1 - [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases)
* Removed:
- Facebook App Install Ads on Android (parameter `branch_enable_facebook_ads`)

## 6.7.1
* Fix issue #237: `Pass long URL when try creating Short URL in Offline`
*

## 6.7.0
* Updated Native `Android` and `iOS` SDKs:
* Android Native SDK Update 5.6.+ - [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases)
* iOS Native SDK Update 2.2.0 - [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases)

* Removed:
- Firebase App Indexing in Android (`listOnSearch` and `removeFromSearch` return `success` but do not perform any action)
- Old Apple Search Ads APIs (parameter `branch_check_apple_ads`)
Expand Down
16 changes: 1 addition & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -620,20 +620,6 @@ To enable:
android:value="true" />
```

### Enabled Clipboard Deferred Deep Linking in iOS
> Enabled by default starting with **iOS 15+ Only**

Use iOS pasteboard to enable deferred deep linking.

To enable Clipboard Deferred Deep Linking update `INFO.PLIST` on `iOS`

Add to `INFO.PLIST`:

```swift
<key>branch_check_pasteboard</key>
<true/>
```

### Facebook App Install Ads

Branch links can be used together with Facebook App Install Campaign ads, allowing you to track ad-driven installs on the Branch dashboard and deep link those new users directly to content the first time they open your app.
Expand All @@ -651,7 +637,7 @@ For `iOS` add to `INFO.PLIST`:
<key>branch_enable_facebook_ads</key>
<true/>
```

** Deprecated on version 6.8.0 **
For `Android` add to `AndroidManifest.xml`:

```java
Expand Down
3 changes: 1 addition & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ android {
}

dependencies {
implementation 'io.branch.sdk.android:library:5.6.+'
//implementation 'com.google.firebase:firebase-appindexing:19.0.0'
implementation 'io.branch.sdk.android:library:5.7.+'
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
implementation 'androidx.browser:browser:1.5.0'
implementation 'androidx.lifecycle:lifecycle-runtime:2.5.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,4 @@ public static boolean getEnableLog() {
}
return false;
}

public static boolean getEnableFacebookAds() {
try {
final ApplicationInfo ai = context.getPackageManager().getApplicationInfo(context.getPackageName(), PackageManager.GET_META_DATA);
if (ai.metaData != null) {
return ai.metaData.getBoolean("branch_enable_facebook_ads",
false);
} else {
return false;
}
} catch (Exception e) {
LogUtils.debug("FlutterBranchSDK", "ApplicationInfoHelper error: " + e.getLocalizedMessage());
}
return false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
public class FlutterBranchSdkInit {
private static final String DEBUG_NAME = "FlutterBranchSDK";
private static final String PLUGIN_NAME = "Flutter";
private static final String PLUGIN_VERSION = "6.7.1";
private static final String PLUGIN_VERSION = "6.8.0";

public static void init(Context context) {
ApplicationInfoHelper applicationInfoHelper = new ApplicationInfoHelper(context);
Expand All @@ -20,10 +20,6 @@ public static void init(Context context) {
Log.i(DEBUG_NAME, "Branch SDK with out log");
}

if (applicationInfoHelper.getEnableFacebookAds()) {
Branch.getAutoInstance(context).enableFacebookAppLinkCheck();
}

// Branch object initialization
Branch.registerPlugin(PLUGIN_NAME, PLUGIN_VERSION);
Branch.getAutoInstance(context);
Expand Down
8 changes: 4 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PODS:
- BranchSDK (2.2.0)
- BranchSDK (2.2.1)
- Flutter (1.0.0)
- flutter_branch_sdk (6.4.0):
- BranchSDK (~> 2.2.0)
- BranchSDK (~> 2.2.1)
- Flutter

DEPENDENCIES:
Expand All @@ -20,9 +20,9 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/flutter_branch_sdk/ios"

SPEC CHECKSUMS:
BranchSDK: 8749d10e30725d08b6c188ab90e6fd6223d204db
BranchSDK: cb046c2714b03e573484ce9e349e2ddbad7016e8
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
flutter_branch_sdk: da3bece1a03160a8a021ef4ec3d426e89c6da169
flutter_branch_sdk: 4abdebac9688050516f1fba611c60539ab8557e1

PODFILE CHECKSUM: 7368163408c647b7eb699d0d788ba6718e18fb8d

Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ packages:
path: ".."
relative: true
source: path
version: "6.7.0"
version: "6.8.0"
flutter_lints:
dependency: "direct dev"
description:
Expand Down
11 changes: 3 additions & 8 deletions ios/Classes/SwiftFlutterBranchSdkPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let MESSAGE_CHANNEL = "flutter_branch_sdk/message";
let EVENT_CHANNEL = "flutter_branch_sdk/event";
let ERROR_CODE = "FLUTTER_BRANCH_SDK_ERROR";
let PLUGIN_NAME = "Flutter";
let PLUGIN_VERSION = "6.7.1"
let PLUGIN_VERSION = "6.8.0"

public class SwiftFlutterBranchSdkPlugin: NSObject, FlutterPlugin, FlutterStreamHandler {
var eventSink: FlutterEventSink?
Expand Down Expand Up @@ -64,15 +64,10 @@ public class SwiftFlutterBranchSdkPlugin: NSObject, FlutterPlugin, FlutterStream
}
}

let checkPasteboard = Bundle.infoPlistValue(forKey: "branch_check_pasteboard") as? Bool ?? false
print("Branch Clipboard Deferred Deep Linking: \(String(describing:checkPasteboard))");

if checkPasteboard {
Branch.getInstance().checkPasteboardOnInstall()
} else if #available(iOS 15.0, *) {
if #available(iOS 15.0, *) {
Branch.getInstance().checkPasteboardOnInstall()
}

Branch.getInstance().initSession(launchOptions: launchOptions) { (params, error) in
if error == nil {
print("Branch InitSession params: \(String(describing: params as? [String: Any]))")
Expand Down
4 changes: 2 additions & 2 deletions ios/flutter_branch_sdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'flutter_branch_sdk'
s.version = '6.4.0'
s.version = '6.8.0'
s.summary = 'Flutter Plugin for create deep link using Brach SDK (https://branch.io). This plugin provides a cross-platform (iOS, Android, Web).'
s.description = <<-DESC
Flutter Plugin for create deep link using Brach SDK (https://branch.io). This plugin provides a cross-platform (iOS, Android, Web).
Expand All @@ -15,7 +15,7 @@ Flutter Plugin for create deep link using Brach SDK (https://branch.io). This pl
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.dependency 'Flutter'
s.dependency 'BranchSDK', '~> 2.2.0'
s.dependency 'BranchSDK', '~> 2.2.1'
s.platform = :ios, '11.0'

# Flutter.framework does not contain a i386 slice.
Expand Down
30 changes: 19 additions & 11 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ packages:
dependency: transitive
description:
name: collection
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
sha256: f092b211a4319e98e5ff58223576de6c2803db36221657b46c82574721240687
url: "https://pub.dev"
source: hosted
version: "1.17.1"
version: "1.17.2"
fake_async:
dependency: transitive
description:
Expand Down Expand Up @@ -92,18 +92,18 @@ packages:
dependency: transitive
description:
name: matcher
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e"
url: "https://pub.dev"
source: hosted
version: "0.12.15"
version: "0.12.16"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41"
url: "https://pub.dev"
source: hosted
version: "0.2.0"
version: "0.5.0"
meta:
dependency: transitive
description:
Expand Down Expand Up @@ -137,10 +137,10 @@ packages:
dependency: transitive
description:
name: source_span
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
url: "https://pub.dev"
source: hosted
version: "1.9.1"
version: "1.10.0"
stack_trace:
dependency: transitive
description:
Expand Down Expand Up @@ -177,10 +177,10 @@ packages:
dependency: transitive
description:
name: test_api
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
sha256: "75760ffd7786fffdfb9597c35c5b27eaeec82be8edfb6d71d32651128ed7aab8"
url: "https://pub.dev"
source: hosted
version: "0.5.1"
version: "0.6.0"
vector_math:
dependency: transitive
description:
Expand All @@ -189,6 +189,14 @@ packages:
url: "https://pub.dev"
source: hosted
version: "2.1.4"
web:
dependency: transitive
description:
name: web
sha256: dc8ccd225a2005c1be616fe02951e2e342092edf968cf0844220383757ef8f10
url: "https://pub.dev"
source: hosted
version: "0.1.4-beta"
sdks:
dart: ">=3.0.0-0 <4.0.0"
dart: ">=3.1.0-185.0.dev <4.0.0"
flutter: ">=2.5.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_branch_sdk
description: Flutter Plugin for create deep link using Brach SDK (https://branch.io). This plugin provides a cross-platform (iOS, Android, Web).
version: 6.7.1
version: 6.8.0
homepage: https://github.com/RodrigoSMarques/flutter_branch_sdk

environment:
Expand Down

1 comment on commit b6a2627

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.