Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
a8ac997
Update README.md
RodrigoSMarques Jul 23, 2025
2ae4119
Update README.md
RodrigoSMarques Jul 23, 2025
b4d35f7
Update README.md
RodrigoSMarques Jul 23, 2025
562d320
Merge pull request #447 from RodrigoSMarques/master
RodrigoSMarques Jul 24, 2025
df3db00
Code Review / Removal of deprecated methods
RodrigoSMarques Jul 25, 2025
d790c61
Corrigir alertas de Lint
RodrigoSMarques Jul 25, 2025
ae534b8
Merge branch 'dev' of https://github.com/RodrigoSMarques/flutter_bran…
RodrigoSMarques Jul 25, 2025
51b21bc
Merge branch 'dev_master' into dev
RodrigoSMarques Sep 2, 2025
ba1405d
Create branch.json
RodrigoSMarques Sep 2, 2025
1d2d558
Update Android Gradle Plugin (AGP) to 16KB Page Size Compatibility
RodrigoSMarques Sep 2, 2025
7854851
Update CHANGELOG.md
RodrigoSMarques Sep 2, 2025
94d3f41
Update CHANGELOG.md
RodrigoSMarques Sep 2, 2025
e2afd17
Update project.pbxproj
RodrigoSMarques Sep 2, 2025
380b864
Merge branch 'dev' into dev_master
RodrigoSMarques Sep 2, 2025
48b9e35
Merge pull request #464 from RodrigoSMarques/dev_master
RodrigoSMarques Sep 2, 2025
3e21070
new Method setApiUrl
RodrigoSMarques Sep 10, 2025
7bbfcb8
Merge branch 'dev' into master_to_dev
RodrigoSMarques Sep 13, 2025
6b08e09
PR MASTER TO DEV
RodrigoSMarques Sep 13, 2025
31896cc
Fix Linter Warnings
RodrigoSMarques Sep 13, 2025
d3ed226
Update FlutterBranchSdkPlugin.swift
RodrigoSMarques Sep 13, 2025
c88b7a7
Code review to remove build warnings
RodrigoSMarques Sep 13, 2025
78540a0
Update CHANGELOG.md
RodrigoSMarques Sep 13, 2025
f194894
iOS Code Review
RodrigoSMarques Sep 14, 2025
6239a02
Update CHANGELOG.md
RodrigoSMarques Sep 14, 2025
cc8176f
Fix _colorToHex
RodrigoSMarques Sep 14, 2025
734a373
Update FlutterBranchSdkPlugin.java
RodrigoSMarques Sep 14, 2025
f80f7fe
Update build.gradle
RodrigoSMarques Sep 14, 2025
aaeb4de
Update FlutterBranchSdkPlugin.java
RodrigoSMarques Sep 15, 2025
f76f215
Update branch-config.json
RodrigoSMarques Sep 16, 2025
14e82e8
Release 8.9.0
RodrigoSMarques Sep 16, 2025
7a3d778
Update CHANGELOG.md
RodrigoSMarques Sep 16, 2025
455a712
Reviewed branch-config.json example file to ensure correct configurat…
RodrigoSMarques Sep 23, 2025
389127e
* Updated `README.MD` with correct configuration for `branch-config.j…
RodrigoSMarques Sep 23, 2025
98d961c
Release 8.9.0+1
RodrigoSMarques Sep 23, 2025
beba2c5
Code change to allow custom URL configuration per Operating System
RodrigoSMarques Sep 28, 2025
d6f3122
Create pr-summary.yml
RodrigoSMarques Oct 4, 2025
22c76c7
Release 8.10.0
RodrigoSMarques Oct 5, 2025
d0ccd42
Update CHANGELOG.md
RodrigoSMarques Oct 5, 2025
8831e81
Release 8.10.0
RodrigoSMarques Oct 5, 2025
7c2afb1
Delete .github/workflows/pr-summary.yml
RodrigoSMarques Oct 5, 2025
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
28 changes: 27 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
## 8.10.0
### 🎉 Features
**Introduced platform-specific API URL configuration.** This allows developers to define different API endpoints for Android and iOS in `branch-config.json`.
- Added key `apiUrlAndroid` in `branch-config.json` to configure the API URL for the Android platform.
- Added key `apiUrlIOS` in `branch-config.json` to configure the API URL for the iOS platform.

### 🗑️ Removals
- ⚠️ The generic `apiUrl` key has been removed from `branch-config.json`. Please update your configuration to use the new platform-specific keys (`apiUrlAndroid` and `apiUrlIOS`).

## 8.9.0+1
### 🎉 Fixes
* Updated `README.MD` with correct configuration for `branch-config.json`.

## 8.9.0
### 🎉 Features & Fixes
* **Android:** Resolved build warnings (`unchecked or unsafe operations, deprecated api`) for a cleaner build process.
* **Android:** Updated plugin configuration to ensure compatibility with Android Gradle Plugin (AGP) 8.6.x (16KB Page Size).
* **Android:** ⚠️ Updated the `showShareSheet` function, which now requires a minimum of API level 22 (Android 5.1) to work correctly.
* **iOS:** Improved plugin stability by adding consistency checks to safely handle all incoming data from Flutter and prevent crashes.
* **iOS:** Modernized native code to ensure compatibility with recent APIs.
* Fixed Flutter linter warnings to improve code quality and maintainability.

### 🗑️ Removals
* The deprecated method `FlutterBranchSdk.disableTracking()` has been removed.

## 8.8.0
### 🎉 Features

* Configuration through `branch-config.json` file.
- Some settings can be configured by adding an `assets/branch-config.json` file to your project.
- This eliminates the need for manual modifications to native files (`AndroidManifest.xml` and `Info.plist`).
Expand All @@ -9,7 +35,7 @@

## 8.7.1
### 🐛 Bug Fixes
* Fix issue #461 : iOS Build Failure using Cocoapods
* Fix issue #461 : iOS Build Failure using CocoaPods

## 8.7.0
### 🔧 Native SDK Updates
Expand Down
12 changes: 5 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,19 +224,20 @@ Copy and paste the following structure into your `assets/branch-config.json` fil

```json
{
"apiUrl": "https://api.myapi.com/"
"apiUrlAndroid": "https://api.myapp.com",
"apiUrlIOS": "https://api.myapp.com",
"branchKey": "key_live_test_xxxx_yyyy",
"liveKey": "key_live_xxxx",
"testKey": "key_test_yyyy",
"enableLogging": true,
"useTestInstance": true,
"useTestInstance": true
}
```

#### Key Descriptions:

* **`apiUrl`**: (Optional) Sets a custom base URL for all calls to the Branch API.
Requires HTTPS.
* **`apiUrlAndroid`**: (Optional) Sets a custom base URL for all calls to the Branch API for Android apps. Requires HTTPS.
* **`apiUrlIOS`**: (Optional) Sets a custom base URL for all calls to the Branch API for iOS apps. Requires HTTPS.
* **`branchKey`**: (Optional) The Branch key that the SDK will use for initialization. It's recommended to set this to your `liveKey` or `testKey` depending on your current build environment.
* **`liveKey`**: (Optional) Your Branch live key from the Branch Dashboard.
* **`testKey`**: (Optional) Your Branch test key from the Branch Dashboard.
Expand Down Expand Up @@ -763,11 +764,8 @@ When parameters are successfully set using `setDMAParamsForEEA`, they will be se

# Configuring the project to use Branch Test Key


Use the configuration through the `branch-config.json` file, setting the `useTestInstance` value to `true`.

[Instructions here](#optional-configuration-via-branch-configjson).

**Note*:* Remember to set the value to `false` before releasing to production.

# Getting Started
Expand Down
22 changes: 20 additions & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,23 @@ formatter:
linter:
rules:
constant_identifier_names: false
# public_member_api_docs: true
prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
public_member_api_docs: false
prefer_single_quotes: true
always_declare_return_types : true
prefer_const_constructors : true
prefer_final_locals : true
prefer_final_in_for_each: true
avoid_print: true
prefer_const_declarations : true
avoid_unnecessary_containers : true
unnecessary_const : true
no_literal_bool_comparisons : true
unnecessary_getters_setters : true
unnecessary_breaks : true
unnecessary_raw_strings : true
unnecessary_underscores : true
use_named_constants : true
prefer_void_to_null : true
avoid_void_async : true


4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ buildscript {
}

dependencies {
classpath("com.android.tools.build:gradle:8.3.0")
classpath("com.android.tools.build:gradle:8.6.0")
}
}

Expand Down Expand Up @@ -51,7 +51,7 @@ android {
dependencies {
implementation 'io.branch.sdk.android:library:5.20.+'
implementation 'com.google.android.gms:play-services-ads-identifier:18.2.0'
implementation 'androidx.lifecycle:lifecycle-runtime:2.8.7'
implementation 'androidx.lifecycle:lifecycle-runtime:2.9.2'
implementation 'androidx.browser:browser:1.8.0'
implementation "store.galaxy.samsung.installreferrer:samsung_galaxystore_install_referrer:4.0.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import io.flutter.embedding.engine.plugins.FlutterPlugin;

public class BranchJsonConfig {
private static final String TAG = "BranchJsonConfig";
private static final String DEBUG_NAME = "FlutterBranchSDK";

public final String apiUrl;
Expand All @@ -20,9 +19,13 @@ public class BranchJsonConfig {
public final Boolean enableLogging;
public final Boolean useTestInstance;

public final String apiUrlAndroid;
public final String apiUrlIOS;

private BranchJsonConfig(JSONObject jsonObject) {
this.apiUrl = jsonObject.optString("apiUrl", "");
this.apiUrlAndroid = jsonObject.optString("apiUrlAndroid", "");
this.apiUrlIOS = jsonObject.optString("apiUrlIOS", "");
this.branchKey = jsonObject.optString("branchKey", "");
this.liveKey = jsonObject.optString("liveKey", "");
this.testKey = jsonObject.optString("testKey", "");
Expand Down
Loading