-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8a1133d
Showing
1,155 changed files
with
107,575 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Reproducible code** | ||
If applicable, add a minimum reproducible code snippet. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
|
||
**Smartphone (please complete the following information):** | ||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: ci | ||
description: Executes Dart specific CI steps. | ||
|
||
inputs: | ||
type: | ||
description: The type of CI to run. | ||
required: true | ||
relay-endpoint: | ||
description: 'The endpoint of the relay e.g. relay.walletconnect.com' | ||
required: false | ||
default: 'wss://relay.walletconnect.com' | ||
project-id: | ||
description: 'Reown project id' | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# Setup Dependencies | ||
- uses: ./.github/actions/dependencies | ||
|
||
# Run Core Unit and Integration Tests | ||
- name: Run Core tests | ||
if: inputs.type == 'integration-tests' | ||
shell: bash | ||
working-directory: packages/reown_core | ||
env: | ||
RELAY_ENDPOINT: ${{ inputs.relay-endpoint }} | ||
PROJECT_ID: ${{ inputs.project-id }} | ||
run: flutter test --dart-define=RELAY_ENDPOINT=$RELAY_ENDPOINT --dart-define=PROJECT_ID=$PROJECT_ID | ||
|
||
# Run Sign Unit and Integration Tests | ||
- name: Run Sign tests | ||
if: inputs.type == 'integration-tests' | ||
shell: bash | ||
working-directory: packages/reown_sign | ||
env: | ||
RELAY_ENDPOINT: ${{ inputs.relay-endpoint }} | ||
PROJECT_ID: ${{ inputs.project-id }} | ||
run: flutter test --dart-define=RELAY_ENDPOINT=$RELAY_ENDPOINT --dart-define=PROJECT_ID=$PROJECT_ID | ||
|
||
# Run AppKit Unit and Integration Tests | ||
- name: Run AppKit tests | ||
if: inputs.type == 'integration-tests' | ||
shell: bash | ||
working-directory: packages/reown_appkit | ||
env: | ||
RELAY_ENDPOINT: ${{ inputs.relay-endpoint }} | ||
PROJECT_ID: ${{ inputs.project-id }} | ||
run: flutter test --dart-define=RELAY_ENDPOINT=$RELAY_ENDPOINT --dart-define=PROJECT_ID=$PROJECT_ID | ||
|
||
# Run WalletKit Unit and Integration Tests | ||
- name: Run AppKit tests | ||
if: inputs.type == 'integration-tests' | ||
shell: bash | ||
working-directory: packages/reown_walletkit | ||
env: | ||
RELAY_ENDPOINT: ${{ inputs.relay-endpoint }} | ||
PROJECT_ID: ${{ inputs.project-id }} | ||
run: flutter test --dart-define=RELAY_ENDPOINT=$RELAY_ENDPOINT --dart-define=PROJECT_ID=$PROJECT_ID | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: ci | ||
description: Installs dependencies | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
# Install Flutter SDK | ||
- name: Install Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.19.5' | ||
|
||
# Get package dependencies and generate files | ||
- name: Get package dependencies and generate files | ||
shell: bash | ||
run: | | ||
flutter pub get | ||
flutter pub run build_runner build --delete-conflicting-outputs | ||
# Get example app dependencies and generate files | ||
- name: Get example app dependencies and generate files | ||
shell: bash | ||
working-directory: example/wallet | ||
run: | | ||
flutter pub get | ||
flutter pub run build_runner build --delete-conflicting-outputs | ||
# Get example app dependencies and generate files | ||
- name: Get example app dependencies and generate files | ||
shell: bash | ||
working-directory: example/dapp | ||
run: | | ||
flutter pub get | ||
flutter pub run build_runner build --delete-conflicting-outputs | ||
- name: Verify formatting and analyze project source | ||
shell: bash | ||
run: dart format --output=none --set-exit-if-changed . | ||
|
||
# - name: Analyze project source | ||
# shell: bash | ||
# run: flutter analyze | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Description | ||
|
||
<!-- | ||
Please include: | ||
* summary of the changes and the related issue | ||
* relevant motivation and context | ||
--> | ||
|
||
Resolves # (issue) | ||
|
||
## How Has This Been Tested? | ||
|
||
<!-- | ||
Please: | ||
* describe the tests that you ran to verify your changes. | ||
* provide instructions so we can reproduce. | ||
--> | ||
|
||
<!-- If valid for smoke test on feature add screenshots --> | ||
|
||
## Due Dilligence | ||
|
||
* [ ] Breaking change | ||
* [ ] Requires a documentation update |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# This workflow uses actions that are not certified by GitHub. | ||
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: ci | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
workflow_dispatch: | ||
inputs: | ||
relay-endpoint: | ||
description: 'The endpoint of the relay e.g. relay.walletconnect.com' | ||
required: false | ||
default: 'wss://relay.walletconnect.com' | ||
project-id: | ||
description: 'Reown project id' | ||
required: true | ||
|
||
|
||
concurrency: | ||
# Support push/pr as event types with different behaviors each: | ||
# 1. push: queue up builds by branch | ||
# 2. pr: only allow one run per PR | ||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref_name }} | ||
# If there is already a workflow running for the same pull request, cancel it | ||
# For non-PR triggers queue up builds | ||
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test-type: [integration-tests] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install and set Flutter version | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.19.5' | ||
|
||
- uses: ./.github/actions/ci | ||
with: | ||
type: ${{ matrix.test-type }} | ||
project-id: ${{ secrets.PROJECT_ID }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Publish to pub.dev | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+*' | ||
|
||
jobs: | ||
publish: | ||
name: Publish to pub.dev | ||
permissions: | ||
id-token: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the repo | ||
- uses: actions/checkout@v3 | ||
|
||
# Setup Dart SDK | ||
- uses: dart-lang/setup-dart@v1 | ||
|
||
# Install Flutter and Dependencies | ||
- uses: ./.github/actions/dependencies | ||
|
||
# Publish --dry-run | ||
- name: Check Publish Warnings | ||
shell: bash | ||
run: flutter pub publish --dry-run | ||
|
||
# Publish | ||
- name: Publish Package | ||
shell: bash | ||
run: flutter pub publish -f | ||
|
||
# Notify | ||
- name: Notify Channel | ||
uses: slackapi/slack-github-action@v1.24.0 | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
SLACK_WEBHOOK_TYPE: 'INCOMING_WEBHOOK' | ||
with: | ||
payload: |- | ||
{ | ||
"text":"🚀 reown_flutter\'s *${{ github.ref_name }}* SDK was just published at https://pub.dev/packages/${{ github.ref_name }}" | ||
} | ||
# Launch locally | ||
# act -j publish --container-architecture linux/amd64 -P macos-latest-xlarge=-self-hosted --secret-file .github/workflows/.env.secret -W .github/workflows/publish.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Android Dapp (production) deploy | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
build: | ||
if: (github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'master') || github.event_name == 'workflow_dispatch' | ||
runs-on: macos-latest-xlarge | ||
|
||
steps: | ||
# Checkout the repo | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
# Install Java 17 | ||
- name: Install Java 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
architecture: x86_64 | ||
cache: 'gradle' | ||
|
||
# Cache Gradle | ||
- name: Cache Gradle | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
# Install Flutter and Dependencies | ||
- uses: ./.github/actions/dependencies | ||
|
||
- name: Add Secrets file | ||
working-directory: packages/reown_appkit/example/base/android | ||
run: touch secrets.properties && echo "${{ secrets.SECRETS_FILE }}" >> secrets.properties | ||
|
||
- name: Add Keystore file | ||
working-directory: packages/reown_appkit/example/base/android | ||
run: echo "${{ secrets.KEYSTORE }}" | base64 --decode >> app/debug.keystore | ||
|
||
# Fastlane | ||
- name: Fastlane | ||
working-directory: packages/reown_appkit/example/base/android | ||
env: | ||
FLAVOR: "production" | ||
PROJECT_ID: ${{ secrets.DAPP_PROJECT_ID }} | ||
SLACK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | ||
FIREBASE_DAPP_ID: ${{ secrets.FIREBASE_DAPP_ID }} | ||
DOWNLOAD_URL: ${{ secrets.DOWNLOAD_URL_DAPP }} | ||
run: | | ||
PUBSPEC_FILE=../../../pubspec.yaml | ||
FILE_VALUE=$(echo | grep "^version: " $PUBSPEC_FILE) | ||
PARTS=(${FILE_VALUE//:/ }) | ||
FULL_VERSION=${PARTS[1]} | ||
VERSION_NUMBER=(${FULL_VERSION//-/ }) | ||
fastlane add_plugin firebase_app_distribution | ||
fastlane release_firebase project_id:$PROJECT_ID app_version:$VERSION_NUMBER | ||
# Launch locally | ||
# Remove build: if: | ||
# act -j build --container-architecture linux/amd64 -P macos-latest-xlarge=-self-hosted --secret-file .github/workflows/.env.secret -W .github/workflows/release_dapp_android.yml |
Oops, something went wrong.