Skip to content

Commit

Permalink
Merge pull request #164 from RodrigoSMarques/dev
Browse files Browse the repository at this point in the history
Release 6.0.0
  • Loading branch information
RodrigoSMarques authored Jul 5, 2022
2 parents ee774de + 150538a commit 71cd1d5
Show file tree
Hide file tree
Showing 103 changed files with 6,929 additions and 6,806 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Plugin code analysis

on:
push:
branches:
- "master"
paths-ignore:
- "**/README.md"
- "docs/**"
pull_request:
branches:
- "master"
- "dev"

jobs:
check-lint-flutter:
name: Lint (flutter)
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
cache: true
- name: Lint
run: flutter format --output=none --set-exit-if-changed lib/
check-code-analysis-flutter:
name: Code analysis (flutter)
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup flutter
uses: subosito/flutter-action@v2
with:
cache: true
- name: Install dependencies
run: flutter pub get
- name: Analyze code
run: flutter analyze --no-fatal-infos
41 changes: 41 additions & 0 deletions .github/workflows/deploy-apk.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Create sample app APK

on:
# pull_request:
# branches:
# - "master"
# paths-ignore:
# - "**/README.md"
# - "**/CHANGELOG.md"
# - "docs/**"
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
build:
name: Build APK
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Make executeable build-apk.sh
run: chmod +x tool/build-apk.sh
- name: Install dependencies & Build apk
run: tool/build-apk.sh
- uses: actions/upload-artifact@v1
with:
name: release-apk
path: ./example/build/app/outputs/apk/release/app-release.apk
47 changes: 47 additions & 0 deletions .github/workflows/deploy-web.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Deploying the sample app to the web

on:
# pull_request:
# branches:
# - "master"
# paths-ignore:
# - "**/README.md"
# - "**/CHANGELOG.md"
# - "docs/**"
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
build:
name: Build Web
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true
- name: Make executeable build-web.sh
run: chmod +x tool/build-web.sh
- name: Install dependencies & Build web
run: tool/build-web.sh
- name: Deploy to Netlify
if: ${{ github.repository == 'RodrigoSMarques/flutter_branch_sdk' }}
uses: nwtgck/[email protected]
with:
publish-dir: './example/build/web'
production-branch: master
production-deploy: true
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1
24 changes: 24 additions & 0 deletions .github/workflows/pr-master-bugfix.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: PR Branch MASTER to BUGFIX

on:
push:
branches:
- "master"

jobs:
pull-request:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: pull-request-master-to-bugfix
if: ${{ github.repository == 'RodrigoSMarques/flutter_branch_sdk' }}
uses: repo-sync/[email protected]
with:
source_branch: "master"
destination_branch: "bugfix"
pr_title: "PR Branch MASTER into BUGFIX"
pr_body: "👑 *An automated PR*"
pr_label: "auto-pr"
pr_draft: false
pr_allow_empty: false
github_token: ${{ secrets.GITHUB_TOKEN }}
35 changes: 35 additions & 0 deletions .github/workflows/publish-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish plugin - pub.dev

on:
push:
# branches:
# - "dev"
tags:
- 'v*'
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
cache: true

- name: Publish flutter package
uses: k-paxian/[email protected]
# uses: RodrigoSMarques/dart-package-publisher@master
with:
accessToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_ACCESS_TOKEN }}
refreshToken: ${{ secrets.PUBDEV_GOOGLE_ACCOUNT_REFRESH_TOKEN }}
flutter: true
format: true
skipTests: true
dryRunOnly: true
# docs: true

22 changes: 22 additions & 0 deletions .github/workflows/send-dispatch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Send Dispatch to Branch fork

on:
push:
# branches:
# - "master"
# - "dev"
tags:
- 'v*'
workflow_dispatch:

jobs:
send-dispatch:
runs-on: ubuntu-latest
steps:
- name: Repository Dispatch
if: ${{ github.repository == 'RodrigoSMarques/flutter_branch_sdk' }}
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.TOKEN_BRANCH_UPSTREAM}}
repository: BranchMetrics/flutter_branch_sdk
event-type: new-release
44 changes: 44 additions & 0 deletions .github/workflows/sync-upstream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: 'Upstream Sync'

on:
repository_dispatch:
types: [new-release]
workflow_dispatch: # click the button on Github repo!

jobs:
update_repository_branch:
runs-on: ubuntu-latest
steps:
- name: Repository master
uses: TobKed/github-forks-sync-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
upstream_repository: RodrigoSMarques/flutter_branch_sdk
#target_repository: BranchMetrics/flutter_branch_sdk
target_repository: r-s-marques/flutter_branch_sdk
upstream_branch: master
target_branch: master
force: true
tags: true
- name: Repository dev
uses: TobKed/github-forks-sync-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
upstream_repository: RodrigoSMarques/flutter_branch_sdk
#target_repository: BranchMetrics/flutter_branch_sdk
target_repository: r-s-marques/flutter_branch_sdk
upstream_branch: dev
target_branch: dev
force: true
tags: true
- name: Repository bugfix
uses: TobKed/github-forks-sync-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
upstream_repository: RodrigoSMarques/flutter_branch_sdk
#target_repository: BranchMetrics/flutter_branch_sdk
target_repository: r-s-marques/flutter_branch_sdk
upstream_branch: bugfix
target_branch: bugfix
force: true
tags: true
28 changes: 25 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
## 6.0.0
### BREAKING CHANGE
* Minimum required Dart SDK version to 2.17 (Flutter 3.0)
* Removed deprecated methods:
* `initWeb`
* `loadRewards`
* `redeemRewards`
* `getCreditHistory`

### Enhancement
* New Methods:
- `getQRCodeAsData`
- `getQRCodeAsImage`
- `shareWithLPLinkMetadata`
* General improvements in code
* Fix analyzer code style warnings
* Updated Native `Android` and `iOS` SDKs:
* Android Native SDK Update 5.2.+ - [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases)
* iOS Native SDK Update 1.43.+ - [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases)


## 5.1.1
* Updated Native `Android` SDK:
* Android Native SDK Update 5.1.5 - [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases)
Expand All @@ -13,7 +34,7 @@
* iOS Native SDK Update 1.42.0 - [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases)

## 5.0.0
**BREAKING CHANGE**:
###BREAKING CHANGE:

* `FlutterBranchSdk.initWeb` deprecated.
* Branch for Flutter Web initialized in `index.html`, see `Web Integration` section
Expand Down Expand Up @@ -87,7 +108,7 @@
* Added new method `getAdvertisingIdentifier`: Return Device Advertising Identifier

## 3.0.0
* Initial support to Flutter Web . Thanks @mathatan
* Initial support to Flutter Web. Thanks @mathatan

## 2.0.0
* Stable null safety release.
Expand Down Expand Up @@ -123,7 +144,8 @@ Updated Native ```Android``` and ```iOS``` SDKs
* Android Native SDK Update 5.0.3 - [Android Version History](https://github.com/BranchMetrics/android-branch-deep-linking-attribution/releases)
* iOS Native SDK Update 0.35.0 - [iOS Version History](https://github.com/BranchMetrics/ios-branch-deep-linking-attribution/releases)

__BREAKING CHANGES__
###BREAKING CHANGES

Add KEY ```branch_check_apple_ads``` in INFO.PLIST to enable checking for Apple Search Ads before Branch initialization

## 1.0.0
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
Loading

1 comment on commit 71cd1d5

@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.