Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronization of repositories with release 8.1.0 #3

Open
wants to merge 53 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
d8655b1
Merge pull request #260 from RodrigoSMarques/master
RodrigoSMarques Feb 1, 2024
5419004
Merge pull request #291 from RodrigoSMarques/master
RodrigoSMarques Feb 12, 2024
2a094ea
Merge pull request #299 from RodrigoSMarques/master
RodrigoSMarques Apr 7, 2024
48421ed
Merge pull request #322 from RodrigoSMarques/master
RodrigoSMarques May 21, 2024
2efc8be
Merge pull request #331 from RodrigoSMarques/master
RodrigoSMarques May 28, 2024
125c467
Merge pull request #344 from RodrigoSMarques/master
RodrigoSMarques Jul 23, 2024
0c40660
Update bug_report.md
RodrigoSMarques Jul 30, 2024
c9ff6d8
Release 8.1.0
RodrigoSMarques Aug 3, 2024
6b1cf42
Merge pull request #358 from RodrigoSMarques/dev
RodrigoSMarques Aug 3, 2024
6ab26a3
Update deploy-apk.yaml
RodrigoSMarques Aug 3, 2024
cd3cb20
migrate to dart:js_interop
hnvn Aug 12, 2024
e722101
update sdk constraints to support js_interop
hnvn Aug 12, 2024
118f6db
udpate index.html to new template
hnvn Aug 12, 2024
1ca82bf
correct data type
hnvn Aug 15, 2024
9f592b1
Merge pull request #365 from RodrigoSMarques/master
RodrigoSMarques Aug 15, 2024
6180da2
Merge pull request #356 from RodrigoSMarques/master
RodrigoSMarques Aug 15, 2024
9b7f2d0
Merge pull request #364 from hnvn/master
RodrigoSMarques Aug 22, 2024
38b894c
Release 8.2.0
RodrigoSMarques Aug 27, 2024
884c997
Release 8.1.1
RodrigoSMarques Aug 27, 2024
ae6d884
Update CHANGELOG.md
RodrigoSMarques Aug 27, 2024
0c80115
Merge pull request #371 from RodrigoSMarques/bugfix
RodrigoSMarques Aug 28, 2024
c64193d
Merge branch 'dev' into bugfix
RodrigoSMarques Aug 28, 2024
249c8df
Update build-web.sh
RodrigoSMarques Aug 28, 2024
dcaf81b
Merge pull request #369 from RodrigoSMarques/bugfix
RodrigoSMarques Aug 28, 2024
1cf1f4a
Merge branch 'master' into master
hnvn Aug 28, 2024
f07ee93
correct qrcode data type
hnvn Aug 28, 2024
39e45a5
Merge branch 'dev' into master
hnvn Aug 28, 2024
52d09fc
correct code formating
hnvn Aug 29, 2024
7fbb000
Merge branch 'master' of https://github.com/hnvn/flutter_branch_sdk
hnvn Aug 29, 2024
af14c9d
Merge pull request #373 from hnvn/master
RodrigoSMarques Aug 29, 2024
deec589
Add Flutter version to pubscpec.yaml
RodrigoSMarques Aug 29, 2024
3b80703
Merge pull request #375 from RodrigoSMarques/dev
RodrigoSMarques Aug 30, 2024
bac5d34
Gradle version update / Fix when API error is not returned
RodrigoSMarques Dec 9, 2024
05bec02
Release 8.3.0
RodrigoSMarques Dec 14, 2024
c6bb689
Fix Lint Alerts
RodrigoSMarques Dec 14, 2024
11872a1
Fix Lint Alerts
RodrigoSMarques Dec 14, 2024
b850986
Adjustment in the script for web build
RodrigoSMarques Dec 14, 2024
d6670d4
Update README.md
RodrigoSMarques Dec 14, 2024
c297df3
Update README.md
RodrigoSMarques Dec 14, 2024
3e97aa4
deprecated `initSession` method removed
RodrigoSMarques Dec 15, 2024
ebb15f3
Review Example App
RodrigoSMarques Dec 15, 2024
7ff50e6
Update example.png
RodrigoSMarques Dec 15, 2024
dcba07e
Add Support do Swfit Package Manager
RodrigoSMarques Dec 15, 2024
f8c49ae
Add Support do SPM
RodrigoSMarques Dec 16, 2024
fa30398
Add Support do SPM
RodrigoSMarques Dec 16, 2024
7d305b7
Add Support do SPM
RodrigoSMarques Dec 17, 2024
1906fe6
Reviewing the sample application / Updating dependencies
RodrigoSMarques Dec 17, 2024
ad3fc47
Merge branch 'migrate_spm' into dev
RodrigoSMarques Dec 17, 2024
4edc89d
build.gradle update
RodrigoSMarques Dec 20, 2024
0b3c25a
Update CHANGELOG.md
RodrigoSMarques Dec 20, 2024
ec0fe56
Merge pull request #400 from RodrigoSMarques/dev
RodrigoSMarques Dec 20, 2024
289c3a5
Update CHANGELOG.md
RodrigoSMarques Dec 20, 2024
e45821b
Merge pull request #402 from RodrigoSMarques/dev
RodrigoSMarques Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ assignees: ''

---

Keep the template and provide all requested information:

**Describe the bug**
A clear and concise description of what the bug is.

Expand All @@ -23,15 +25,15 @@ A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.

**Smartphone (Please complete the following information. remove session if not platform):**
**Mobile (Please complete the following information. remove session if not Mobile):**
- Flutter: version: [e.g. 2.2.3]
- Package version: [e.g. 3.3.0]
- flutter_branch_sdk version: [e.g. 3.3.0]
- OS: [e.g. iOS16.0, Android 12]
- Device: [e.g. iPhone14, Google Pixel]

**Web (please complete the following information. remove session if not platform):**
**Web (please complete the following information. remove session if not is Web:**
- Flutter: version: [e.g. 2.2.3]
- Package version: [e.g. 3.3.0]
- flutter_branch_sdk version: [e.g. 3.3.0]
- OS: [e.g. Windows, Mac, Linux]
- Browser [e.g. chrome, safari, edge]
- Version [e.g. 22]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-apk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: chmod +x tool/build-apk.sh
- name: Install dependencies & Build apk
run: tool/build-apk.sh
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: release-apk
path: ./example/build/app/outputs/apk/release/app-release.apk
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
/ios/flutter_branch_sdk/.build
36 changes: 35 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
## 8.3.0
### ⚠️ BREAKING CHANGE
* Minimum required Dart SDK version 3.3.0 (Flutter 3.19.0 - 15/02/2024)

### 🎉 Features
* New Methods:
- `setConsumerProtectionAttributionLevel` - Sets the consumer protection attribution level. Read Branch documentation for details:
* [Introducing Consumer Protection Preference Levels](https://help.branch.io/using-branch/changelog/introducing-consumer-protection-preference-levels)
* [Consumer Protection Preferences](https://help.branch.io/developers-hub/docs/consumer-protection-preferences)

#### Deprecated / Removed
* `FlutterBranchSdk.disableTracking()`. Use `FlutterBranchSdk.setConsumerProtectionAttributionLevel()`.
* Removed `initSession` method.

### Native SDK Updates
### 🔧 Native SDK Updates
* Updated included iOS SDK to 3.7.0 - [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases)
* Updated included Branch Android SDK to 5.15.0 - [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases)

## 8.2.0
### ⚠️ BREAKING CHANGE
* Minimum required Dart SDK version 3.3.0 (Flutter 3.19.0 - 15/02/2024)

### 🎉 Features
* Issue #361: Migrate to dart:js_interop to support Webassamebly. Thanks @hnvn

## 8.1.1
### 🐛 Bug Fixes
* Fix issue #368: "-118, Warning. Session initialization already happened" triggered in the listSession callback

## 8.1.0
### 🔧 Native SDK Updates
* Updated included iOS SDK to 3.6.0 - [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases)
* Updated included Branch Android SDK to 5.12.2 - [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases)

## 8.0.4
### ⚠️ BREAKING CHANGE
This is a major release which contains breaking API changes.
Expand Down Expand Up @@ -62,7 +97,6 @@ This is a major release which contains breaking API changes.
### 🔧 Native SDK Updates

* Updated included iOS SDK to 3.4.3 - [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases)

* Updated included Branch Android SDK to 5.12.0 - [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases)


Expand Down
73 changes: 65 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Branch.io helps mobile apps grow with deep links that power referral systems, sh

Supports Android, iOS and Web.

* Android - Branch SDK Version >= 5.12.0 [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases)
* iOS - Branch SDK Version >= 3.4.3 [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases)
* Android - Branch SDK Version >= 5.15.0 [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases)
* iOS - Branch SDK Version >= 3.7.0 [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases)

Implemented functions in plugin:

Expand Down Expand Up @@ -159,7 +159,16 @@ await FlutterBranchSdk.init(enableLogging: false, disableTracking: false);
The optional parameters are:

- *enableLogging* : Sets `true` turn on debug logging. Default value: false
- *disableTracking*: Sets `true` to disable tracking in Branch SDK for GDPR compliant on start. Default value: false
- *disableTracking*: Sets `true` to disable tracking in Branch SDK for GDPR compliant on start. Default value: false
- *branchAttributionLevel* : The level of attribution data to collect.
- `BranchAttributionLevel.FULL`: Full Attribution (Default)
- `BranchAttributionLevel.REDUCE`: Reduced Attribution (Non-Ads + Privacy Frameworks)
- `BranchAttributionLevel.MINIMAL`: Minimal Attribution - Analytics Only
- `BranchAttributionLevel.NONE`: No Attribution - No Analytics (GDPR, CCPA)

Read Branch documentation for details: [Introducing Consumer Protection Preference Levels](https://help.branch.io/using-branch/changelog/introducing-consumer-protection-preference-levels) and [Consumer Protection Preferences](https://help.branch.io/developers-hub/docs/consumer-protection-preferences)

*Note: The `disableTracking` parameter is deprecated and should no longer be used. Please use `branchAttributionLevel` to control tracking behavior.*

Initialization must be called from `main` or at any time, for example after getting consent for GPDR.

Expand Down Expand Up @@ -531,7 +540,7 @@ FlutterBranchSdk.logout();
bool isUserIdentified = await FlutterBranchSdk.isUserIdentified();
```

### Enable or Disable User Tracking
### Enable or Disable User Tracking (Deprecated. Read Consumer Preference Levels)
If you need to comply with a user's request to not be tracked for GDPR purposes, or otherwise determine that a user should not be tracked, utilize this field to prevent Branch from sending network requests. This setting can also be enabled across all users for a particular link, or across your Branch links.

```dart
Expand All @@ -544,6 +553,35 @@ You can choose to call this throughout the lifecycle of the app. Once called, ne

More information [here](https://help.branch.io/developers-hub/docs/honoring-opt-out-of-processing-requests)

### Consumer Preference Levels
Sets the consumer protection attribution level:

* `BranchAttributionLevel.FULL`: Full Attribution (Default)

```dart
FlutterBranchSdk.setConsumerProtectionAttributionLevel(BranchAttributionLevel.FULL);
```
* `BranchAttributionLevel.REDUCE`: Reduced Attribution (Non-Ads + Privacy Frameworks)

```dart
FlutterBranchSdk.setConsumerProtectionAttributionLevel(BranchAttributionLevel.REDUCED);
```
* `BranchAttributionLevel.MINIMAL`: Minimal Attribution - Analytics

```dart
FlutterBranchSdk.setConsumerProtectionAttributionLevel(BranchAttributionLevel.MINIMAL);
```
* `BranchAttributionLevel.NONE`: No Attribution - No Analytics (GDPR, CCPA)

```dart
FlutterBranchSdk.setConsumerProtectionAttributionLevel(BranchAttributionLevel.NONE);
```
Read Branch documentation for details:

- [Introducing Consumer Protection Preference Levels](https://help.branch.io/using-branch/changelog/introducing-consumer-protection-preference-levels)
- [Consumer Protection Preferences](https://help.branch.io/developers-hub/docs/consumer-protection-preferences)


### Set Request Meta data
Add key value pairs to all requests

Expand Down Expand Up @@ -634,6 +672,7 @@ adUserDataUsageConsent | Boolean | Whether end user has granted or denied consen

When parameters are successfully set using `setDMAParamsForEEA`, they will be sent along with every future request to the following Branch endpoint.


# Configuring the project to use Branch Test Key
## Android

Expand Down Expand Up @@ -694,11 +733,29 @@ Practices to avoid:
3. Don't wait to initialize the object until you conveniently need a link.
4. Don't create many objects at once and register views in a for loop.

# Deep links with Short Links
More information [here](https://help.branch.io/using-branch/docs/creating-a-deep-link#short-links)
# Create Deep Links
* Deep links with [Short Links](https://help.branch.io/using-branch/docs/creating-a-deep-link#short-links)
* Deep links with [Long links](https://help.branch.io/using-branch/docs/creating-a-deep-link#long-links)

# Data Privacy
* [Introducing Consumer Protection Preference Levels] (https://help.branch.io/using-branch/changelog/introducing-consumer-protection-preference-levels)
* [Consumer Protection Preferences](https://help.branch.io/developers-hub/docs/consumer-protection-preferences)
* [Answering the App Store Connect Privacy Questions](https://help.branch.io/using-branch/docs/answering-the-app-store-connect-privacy-questions)
* [Answering the Google Play Store Privacy Questions](https://help.branch.io/using-branch/docs/answering-the-google-play-store-privacy-questions)



# SDK FAQs
* [Android SDK FAQs](https://help.branch.io/faq/docs/android-sdk)
* [iOS SDK FAQs](https://help.branch.io/faq/docs/ios-sdk)

# Testing
* [Android Testing](https://help.branch.io/developers-hub/docs/android-testing)
* [iOS Testing](https://help.branch.io/developers-hub/docs/ios-testing)

# Deep links with Long links
More information [here](https://help.branch.io/using-branch/docs/creating-a-deep-link#long-links)
# Troubleshooting
* [Android Troubleshooting](https://help.branch.io/developers-hub/docs/android-troubleshooting)
* [iOS Troubleshooting](https://help.branch.io/developers-hub/docs/ios-troubleshooting)

# Branch Documentation
Read the iOS or Android documentation for all Branch object parameters:
Expand Down
4 changes: 3 additions & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ include: package:flutter_lints/flutter.yaml
# https://dart.dev/guides/language/analysis-options
linter:
rules:
constant_identifier_names: false
constant_identifier_names: false
# public_member_api_docs: true
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
15 changes: 8 additions & 7 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath 'com.android.tools.build:gradle:8.1.4'
}
}

Expand All @@ -38,22 +38,23 @@ android {
buildConfig = true
}

compileSdk 35

defaultConfig {
minSdkVersion 21
compileSdk 34
buildConfigField("String", "FBRANCH_VERSION", "\"${getPackageVersion()}\"")
}

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
}

dependencies {
implementation 'io.branch.sdk.android:library:5.12.+'
implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1'
implementation 'androidx.lifecycle:lifecycle-runtime:2.7.0'
implementation 'io.branch.sdk.android:library:5.15.+'
implementation 'com.google.android.gms:play-services-ads-identifier:18.2.0'
implementation 'androidx.lifecycle:lifecycle-runtime:2.8.7'
implementation 'androidx.browser:browser:1.8.0'
implementation "store.galaxy.samsung.installreferrer:samsung_galaxystore_install_referrer:4.0.0"
}
1 change: 0 additions & 1 deletion android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
rootProject.name = 'flutter_branch_sdk'
android.defaults.buildfeatures.buildconfig=true
Loading
Loading